Rest Switch is_on_template

I have a rest switch, but the state reports always false. Here is the config:

  - platform: rest
    name: wallboard_display
    body_on: '{"brightness": 50}'
    body_off: '{"brightness": 0}'
    is_on_template: ‘{{ value_json.brightness > 0 }}’

And this is the actual state response from the device:


However, the switch entity always reports “off” and I am a bit lost how to further debug this.So any hints welcome…

1 Like