I’m trying to make a script that speaks, for example, my printer’s ink levels. Originally, I was trying to use a service called: media_player.alexa_tts
per the docs. However, it looks like after I install the alexa media player addon (and login to my alexa account), that service doesn’t exist. Instead, I might have to use the service called: notify.alexa_media
.
Below is my first attempt at a script. However, the script doesn’t run since I’m specifying both data:
and data_template:
. Could someone please tell me the correct way to speak this info to my Alexa echo device?
service: notify.alexa_media
data:
target: notify.alexa_media_mka_net_echo_dot
data_template:
message: "Printer black ink level is {{states('sensor.hp_envy_photo_7800_series_black_ink')}} color ink level is {{states('sensor.hp_envy_photo_7800_series_tri_color_ink')}}."
data:
type: tts
EDIT: Below, is my updated script which runs without errors. However, there is no sound coming out my Alexa Echo device:
service: notify.alexa_media
data_template:
target: notify.alexa_media_mka_net_echo_dot
data:
type: announce
message: "Printer black ink level is {{states('sensor.hp_envy_photo_7800_series_black_ink')}} color ink level is {{states('sensor.hp_envy_photo_7800_series_tri_color_ink')}}."
PS: I tried both type: announce
and type: tts
they both produce no sound