Advertisement
Guest User

Hassio rest api shelly -1

a guest
Feb 8th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. switch:
  2. - platform: rest
  3. name: "Shelly1 Switch1"
  4. scan_interval: 5
  5. resource: http://192.168.2.xxx/relay/0
  6. body_on: 'turn=on'
  7. body_off: 'turn=off'
  8. is_on_template: '{{ value_json.ison == true}}'
  9. headers:
  10. content-type: application/x-www-form-urlencoded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement