diff --git a/voice-assistant/m5stack-atom-echo.yaml b/voice-assistant/m5stack-atom-echo.yaml index 1b57c09f..ef20c3fb 100644 --- a/voice-assistant/m5stack-atom-echo.yaml +++ b/voice-assistant/m5stack-atom-echo.yaml @@ -186,6 +186,7 @@ script: condition: - switch.is_on: use_wake_word - switch.is_on: use_listen_light + - switch.is_off: night_mode then: - light.turn_on: id: led @@ -195,7 +196,21 @@ script: brightness: 60% effect: none else: - - light.turn_off: led + - if: + condition: + - switch.is_on: use_wake_word + - switch.is_on: use_listen_light + - switch.is_on: night_mode + then: + - light.turn_on: + id: led + blue: 100% + red: 100% + green: 0% + brightness: 20% + effect: none + else: + - light.turn_off: led switch: - platform: template @@ -227,6 +242,16 @@ switch: - script.execute: reset_led on_turn_off: - script.execute: reset_led + - platform: template + name: Night Mode + id: night_mode + optimistic: true + restore_mode: RESTORE_DEFAULT_ON + entity_category: config + on_turn_on: + - script.execute: reset_led + on_turn_off: + - script.execute: reset_led external_components: - source: github://pr#5230