Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Notify when fridge is opened
- trigger:
- - entity_id: binary_sensor.fibaro_system_fgk101_door_opening_sensor_sensor_3
- from: 'off'
- platform: state
- to: 'on'
- for:
- minutes: 1
- action:
- - service: notify.telegram
- data:
- message: "Kylen är öppen!"
- - service: automation.turn_on
- entity_id: automation.notify_when_fridge_is_closed
- - alias: Notify when fridge is closed
- initial_state: false
- trigger:
- - entity_id: binary_sensor.fibaro_system_fgk101_door_opening_sensor_sensor_3
- from: 'on'
- platform: state
- to: 'off'
- action:
- - service: notify.telegram
- data:
- message: "Nu är kylen stängd."
- - service: automation.turn_off
- entity_id: automation.notify_when_fridge_is_closed
Advertisement
Add Comment
Please, Sign In to add comment