Advertisement
dale3h

[Home Assistant] IFTTT Maker Channel Example

Jun 16th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.01 KB | None | 0 0
  1. automation:
  2.   - alias: Turn Oco Notifications On
  3.     trigger:
  4.       platform: state
  5.       entity_id: device_tracker.bobs_iphone
  6.       from: 'home'
  7.       to: 'not_home'
  8.     action:
  9.       service: notify.oco_notifications_on
  10.       data:
  11.         message: You can put anything you want here, it does not really matter
  12.   - alias: Turn Oco Notifications Off
  13.     trigger:
  14.       platform: state
  15.       entity_id: device_tracker.bobs_iphone
  16.       from: 'not_home'
  17.       to: 'home'
  18.     action:
  19.       service: notify.oco_notifications_off
  20.       data:
  21.         message: You can put anything you want here, it does not really matter
  22.  
  23. notify:
  24.   - platform: rest
  25.     name: oco_notifications_on
  26.     resource: https://maker.ifttt.com/trigger/oco_notifications_on/with/key/YOUR_MAKER_KEY
  27.     method: GET
  28.     message_param_name: message
  29.   - platform: rest
  30.     name: oco_notifications_off
  31.     resource: https://maker.ifttt.com/trigger/oco_notifications_off/with/key/YOUR_MAKER_KEY
  32.     method: GET
  33.     message_param_name: message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement