I used to have this working, but I neglected my Homeassistant setup for a while.
The old (pretty sure untouched) version that used to work and no longer does:
sequence:
- if:
- condition: not
conditions:
- condition: state
entity_id: media_player.bedroom_roku
state: Plex - Free Movies & TV
attribute: source
then:
- service: google_assistant_sdk.send_text_command
data:
command: open plex on bedroom roku
enabled: true
else: []
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: media_player.play_media
target:
device_id: [redacted]
entity_id: media_player.bedroom_roku
data:
media_content_id: plex://[redacted]/47962?shuffle=1
media_content_type: playlist
- service: media_player.play_media
target:
entity_id: media_player.bedroom_robot
data:
media_content_id: media-source://media_source/local/moopsy.mp3
media_content_type: audio/mpeg
metadata:
title: moopsy.mp3
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
enabled: false
mode: single
icon: mdi:television