Announce when E wakes up, if we are in the basement
This commit is contained in:
@ -832,6 +832,16 @@ script:
|
|||||||
# Lighting
|
# Lighting
|
||||||
- variables:
|
- variables:
|
||||||
brightness: "{{ state_attr('switch.adaptive_lighting_emma_bedroom','brightness_pct') }}"
|
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:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ is_state('binary_sensor.morning','on') or is_state('binary_sensor.midday','on') }}"
|
value_template: "{{ is_state('binary_sensor.morning','on') or is_state('binary_sensor.midday','on') }}"
|
||||||
|
Reference in New Issue
Block a user