Advertisement
foizza

telegram notification

May 19th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ######TELEGRAM NOTIFICATION######
  2. #################
  3. notify:
  4. - platform: telegram
  5. name: notify
  6. api_key: ABCDEFGHILMNO
  7. chat_id: 123456789
  8. ########################################################################################
  9. #AUTOMATION
  10. ########################################################################################
  11. # Notifica finestra aperta #
  12.  
  13. automation:
  14. - alias: Check sensor value and show notification
  15. trigger:
  16. platform: state
  17. entity_id: binary_sensor.door_window_sensor_1658F216564SDG
  18. state: 'on'
  19. action:
  20. service: notify.telegram
  21. data:
  22. message: 'Hai dimenticato la finestra aperta'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement