From 612622140b90ddd8a91f755c7236bddb6958ea57 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sat, 8 Feb 2025 13:27:19 +0100 Subject: [PATCH] Expose identify LED as a switch to avoid noise --- templates/mystrom.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/templates/mystrom.yaml b/templates/mystrom.yaml index 8c1cbd0..510fcf1 100644 --- a/templates/mystrom.yaml +++ b/templates/mystrom.yaml @@ -36,18 +36,16 @@ status_led: # Red LED on the front panel. pin: GPIO16 -light: -- platform: binary +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)" - id: mystrom_led_identify restore_mode: ALWAYS_OFF - output: mystrom_led_white - -output: -- id: mystrom_led_white - platform: gpio - pin: GPIO17 - inverted: true + pin: + number: GPIO17 + inverted: true binary_sensor: - platform: gpio