#Volume of TTS

1 messages · Page 1 of 1 (latest)

marble cliff
#

I have a script that runs when my washing machine stops runnings. I have not been able to get the volume to stick at 40% when the announcement occurs. When it connects to my Google Home Group to announce on all speakers, they all set themselves to 75% Below is the code. Any help would be welcomed.

alias: Washing Machine Timer Done with TTS
triggers:
  
event_type: timer.finished
  event_data:
    entity_id: timer.washing_machine_timer
  trigger: event
actions:
  
data:
    message: Your washing machine cycle is complete!
  action: notify.mobile_app_caddys_iphone
target:
  entity_id: media_player.front_group_2
data:
  volume_level: 0.4
action: media_player.volume_set
action: tts.cloud_say
data:
  cache: false
  entity_id: media_player.front_group_2
  message: The washing machine has completed its cycle.  Please remove the laundry.
golden dawnBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.