Hello,
i have a new issue.
My RestSwitch hast the following options
ttp://xx:xx@host:port/api/device/Steckdose/toggle
ttp://xx:xx@host:port/api/device/Steckdose/turnOn
ttp://xx:xx@host:port/api/device/Steckdose/turnOff
When the config looks like This:
switch:
platform: rest
resource: http://xx:xx@host:port/api/device/SteckdoseB2/toggle
name: "Switch LEDLeiste"
# body_on: "turnOn"
# body_off: "turnOff"
he turns the light/plug every 30 seconds on and off, and on and off…
When im using:
switch:
platform: rest
resource: http://xx:xx@host:port/api/device/SteckdoseB2/
body_on: "turnOn"
body_off: "turnOff"
then nothing happens.
my thinking was that hass completes the url with the body_off/body_on states to get working.
But it’ s not working…
Help…
edit: the h @ ttp is missing because of just two link per new user
mfg
Chris