From fe07c7d6344a2488effefd3e64b020dba6b582c2 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sat, 8 Feb 2025 14:17:22 +0100 Subject: [PATCH] Merge new switch with existing switch configs --- templates/mystrom.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/templates/mystrom.yaml b/templates/mystrom.yaml index 510fcf1..0ab88a1 100644 --- a/templates/mystrom.yaml +++ b/templates/mystrom.yaml @@ -36,17 +36,6 @@ status_led: # Red LED on the front panel. pin: GPIO16 -switch: -- platform: gpio - # Exposing this as a switch rather than light to avoid - # automations and dashboard picking it up as illuminance - # source. - name: "Identify LED (white)" - restore_mode: ALWAYS_OFF - pin: - number: GPIO17 - inverted: true - binary_sensor: - platform: gpio id: mystrom_side @@ -117,3 +106,13 @@ switch: device_class: outlet on_turn_off: - sensor.duty_time.reset: continuous_on_time + +- platform: gpio + # Exposing this as a switch rather than light to avoid + # automations and dashboard picking it up as illuminance + # source. + name: "Identify LED (white)" + restore_mode: ALWAYS_OFF + pin: + number: GPIO17 + inverted: true