Hi here,
I was historicaly using these kind of automations in order to play messages on my amazon echoes, example :
alias: "Notification : Billy est bloqué"
description: ""
mode: single
triggers:
- entity_id: sensor.billy_error
from: no_error
trigger: state
conditions: []
actions:
- data:
message: >
Billy est bloqué avec l'erreur : {{ states('sensor.billy_error') }}.
SAUVEZ BILLY !
action: notify.alexa_media_echo_salle_a_manger
- data:
title: Billy a picolé...
message: >
Billy est bloqué avec l'erreur : {{ states('sensor.billy_error') }}.
SAUVEZ BILLY !
action: notify.groupe_de_notifications_famille
But now, I would like to move to a more natural voice, and make use of my media.player compatible speakers to get clearer messages :
alias: "Notification : Billy est bloqué"
description: Annonce vocale et notifications quand Billy est coincé
triggers:
- entity_id: sensor.billy_error
from: no_error
trigger: state
conditions: []
actions:
- data:
title: Billy a picolé...
message: >
Billy est bloqué avec l'erreur : {{ states('sensor.billy_error') }}.
SAUVEZ BILLY !
action: notify.groupe_de_notifications_famille
- target:
entity_id: tts.openai_tts_gpt_4o_mini_tts
data:
media_player_entity_id: media_player.kitchen
message: >
Formule une phrase courte et drôle pour prévenir que le robot Billy est
coincé avec l'erreur suivante : {{ states('sensor.billy_error') }}.
cache: false
options:
instructions: Humorous, friendly, concise tone in French
action: tts.speak
mode: single
I run the automation, get no error at all, but no sound is coming out of my speaker. any clue ?