Hi all, has anyone out there made a REST switch work? Can you give me an example?
I keep trying and it doesn’t even put anything in my log or create any entity ID. I have lots of other switches and templates, and I’ve never had anything else that simply seems to be completely ignored by the parser like this… Here’s one of the many versions I’ve tried:
- platform: rest
resource: !secret shuffle_resource
body_on: '{"mode": "songs"}'
body_off: '{"mode": "off"}'
is_on_template: "{{ state_attr('media_player.itunes', 'shuffle') }}"
headers:
Content-Type: application/json
verify_ssl: false