Advertisement
Guest User

Doorbell Automation

a guest
Dec 9th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1.  
  2. - alias: "Porta Blindata Aperta"
  3. hide_entity: true
  4. #initial_state: 'off'
  5. trigger:
  6. - platform: state
  7. entity_id: binary_sensor.door_window_sensor_158d000203052a
  8. from: 'off'
  9. to: 'on'
  10. # condition:
  11. # condition: numeric_state
  12. # entity_id: sensor.illumination_xxxxxx
  13. # below: 200
  14. action:
  15. - service: light.turn_on
  16. entity_id: light.gateway_light_7811dce17669
  17. data:
  18. brightness: 250
  19. rgb_color: [255, 0, 0]
  20. - service: shell_command.log
  21. data_template:
  22. text: >
  23. - Gateway light. Light ON
  24. # - delay: '00:00:03'
  25. - service: xiaomi_aqara.play_ringtone
  26. data:
  27. gw_mac: !secret xiaomi_gateway1_mac
  28. ringtone_id: 10
  29. ringtone_vol: 6
  30. - service: shell_command.log
  31. data_template:
  32. text: >
  33. - Gateway ringtone. Play ON
  34. # - delay: '00:00:01'
  35. - service: xiaomi_aqara.stop_ringtone
  36. - service: shell_command.log
  37. data_template:
  38. text: >
  39. - Gateway ringtone. Play OFF
  40. - service: light.turn_off
  41. entity_id: light.gateway_light_7811dce17669
  42. - service: shell_command.log
  43. data_template:
  44. text: >
  45. - Gateway light. Light OFF
  46. # - delay: '00:00:03'
  47. - service: notify.notifiche_telegram
  48. data:
  49. message: 'Foto Blindata Aperta'
  50. target:
  51. - !secret allowed_chat_ids
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement