RESTful Switch - how to implement?

Hi Everyone!

Having some trouble with the Rest switch.

  - platform: rest
    is_on_template: '{{ value_json["value"][0] | is_number == 1 }}'

that’s how far I was able to follow the tutorial (RESTful Switch - Home Assistant). The convert to a boolean seems to work, but I don’t know why the switch is always on. If I’m turning it off it changes to on again after around 2-3 seconds…

also, how do I implement the “body on:” part? i don’t know how to do it since I have different links for switching and reading the state for the switch

thanks for your help!

Output of the state_resource is

        "value":        "0;;;0;"