Skulzry
(Skulzry)
March 25, 2025, 7:49pm
1
I have code that works in YAML but when I try to make the equivalent block in Node-Red I get confused. anyone able to help?
action: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.googlehome9271
message: “Hi!”
target:
entity_id: tts.google_translate_en_com
Mikefila
(Mike Fila)
March 25, 2025, 8:02pm
2
Data
{
"entity_id":"media_player.googlehome9271",
"message":"Hi!",
"cache": true
}
Skulzry
(Skulzry)
March 25, 2025, 8:34pm
3
There’s a weird error with this:
“NoConnectionError: NoConnectionError”
I also don’t have a “google_en_com” but “google_translate_en_com”
Mikefila
(Mike Fila)
March 25, 2025, 11:49pm
4
Do you have anything else in nodered? Are other flows working? In the server drop down box, is there more than one server?
Skulzry
(Skulzry)
March 26, 2025, 1:36am
5
Everything else works, and I only have 1 server. I tried again and it gave me a ““HomeAssistantError: required key not provided @ data[‘media_player_entity_id’]””
Mikefila
(Mike Fila)
March 26, 2025, 1:40am
6
Change the data to
{
"media_player_entity_id":"media_player.googlehome9271",
"message":"Hi!",
"cache": true
}
Skulzry
(Skulzry)
March 26, 2025, 1:41am
7
Mikefila:
media_player_entity_id
Works like a charm. Thank you!
1 Like