Created
February 7, 2017 20:05
-
-
Save LarsBergqvist/5418e554bd2a301db705c319ef0ec4b4 to your computer and use it in GitHub Desktop.
RESTful switch configuration for Home Assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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