@helio58 wrote:
Hi all, I have a problem with my switch.yaml file. This works
platform: command_line
switches:
dimmer_v_rum:
command_on: “/usr/bin/curl -X GET http://192.168.1.136/cm?cmnd=dimmer%20100”
command_off: “/usr/bin/curl -X GET http://192.168.1.136/cm?cmnd=Backlog%20dimmer%2010%3BPower%20OFF”But when I try to add a rest switch it does not work .
I m trying withswitch:
- platform: rest
resource: http://127.0.0.1:8126/container/grafana
name: Grafana
body_on: ‘{“state”: “start”}’
body_off: ‘{“state”: “stop”}’
is_on_template: ‘{{ value_json is not none and value_json.state == “running” }}’Please could sameone point me what i m doing wrong?
Thanks
Posts: 7
Participants: 4