Announce when E wakes up, if we are in the basement

This commit is contained in:
2023-07-20 14:30:22 -04:00
parent bb608a05ee
commit 9c9c4b5f50

View File

@ -832,6 +832,16 @@ script:
# Lighting
- variables:
brightness: "{{ state_attr('switch.adaptive_lighting_emma_bedroom','brightness_pct') }}"
- if:
- condition: state
entity_id: binary_sensor.basement_occupied
state: 'on'
then:
- service: script.speech_engine
data:
who: basement
type: normal
message: Emma has awoken, so it is time to make your way upstairs now
- if:
- condition: template
value_template: "{{ is_state('binary_sensor.morning','on') or is_state('binary_sensor.midday','on') }}"