I have two lights which operate via REST calls, so am trying to set up two RESTful switches in configuration.yaml, but only one of them (the first one) appears in HA.
If I swap the order in configuration.yaml then the one that is first is picked up, but never the second one as well (which ever way round).
I am guessing I have either a naming thing, a format issue or conflict between the two so it only picks up one, but I cannot work it out…
Any pointers would be amazing, as I have been staring for far too long, my current config is below…
switch:
- platform: rest
name: office_desk_bias_local
resource: http://192.168.2.202:8000/desk_bias
body_on: '{"on": true }'
body_off: '{"on": false}'
is_on_template: "{{ value_json.on }}"
headers:
Content-Type: application/json
- platform: rest
name: office_hex_local
resource: http://192.168.2.202:8000/office_hex
body_on: '{"on": true }'
body_off: '{"on": false}'
is_on_template: "{{ value_json.on }}"
headers:
Content-Type: application/json