From 4b52e365e4882e6ee20ede170ce86cea3e4114ad Mon Sep 17 00:00:00 2001 From: neri Date: Tue, 28 May 2024 23:04:28 +0200 Subject: [PATCH] feat: aktuellen status nach boot anzeigen --- mlock-common.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mlock-common.yaml b/mlock-common.yaml index 1179040..385266a 100644 --- a/mlock-common.yaml +++ b/mlock-common.yaml @@ -18,10 +18,16 @@ esphome: on_boot: - priority: 600 then: - - light.addressable_set: { id: status_led, red: 0%, green: 0%, blue: 50% } + - light.addressable_set: { id: status_led, red: 0%, green: 0%, blue: 100% } - priority: -100 then: - - light.addressable_set: { id: status_led, red: 0%, green: 0%, blue: 100% } + - if: + condition: + switch.is_on: mlock_${name_of_board}_switch + then: + - light.addressable_set: { id: status_led, red: 0%, green: 100%, blue: 0% } + else: + - light.addressable_set: { id: status_led, red: 100%, green: 0%, blue: 0% } # Enable logging logger: