Couldnt find an example of someone else doing this so thought i would share, lets you say a single voice command to home assistant voice assistant to play a symfonium playlist just by saying chill, hope it helps someone else
alias: Play Symfonium Playlist
description: “”
triggers:
trigger: conversation
command:
chill
conditions:
actions:
action: media_player.turn_on
metadata: {}
target:
entity_id: media_player.android_tv
data: {}
delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
action: androidtv.adb_command
metadata: {}
target:
device_id: xxxxxxxxxxxxxxxxxxx
data:
command: monkey -p app.symfonik.music.player 1
delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
action: androidtv.adb_command
metadata: {}
target:
device_id: xxxxxxxxxxxxxxxxxxx
data:
command: >-
am broadcast -a app.symfonium.api.MEDIA_START -n
app.symfonik.music.player/app.symfonium.remote.api.ApiReceiver --es
MEDIA_TYPE playlist --es NAME ‘Ambient and Acoustic Chill’ --ez SHUFFLE
true --user 0
action: webostv.command
metadata: {}
data:
entity_id: media_player.lg_webos_tv
command: audio/setVolume
payload:
volume: 15
mode: single