More organization of the Speech stuff.

This commit is contained in:
CCOSTAN
2017-02-11 05:50:53 +00:00
parent 3cc3ea68e7
commit 0c5899e16e
6 changed files with 24 additions and 0 deletions

18
automation/Speech/nest.yaml Executable file
View File

@@ -0,0 +1,18 @@
######################################################################
## Announce when one of the nests kick in
## Announce over all Chromecast Audios
######################################################################
- alias: 'Nest Status'
trigger:
- platform: state
entity_id:
- sensor.downstairs_thermostat_hvac_state
- sensor.upstairs_thermostat_hvac_state
from: 'off'
action:
- service: script.Voice_notify
data_template:
value1: "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)}}."