Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turn_on_boiler_with_10_min_delay:
- sequence:
- - delay:
- minutes: 10
- - service: switcher_aio.turn_on_45_minutes
- - service: notify.telegram_notifier
- data:
- message: 'Boiler has been turned on for 45 minutes, drive safe'
- - alias: Leaving Yad Eliyahu
- initial_state: on
- trigger:
- platform: state
- entity_id: device_tracker.ohad_iphone
- from: 'yad_eliyahu'
- action:
- service: script.turn_on_boiler_with_10_min_delay
- - alias: Entering Yad Eliyahu
- initial_state: on
- trigger:
- platform: state
- entity_id: device_tracker.ohad_iphone
- to: 'yad_eliyahu'
- action:
- service: script.turn_off
- entity_id: script.turn_on_boiler_with_10_min_delay
- - alias: turn boiler when ohad is headed back from a maccabi game
- initial_state: off
- trigger:
- platform: zone
- entity_id: device_tracker.ohad_iphone
- zone: zone.yad_eliyahu
- event: leave
- action:
- - service: switcher_aio.turn_on_45_minutes
- - service: notify.telegram_notifier
- data:
- message: 'Boiler has been turned on for 45 minutes, drive safe'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement