I’m trying to have a Node-RED flow play a sound on a tablet. This service call works from within HA:
service: fullykiosk.play_audio
data:
entity_id: media_player.fire_tablet_media_player
url: https://mydomain:8123/local/sounds/please_exit_lights.mp3
stream: 1
…however, this flow does not:
[{"id":"a569cb64d0c14d3f","type":"api-call-service","z":"b199f89f.aefe08","name":"Announce Exit","server":"296c0678.b5f9ca","version":3,"debugenabled":false,"service_domain":"fullykiosk","service":"play_audio","entityId":"media_player.fire_tablet_media_player","data":"{\"url\":\"https://mydomain:8123/local/sounds/please_exit_lights.mp3\",\"stream\":\"1\"}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":3460,"wires":[[]]},{"id":"f10fa849678274f2","type":"inject","z":"b199f89f.aefe08","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":3460,"wires":[["a569cb64d0c14d3f"]]},{"id":"296c0678.b5f9ca","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]
Where am I going wrong?
EDIT: my temporary solution is to call a script that calls the service, and that works; I just don’t think I should have to write a script and should be able to call the service directly…