The group media player platform lets you combine multiple media players into one entity. All child media players of a media player group can still be used as usual, but controlling the state of the grouped media player will forward the command to each child media player.
To enable this platform in your installation, add the following to your
# Example configuration.yaml entry media_player: - platform: group entities: - media_player.kitchen_tv - media_player.livivng_room_tv
Here’s an example of a script using the above media player group.
script: tts: alias: Run TTS sequence: service: tts.google_translate_say entity_id: media_player.media_group data: message: 'The cake is a lie.'