Ramis84

Ramis kyl home assistant

Nov 18th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. - alias: Notify when fridge is opened
  2. trigger:
  3. - entity_id: binary_sensor.fibaro_system_fgk101_door_opening_sensor_sensor_3
  4. from: 'off'
  5. platform: state
  6. to: 'on'
  7. for:
  8. minutes: 1
  9. action:
  10. - service: notify.telegram
  11. data:
  12. message: "Kylen är öppen!"
  13. - service: automation.turn_on
  14. entity_id: automation.notify_when_fridge_is_closed
  15. - alias: Notify when fridge is closed
  16. initial_state: false
  17. trigger:
  18. - entity_id: binary_sensor.fibaro_system_fgk101_door_opening_sensor_sensor_3
  19. from: 'on'
  20. platform: state
  21. to: 'off'
  22. action:
  23. - service: notify.telegram
  24. data:
  25. message: "Nu är kylen stängd."
  26. - service: automation.turn_off
  27. entity_id: automation.notify_when_fridge_is_closed
Advertisement
Add Comment
Please, Sign In to add comment