Hi there,
I’m trying to get the rest switch to work, but i’m not getting any errors in my logs, and the switch is simply not showing up anywhere in the home assistant ui.
I’ve tried to find answers, but all i read is “it doesn’t work with this particular URL, use the command line switch with curl”, which simply should not apply in my case as i’m literally doing dumb rest requests to my hue bridge with in-URL authentication.
My config is:
switch:
- platform: rest
resource: http://10.28.8.240/api/xxx/sensors/68/
name: living_room_sensor_toggle
method: put
body_on: '{"config": {"on":true}}'
body_off: '{"config": {"on":false}}'
is_on_template: '{{ value_json.config.on == true }}'
headers:
Content-Type: application/json
where xxx is my token.
My biggest problem here is that i’m not getting any feedback from home assistant as to why there’s not even being an entity/state created anywhere