Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created February 7, 2017 20:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/5418e554bd2a301db705c319ef0ec4b4 to your computer and use it in GitHub Desktop.
Save LarsBergqvist/5418e554bd2a301db705c319ef0ec4b4 to your computer and use it in GitHub Desktop.
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