Advertisement
MiAutomations

Configuração dos Sheely 2 Home assistant rest API

Feb 13th, 2019
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. switch:
  2. - platform: rest
  3. name: "Shelly2 Switch1"
  4. scan_interval: 5
  5. resource: http://Colocar aqui o IP dos vosso Shelly 2/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
  11. - platform: rest
  12. name: "Shelly2 Switch2"
  13. scan_interval: 5
  14. resource: http://Colocar aqui o IP dos vosso Shelly 2/relay/1
  15. body_on: 'turn=on'
  16. body_off: 'turn=off'
  17. is_on_template: '{{ value_json.ison == true}}'
  18. headers:
  19. content-type: application/x-www-form-urlencoded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement