Hi,
HA-newbie question coming:
I made 3 little scripts with the following code within scripts.yaml:
radio_fritz:
alias: "Radio Fritz"
sequence:
- data_template:
entity_id: media_player.kuche
media_content_id: http://dg-rbb-http-fra-dtag-cdn.cast.addradio.de/rbb/fritz/live/mp3/128/stream.mp3?ar-distributor=f0a1
media_content_type: audio/mp3
service: media_player.play_media
radio_gold:
alias: "Radio Gold"
sequence:
- data_template:
entity_id: media_player.kuche
media_content_id: http://dg-ais-eco-http-fra-eco-cdn.cast.addradio.de/ps-radiob2gold/livestream.mp3
media_content_type: audio/mp3
service: media_player.play_media
radio_stopp:
alias: "Radio Stop"
sequence:
- entity_id: media_player.kuche
service: media_player.media_stop
- entity_id: media_player.bad
service: media_player.media_stop
- entity_id: media_player.alle_lautsprecher
service: media_player.media_stop
I can start these scripts via the UI without problems.
I want to trigger these scripts via Android Tasker app using Http Post
So, I’m using the HTTP Post Action in Tasker with the following configuration:
- server port: Hassio-ip:8123
- Path: /api/services/script/turn_on?api_password=my_password
- Data/File: {“entity_id”:“script.radio_gold”}
- Content Type: application/json
I don’t get any error messages, however, the scripts don’t run when I run the Tasker task.
I’m sure there is only a small error in my config, as I’m reaaally new to this.
Thanks in advance!