Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- automation:
- - alias: Turn Oco Notifications On
- trigger:
- platform: state
- entity_id: device_tracker.bobs_iphone
- from: 'home'
- to: 'not_home'
- action:
- service: notify.oco_notifications_on
- data:
- message: You can put anything you want here, it does not really matter
- - alias: Turn Oco Notifications Off
- trigger:
- platform: state
- entity_id: device_tracker.bobs_iphone
- from: 'not_home'
- to: 'home'
- action:
- service: notify.oco_notifications_off
- data:
- message: You can put anything you want here, it does not really matter
- notify:
- - platform: rest
- name: oco_notifications_on
- resource: https://maker.ifttt.com/trigger/oco_notifications_on/with/key/YOUR_MAKER_KEY
- method: GET
- message_param_name: message
- - platform: rest
- name: oco_notifications_off
- resource: https://maker.ifttt.com/trigger/oco_notifications_off/with/key/YOUR_MAKER_KEY
- method: GET
- message_param_name: message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement