Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abode:
- username: xxxxx
- password: xxxxx
- Binary Sensor:
- - 'ZW:000000017'
- - 'ZW:00000004e'
- - 'ZW:00000003d'
- - 'ZW:000000013'
- # Text to speech
- tts:
- - platform: google
- - alias: 'Abode Door/Window Open/Close TTS Google Home'
- trigger:
- - platform: state
- entity_id:
- - binary_sensor.master_bedroom
- - binary_sensor.front_door
- - binary_sensor.dining_room_door
- - binary_sensor.garage_door
- action:
- - service: tts.google_say
- entity_id: media_player.living_room_mini
- data_template:
- message: "The {{ trigger.to_state.attributes.friendly_name }} was {{ (trigger.to_state.state)|replace('on', 'opened')|replace('off', 'closed') }}."
- - alias: 'Abode Alarm Arm/Disarm TTS Google Home'
- trigger:
- - platform: state
- entity_id:
- - alarm_control_panel.abode_alarm
- action:
- - service: tts.google_say
- entity_id: media_player.living_room_mini
- data_template:
- message: "Abode alarm was {{ (trigger.to_state.state)|replace('_', ' ') }}."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement