From 73f7368662d462646534bc9be3e286149044c925 Mon Sep 17 00:00:00 2001 From: Tilen Date: Thu, 14 May 2026 18:04:32 +0200 Subject: [PATCH] Add uptime_sensor id for up time sensor and align the sensor name across the board --- athom-cb02.yaml | 1 + athom-garage-door.yaml | 1 + athom-ls-4p-3wire.yaml | 3 ++- athom-ls-4p-4wire.yaml | 3 ++- athom-mini-switch.yaml | 1 + athom-presence-sensor.yaml | 1 + athom-relay-board-x1.yaml | 1 + athom-relay-board-x2.yaml | 1 + athom-relay-board-x4.yaml | 1 + athom-relay-board-x8.yaml | 1 + athom-rgb-light.yaml | 1 + athom-rgbct-light.yaml | 1 + athom-rgbw-light.yaml | 1 + athom-rgbww-light.yaml | 1 + athom-smart-plug-v2.yaml | 1 + athom-smart-plug.yaml | 1 + athom-sw01-v2.yaml | 1 + athom-sw01.yaml | 1 + athom-sw02-v2.yaml | 1 + athom-sw02.yaml | 1 + athom-sw03.yaml | 1 + athom-sw04.yaml | 1 + athom-wall-outlet.yaml | 1 + athom-without-relay-plug.yaml | 1 + athom-ws2812b.yaml | 3 ++- 25 files changed, 28 insertions(+), 3 deletions(-) diff --git a/athom-cb02.yaml b/athom-cb02.yaml index af187a12..2dba09dd 100644 --- a/athom-cb02.yaml +++ b/athom-cb02.yaml @@ -222,6 +222,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-garage-door.yaml b/athom-garage-door.yaml index 377e57e2..067b1cbb 100644 --- a/athom-garage-door.yaml +++ b/athom-garage-door.yaml @@ -209,6 +209,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-ls-4p-3wire.yaml b/athom-ls-4p-3wire.yaml index f39d285d..c58e1ecb 100644 --- a/athom-ls-4p-3wire.yaml +++ b/athom-ls-4p-3wire.yaml @@ -73,7 +73,8 @@ binary_sensor: sensor: - platform: uptime - name: "Uptime Sensor" + name: "Uptime" + id: uptime_sensor - platform: wifi_signal name: "WiFi Signal" diff --git a/athom-ls-4p-4wire.yaml b/athom-ls-4p-4wire.yaml index 8ce8b145..39cb7e6c 100644 --- a/athom-ls-4p-4wire.yaml +++ b/athom-ls-4p-4wire.yaml @@ -73,7 +73,8 @@ binary_sensor: sensor: - platform: uptime - name: "Uptime Sensor" + name: "Uptime" + id: uptime_sensor - platform: wifi_signal name: "WiFi Signal" diff --git a/athom-mini-switch.yaml b/athom-mini-switch.yaml index 423ae81f..a9ee1c0b 100644 --- a/athom-mini-switch.yaml +++ b/athom-mini-switch.yaml @@ -250,6 +250,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-presence-sensor.yaml b/athom-presence-sensor.yaml index 079defc0..0dd71824 100644 --- a/athom-presence-sensor.yaml +++ b/athom-presence-sensor.yaml @@ -428,6 +428,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-relay-board-x1.yaml b/athom-relay-board-x1.yaml index b708dc76..d18b56fc 100644 --- a/athom-relay-board-x1.yaml +++ b/athom-relay-board-x1.yaml @@ -158,6 +158,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-relay-board-x2.yaml b/athom-relay-board-x2.yaml index 3e23f0c6..ea90399d 100644 --- a/athom-relay-board-x2.yaml +++ b/athom-relay-board-x2.yaml @@ -165,6 +165,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-relay-board-x4.yaml b/athom-relay-board-x4.yaml index 8d95e9c3..c05eff33 100644 --- a/athom-relay-board-x4.yaml +++ b/athom-relay-board-x4.yaml @@ -178,6 +178,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-relay-board-x8.yaml b/athom-relay-board-x8.yaml index cd57be67..379d9a4c 100644 --- a/athom-relay-board-x8.yaml +++ b/athom-relay-board-x8.yaml @@ -206,6 +206,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-rgb-light.yaml b/athom-rgb-light.yaml index 1679a382..1e116462 100644 --- a/athom-rgb-light.yaml +++ b/athom-rgb-light.yaml @@ -180,6 +180,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-rgbct-light.yaml b/athom-rgbct-light.yaml index 73faf34f..ca58105e 100644 --- a/athom-rgbct-light.yaml +++ b/athom-rgbct-light.yaml @@ -241,6 +241,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-rgbw-light.yaml b/athom-rgbw-light.yaml index df9312c9..45c983ba 100644 --- a/athom-rgbw-light.yaml +++ b/athom-rgbw-light.yaml @@ -185,6 +185,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-rgbww-light.yaml b/athom-rgbww-light.yaml index c381cb7d..803f7aa2 100644 --- a/athom-rgbww-light.yaml +++ b/athom-rgbww-light.yaml @@ -235,6 +235,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-smart-plug-v2.yaml b/athom-smart-plug-v2.yaml index a9cf2244..59a0cc79 100644 --- a/athom-smart-plug-v2.yaml +++ b/athom-smart-plug-v2.yaml @@ -371,6 +371,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-smart-plug.yaml b/athom-smart-plug.yaml index a9c61b06..3452cd56 100644 --- a/athom-smart-plug.yaml +++ b/athom-smart-plug.yaml @@ -385,6 +385,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-sw01-v2.yaml b/athom-sw01-v2.yaml index 50242160..53c101ba 100644 --- a/athom-sw01-v2.yaml +++ b/athom-sw01-v2.yaml @@ -245,6 +245,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-sw01.yaml b/athom-sw01.yaml index 92de7e16..6705b9f9 100644 --- a/athom-sw01.yaml +++ b/athom-sw01.yaml @@ -245,6 +245,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-sw02-v2.yaml b/athom-sw02-v2.yaml index 489d444c..773e7cbc 100644 --- a/athom-sw02-v2.yaml +++ b/athom-sw02-v2.yaml @@ -291,6 +291,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-sw02.yaml b/athom-sw02.yaml index 404c6eb2..12d623ac 100644 --- a/athom-sw02.yaml +++ b/athom-sw02.yaml @@ -286,6 +286,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-sw03.yaml b/athom-sw03.yaml index 0a6f2065..8ad2ab31 100644 --- a/athom-sw03.yaml +++ b/athom-sw03.yaml @@ -327,6 +327,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-sw04.yaml b/athom-sw04.yaml index 8e420797..913cd368 100644 --- a/athom-sw04.yaml +++ b/athom-sw04.yaml @@ -289,6 +289,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-wall-outlet.yaml b/athom-wall-outlet.yaml index bbddfe4f..b0054a7f 100644 --- a/athom-wall-outlet.yaml +++ b/athom-wall-outlet.yaml @@ -338,6 +338,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-without-relay-plug.yaml b/athom-without-relay-plug.yaml index ee9b5369..a2816a24 100644 --- a/athom-without-relay-plug.yaml +++ b/athom-without-relay-plug.yaml @@ -281,6 +281,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: uptime name: "Uptime" + id: uptime_sensor entity_category: diagnostic icon: mdi:clock-start update_interval: 60s diff --git a/athom-ws2812b.yaml b/athom-ws2812b.yaml index 0fed9514..4e681466 100644 --- a/athom-ws2812b.yaml +++ b/athom-ws2812b.yaml @@ -76,7 +76,8 @@ binary_sensor: sensor: - platform: uptime - name: "Uptime Sensor" + name: "Uptime" + id: uptime_sensor - platform: wifi_signal name: "WiFi Signal"