It's time for lunch

I made a very simple script.
I have an AVR that at Audio2 output is connected a chromecast audio device, and in another room I have a Google Home. I created in Google Home app a group with the 2 devices.

At a press of a button in home assistant, the tts components shouts “Hey guys, it’s time for lunch”, or whatever you need. Sort of an intercom with predefined commands.
p.s. not sure about the volume_level, have to check tomorrow. All the rest works fine

  its_time_for_lunch:  
    sequence:
      - service: media_player.turn_on
        entity_id: media_player.yamaha_receiver
      - service: media_player.select_source
        data:
          entity_id: media_player.yamaha_receiver
          source: AUDIO2
      - service: tts.google_say
        entity_id: media_player.home_group
        volume_level: 5
        data:
          message: "Hey guys, it's time for lunch"
1 Like

this is not working. Anyone knows how/where to put it?

Perhaps you need to split it into another service, since the service is volume_set and the parameter is volume_level.

- service: media_player.volume_set
  entity_id: media_player.home_group
  data:
    volume_level: 5