RESTful Switch - how to implement?

Hi Everyone!

Having some trouble with the Rest switch.

switch:
  - platform: rest
    resource: http://192.168.1.3/api/v1/var/lights/item8/scmd/set?value=1&username=luca&password=2303
    state_resource: http://192.168.1.3/api/v1/var/lights/item8/sumstate/status?username=luca&password=2303
    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!
Luca

Output of the state_resource is

{
        "value":        "0;;;0;"
}