Home-AssistantConfig/config/automation/Speech/nest.yaml

25 lines
927 B
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################
## Announce when one of the nests kick in
## Announce over all Chromecast Audios
######################################################################
- alias: 'Nest Status'
2020-07-20 18:33:03 +00:00
id: 7812fdaf-a3f8-498b-8f07-28e977e528fe
2018-01-02 00:00:45 +00:00
trigger:
- platform: state
entity_id:
- sensor.downstairs_thermostat_hvac_state
- sensor.upstairs_thermostat_hvac_state
from: 'off'
# condition:
# - condition: template
# value_template: >-
# {{ as_timestamp(states.automation.nest_status.attributes.last_triggered) > as_timestamp(now()) - (1800) }}
action:
- service: script.speech_engine
data_template:
NestStatus: "The {{ trigger.entity_id.split('.')[1].split('_')[0]}} {{ trigger.entity_id.split('.')[1].split('_')[1]}} has now been turned on for {{(trigger.to_state.state)}}."
call_window_check: 1