Hi mchk. Thanks for responding. I made the change you suggested but it still doesn’t work consistently. If I run the actions then look at the trace and the step details, they differ quite significantly. When it works correctly this is the response I receive:
Response 1
params:
domain: tts
service: speak
service_data:
cache: false
media_player_entity_id: media_player.study_mini
options:
voice: kore
message: >-
Okay, here's a brief sarcastic message you can use for your broadcast:
"Attention, valued household members! The washing machine has, against all
odds, completed its heroic task. Someone is undoubtedly *thrilled* to
empty it right now."
entity_id:
- tts.google_ai_tts
target:
entity_id:
- tts.google_ai_tts
running_script: false
However if I run the same actions again these are some examples of the different “message:” I receive (I have only included the message section as all the other sections do not change). I have also been very careful to post the message responses “exactly” as received, including all the formatting/commenting codes.
Response 2
message: >-
Okay, here's a playful sarcastic message you can broadcast.
You can use the `tts.speak` service for this. Replace
`media_player.your_speaker_name` with the actual entity ID of your smart
speaker or media player where you want the message to be heard (or
`media_player.all` to broadcast to all compatible speakers).
```yaml
service: tts.speak
data:
media_player_entity_id: media_player.your_speaker_name # Or media_player.all
message: "Congratulations! The washing machine has, against all odds, successfully completed its mission. Now, if only someone with opposable thumbs and a sense of responsibility could perform the arduous task of unloading it."
```
Response 3
message: |-
```yaml
service: notify.broadcast
data:
message: "Breaking news: The washing machine has bravely completed its cycle. Your mission, should you choose to accept it, is to unload it."
```
Response 4
Here's a brief, sarcastic message you can broadcast using your Home
Assistant Text-to-Speech (TTS) system:
```yaml
service: tts.say
data:
entity_id: media_player.your_speaker_name # Or group.all_media_players, media_player.kitchen_display, etc.
message: "Well, well, well, if it isn't the washing machine, announcing its glorious completion. Someone might want to consider retrieving the clean, fresh laundry before it stages a sit-in."
```
**Before you run this:**
1. **Replace `media_player.your_speaker_name`** with the actual entity ID
of the speaker or media player you want the message to broadcast from. If
you want it to play on all your speakers, you might have a group set up
(e.g., `group.all_media_players`) or list multiple individual speakers.
2. You can adjust the message to be even more tailored to your
household's sense of humor
Response 5
message: >-
To broadcast a brief, sarcastic message about the washing machine
finishing, you can use the `tts.speak` service in Home Assistant. This
will play the message on one or more of your connected media players (like
Google Homes, Alexas, Sonos, etc.).
Here's an example service call you can use:
```yaml
service: tts.speak
data:
entity_id: all # Or specify a specific media player, e.g., media_player.google_home_mini
message: "Attention, household! The washing machine has, miraculously, finished its cycle. Your sparkling clean clothes are now eagerly awaiting their rescue from their watery confinement."
```
**How to use this:**
1. Go to **Developer Tools** in your Home Assistant interface.
2. Navigate to the **Services** tab.
3. In the "Service" dropdown, type or select `tts.speak`.
4. Copy and paste the YAML code above into the "YAML mode" section.
5. **Optional:** Change `entity_id: all` to a specific media player's
entity ID (e.g., `media_player.kitchen_speaker`) if you only want it to
play in one location.
6. Click **Call Service**.
The message will then be spoken aloud on your chosen media player(s).
There were a few more different responses I received, but I was conscious this post was getting too large so I omitted them.
The formatting and comments in the message responses varies quite a lot, which explains why sometimes the message responses broadcast to the Nest mini are so different.
Any idea what I am doing wrong? As always, any comments/suggestions would be greatly appreciated.