Hello, I’ve created a couple of restfull switches so I can control my hue motion sensors and turn them on or off whenever I need to. Up until yesterday I had no issues. But this morning I noticed one of the switches is no longer working.
I didn’t change a thing in my config or hue bridge.
This is my config:
switch:
- platform: rest
name: woonkamer_sensor_motion #Switch om de motion sensor aan of uit te zetten
resource: "https://<Hue-Bridge-IP>/api/<API-KEY>/sensors/104"
body_on: '{"config": {"on": true}}'
body_off: '{"config": {"on": false}}'
is_on_template: "{{value_json.config.on}}"
method: PUT
headers:
Content-Type: application/json
verify_ssl: false
- platform: rest
name: keuken_sensor_motion #Switch om de motion sensor aan of uit te zetten
resource: "https://<Hue-Bridge-IP>/api/<API-KEY>/sensors/138"
body_on: '{"config": {"on": true}}'
body_off: '{"config": {"on": false}}'
is_on_template: "{{value_json.config.on}}"
method: PUT
headers:
Content-Type: application/json
verify_ssl: false
- platform: rest
name: atelier_sensor_motion #Switch om de motion sensor aan of uit te zetten
resource: "https://<Hue-Bridge-IP>/api/<API-KEY>/sensors/109"
body_on: '{"config": {"on": true}}'
body_off: '{"config": {"on": false}}'
is_on_template: "{{value_json.config.on}}"
method: PUT
headers:
Content-Type: application/json
verify_ssl: false
- platform: rest
name: hal_sensor_motion #Switch om de motion sensor aan of uit te zetten
resource: "https://<Hue-Bridge-IP>/api/<API-KEY>/sensors/99"
body_on: '{"config": {"on": true}}'
body_off: '{"config": {"on": false}}'
is_on_template: "{{value_json.config.on}}"
method: PUT
headers:
Content-Type: application/json
verify_ssl: false
- platform: rest
name: bijkeuken_sensor_motion #Switch om de motion sensor aan of uit te zetten
resource: "https://<Hue-Bridge-IP>/api/<API-KEY>/sensors/153"
body_on: '{"config": {"on": true}}'
body_off: '{"config": {"on": false}}'
is_on_template: "{{value_json.config.on}}"
method: PUT
headers:
Content-Type: application/json
verify_ssl: false
This is the switch that is no longer working:
- platform: rest
name: bijkeuken_sensor_motion #Switch om de motion sensor aan of uit te zetten
resource: "https://<Hue-Bridge-IP>/api/<API-KEY>/sensors/153"
body_on: '{"config": {"on": true}}'
body_off: '{"config": {"on": false}}'
is_on_template: "{{value_json.config.on}}"
method: PUT
headers:
Content-Type: application/json
verify_ssl: false
This is what i’m seeing in the log :
2020-10-27 09:46:19 ERROR (MainThread) [homeassistant.components.rest.switch] Got non-ok response from resource: 503
Any idea on how to figure ou what the problem is?