I’ve had a look round but cant find a way of getting TTS to talk to specific media players.
i have an automation that turns volume to 6, says we have post, waits and then turns the volume down, the below obviously doesn’t work with the 2 entities but is kind of what i want. if i do separate sections for each player there is a bit of delay when they start talking. also i have a Sony TV that is also classed as a media player so if i use the “All” flag the TV also try’s to play along!!
- id: '1574024040648'
alias: New Post
description: ''
trigger:
- above: '1'
entity_id: sensor.post_box_y_coordinate
for: 0:00:01
platform: numeric_state
condition: []
action:
- data_template:
volume_level: '0.6'
entity_id: media_player.conservatory_speaker
entity_id: media_player.entryway_speaker
service: media_player.volume_set
- data:
message: You Have New Post
entity_id: media_player.conservatory_speaker
entity_id: media_player.entryway_speaker
service: tts.google_translate_say
- delay: '[object Object]'
- data_template:
volume_level: '0.3'
entity_id: media_player.conservatory_speaker
entity_id: media_player.entryway_speaker
service: media_player.volume_set