I’m trying to use the RESTful switch to turn on and off my whole home audio channels. When POSTing the following via CURL, it works:
/usr/bin/curl -X POST http://nodejs.abl:8181/zones/11/pr -d '01'
/usr/bin/curl -X POST http://nodejs.abl:8181/zones/11/pr -d '00'
When trying to use the following, GETs work, but when switching state with POST, my REST endpoint does not like the input its receiving from HA.
switch:
- platform: rest
resource: http://nodejs.abl:8181/zones/11/pr
name: 'Channel 1'
body_off: 00
body_on: 01
Any idea if I can use the REST switch or do I have to use the command_line platform?