https://www.home-assistant.io/integrations/rest_command/
rest_command:
hellstorm_stream_request:
url: http://192.168.10.148/api/v1/replaceAndPlay
method: POST
headers:
accept: "application/json"
content_type: 'application/json; charset=utf-8'
payload: '{"service": "webradio", "type": "webradio", "title": "Hellstormovo bezva radio!", "uri": "http://opml.radiotime.com/Tune.ashx?id=s14991"}'
rest_command:
hellstorm_stream_request:
url: http://192.168.10.148/api/v1/replaceAndPlay
method: POST
headers:
accept: "application/json"
content_type: 'application/json; charset=utf-8'
payload: '{"service": "webradio", "type": "webradio", "title": "{{ STREAM_TITLE }}", "uri": "{{ STREAM_URL }}"}'
turn_on_hellstorm_radio:
alias: 'Prehrat Helstormovo radio'
sequence:
- service: hellstorm_stream_request
data:
STREAM_TITLE: 'Hellstormovo bezva radio!'
STREAM_URL: 'http://opml.radiotime.com/Tune.ashx?id=s14991'
mode: single
icon: hass:baby-carriage