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:
alias: Shuffle Trek
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
I’ve tried starting from scratch in the visual editor on a new version, dropping the state if/then and dropping the audio file for the sake of simplicity, came up with this but it still doesn’t work. Any ideas?
service: media_player.play_media
target:
entity_id: media_player.plex_plex_for_roku_bedroom_roku
data:
media_content_id: plex://[redacted]/47962
media_content_type: playlist
metadata:
title: Star Trek Television Collection
thumbnail: /api/plex_image_proxy/[redacted]/47962
media_class: playlist
children_media_class: episode
navigateIds:
- {}
- media_content_type: playlists
media_content_id: plex://[redacted]/all
- media_content_type: playlist
media_content_id: plex://[redacted]/47962