Advertisement
Matstarr

Untitled

Nov 5th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. abode:
  2. username: xxxxx
  3. password: xxxxx
  4.  
  5. Binary Sensor:
  6.  
  7. - 'ZW:000000017'
  8. - 'ZW:00000004e'
  9. - 'ZW:00000003d'
  10. - 'ZW:000000013'
  11.  
  12. # Text to speech
  13. tts:
  14. - platform: google
  15.  
  16. - alias: 'Abode Door/Window Open/Close TTS Google Home'
  17. trigger:
  18. - platform: state
  19. entity_id:
  20. - binary_sensor.master_bedroom
  21. - binary_sensor.front_door
  22. - binary_sensor.dining_room_door
  23. - binary_sensor.garage_door
  24.  
  25.  
  26. action:
  27. - service: tts.google_say
  28. entity_id: media_player.living_room_mini
  29. data_template:
  30. message: "The {{ trigger.to_state.attributes.friendly_name }} was {{ (trigger.to_state.state)|replace('on', 'opened')|replace('off', 'closed') }}."
  31.  
  32. - alias: 'Abode Alarm Arm/Disarm TTS Google Home'
  33. trigger:
  34. - platform: state
  35. entity_id:
  36. - alarm_control_panel.abode_alarm
  37.  
  38. action:
  39. - service: tts.google_say
  40. entity_id: media_player.living_room_mini
  41. data_template:
  42. message: "Abode alarm was {{ (trigger.to_state.state)|replace('_', ' ') }}."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement