I have created RESTFul switch using the article below:
https://www.thesmarthomehookup.com/use-the-rest-component-to-add-a-shelly-switch-to-home-assistant/
The switch :
- platform: rest
name: “Office TRV Door”
scan_interval: 60
resource: http://192.168.1.54/window
body_on: '{"state": "open"}'
body_off: '{"state": "close"}'
is_on_template: "{{ value_json.window_open == true}}"
headers:
content-type: application/x-www-form-urlencoded
Unfortunately it doesn’t work.
Simple “http://192.168.1.54/window?state=open” in URL in web browser works flawless
Any ideas why the switch doesn’t work?