Problem with Rest Sensor

I’ve got a WLED device acting as an ‘ambilight’ and I created a RESTful sensor to be able to disable or enable it via the API using JSON. It worked fine, then I added a second sensor to the same device allowing me to instigate a remote reboot. However, I can only get one working at a time - if I have them both uncommented, neither works. I can’t see any errors in the log. Am I missing something obvious?

switch:
  - platform: rest
    name: WLED-LOR
    resource: http://192.168.4.179/json/state
    body_on: '{"lor": 0}'
    body_off: '{"lor": 2}'
    is_on_template: '{{value_json.lor == 0}}'
    headers:
      Content-Type: application/json

  - platform: rest
    name: Ambilight Reset
    resource: http://192.168.4.179/json/state
    body_on: '{"rb": true}'
    body_off: '{"rb": false}'
    is_on_template: '{{value_json.rb == true}}'
    headers:
      Content-Type: application/json