I saw some people in the Plex subreddit talking about Home Assistant and mentioned that I had set up voice commands for media playback. Some people wanted me to share it so I added it my github. If anyone wants to try it (you will need to adjust it to your specific devices/needs go ahead. I am also looking for some feedback to improve this where I can.
Just found this as I am pretty new to home assistant. Trying to figure out if I’m missing something important in my particular deployment. Running HA 2025.9.1 container as an “App” in TrueNas Scale 25.04.2. The devices I am trying to control (4 Sony A80J Android Smart TVs and a singular Shield TV) show up under the “Android TV Remote” integration. I also have the Plex integration set up, and it properly shows the 5 smart tvs I have in the house and even displays what they are watching.
I have the area detection portion(s) disabled as I am just trying out the Preview Edition PUC thing so area detection isn’t important at this time. Also noticed that by disabling the area sections, it allowed my commands to proceed further. I don’t have playlists configured at this time as I don’t use playlists on my Plex Server. I am using Home Assistant Cloud as the voice assistant. When the doing the commands, the response from the assistant is “Done” but nothing actually happens when instructing it to play a movie or show.
Just to confirm:
- mediaplayer is for plex interation of that particular device. In my instance, I have them all named as master_bedroom_plex, living_room_plex, etc.
- mediaplayercontrol is for the android tv remote integration. In my instance, they are named master_bedroom_tv, living room_tv, etc.
- In the “Then Do Section” items such as “streammovienoplayer”, the device is supposed to be plex integration device, not the android tv remote device, correct? In the code, it is using the Device ID for those Plex Devices.
- The “scan clients button” is the Plex Server “scan for clients” entity in the Plex integration.
- The Library names are how they are displayed on the left hand side of Plex GUI. In my case, the “TV Shows” and “Movies” respectively as they were by default when deploying Plex years ago.
**I can provide my YAML if needed. Apparently too long to be in this response.
Ya that is all correct.
Do you mind taking a look at my YAML and see if there is something stupid that I am missing/messed up?
I used the entity id, not the device id for the playback commands. That may be it. First try getting playback working through the Developer Tools>Actions. That may help you with finding where the problem may be.
That’s interesting, I tried the entity first before switching to using the the device. I will take a look using the Dev Tools> Actions.