Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. - alias: "Luci di Natale OFF"
  2. trigger:
  3. - platform: state
  4. entity_id:
  5. - device_tracker.oneplus_6
  6. - device_tracker.androidd6f
  7. - device_tracker.oneplus_3
  8. to: 'not_home'
  9. condition:
  10. condition: and
  11. conditions:
  12. - condition: state
  13. entity_id: device_tracker.oneplus_6
  14. state: 'not_home'
  15. - condition: and
  16. conditions:
  17. - condition: state
  18. entity_id: device_tracker.androidd6f
  19. state: 'not_home'
  20. - condition: and
  21. conditions:
  22. - condition: state
  23. entity_id: device_tracker.oneplus_3
  24. state: 'not_home'
  25. action:
  26. - service: notify.telegram
  27. data:
  28. message: 'Nessuno in casa - Luci di Natale OFF'
  29. - service: script.turn_on
  30. entity_id: script.meross_plug3_off
  31. - service: script.turn_on
  32. entity_id: script.meross_usb_off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement