The trace from this helper script is not related to the trace of the main script.
The timestamp on the helper script is 10 minutes before the timestamp on the main script.
As the main script is started first, they can not be related.
In this case, the main script seems to have the correct data, Spotify was actually playing according to the data, so the helper script should have been started to resume the stream.
However, this time there was an error in the main script, one I’ve never seen before: "Chromecast 10.10.10.200:8009 is connecting..."
According to the trace it was the result of the tts.google_translate_say
service call, and it looks like your receiving device was not ready to receive the TTS.
"sequence/17/repeat/sequence/5": [
{
"path": "sequence/17/repeat/sequence/5",
"timestamp": "2022-11-18T08:53:21.097602+00:00",
"child_id": {
"domain": "automation",
"item_id": "417395bc-bd64-40a3-b20a-9062d426a01f",
"run_id": "a1b9672bb43bbcf7f11737c8d5a75cea"
},
"error": "Chromecast 10.10.10.200:8009 is connecting...",
"result": {
"params": {
"domain": "tts",
"service": "google_translate_say",
"service_data": {
"message": "This is a TTS message",
"entity_id": [
"media_player.camerastudio"
]
},
"target": {
"entity_id": [
"media_player.camerastudio"
]
}
},
"running_script": false,
"limit": 10
}
}
]
The script is basically formatted in yaml, and the templates (the partsbetween {{
and }}
or {%
and %}
) are written in jinja2, which is the templating language used in Home Assistant.
To format text as code, you use backticks, optionally you can add the language, so like this:
results in:
your code here
As far as I know, you can issue service calls in node red and add the service data to it. So as far as I know you can replicate that service call in your Node Red flow.