Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created February 7, 2017 20:05
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
RESTful switch configuration for Home Assistant
switch:
- platform: rest
name: 'Window lights upstairs'
resource: http://192.168.1.16:5000/Outlets/api/outlets/1/1
body_on: 'on'
body_off: 'off'
- platform: rest
name: 'Floor light upstairs'
resource: http://192.168.1.16:5000/Outlets/api/outlets/1/4
body_on: 'on'
body_off: 'off'
- platform: rest
name: 'Window lights downstairs'
resource: http://192.168.1.16:5000/Outlets/api/outlets/1/2
body_on: 'on'
body_off: 'off'
- platform: rest
name: 'Wall lights downstairs'
resource: http://192.168.1.16:5000/Outlets/api/outlets/1/3
body_on: 'on'
body_off: 'off'
- platform: rest
name: 'Garden lights'
resource: http://192.168.1.16:5000/Outlets/api/outlets/2/1
body_on: 'on'
body_off: 'off'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment