#Android / Node Red TTS & Sound controls

1 messages · Page 1 of 1 (latest)

scenic vector
#

Morning, continuing on the process of controlling some more features of my phone through ha, i'm having an issue getting node-red to precess some of the automations.
when using the actions panel in HA this works:

action: notify.mobile_app_karl_s_phone
data:
  message: "command_ringer_mode"
  data:
    command: "normal"

when using the correct json format in node-red i just get a notifiaction on my phone that says "command_ringer_mode"```
{
"message": "command_ringer_mode",
"data": {
"mode": "normal"
}
}

the same with tts. this is working in HA:

This is notification in homeassistant that is working

action: notify.mobile_app_karl_s_phone
data:
data:
ttl: 0
priority: high
media_stream: notification_stream
tts_text: >-
TTS TEST
message: TTS

but this isnt working in nodered:

{
"message": "TTS",
"data": {
"ttl": "0",
"priority": "high",
"media_stream": "notification_stream",
"tts_text": "Nodered TEST TTS"
}
}

#

they are all set to json and not expressions.

#

command should be used instead of mode for the notification, i missed that one.