sure create a new automation, add a trigger > device > plex (whichever player) - starts playing
I would recommend keeping it simple as possible and use separate automations for different things, later as you learn and get more comfortable, you can make things more complex with stuff like;
you may or may not want to also choose some ‘and if’ restrictions, and/or use - actions/choose to pick between multiple behaviors depending on other criteria.
I don’t know why you would need or want a sensor, when the plex device integration provides triggers for playing and other conditions as I suggested above.
Does @jjlawren still maintain the Plex Integration?
If I Stop the Music from Playing before I Start the Movie the Automation works as expected.
However, if the Music is Playing when I Start the Movie the Automation Fails, it thinks that Music is still Playing when in fact the Movie is.
I also want to Add that when the Movie Finishes or is Stopped then the Light gets Switched On again but I have not got round to that, yet.
I really do not want to have to Stop the Music Playing whenever I want to Watch a Movie as it means I will have to Shuffle the Music again, meaning, possibly having to listen to the same Songs again and again.
Does the User who maintains the Plex Integration frequent these Boards?
I suggest you read the Plex integration docs and double check if there’s something you missed. I don’t use it, but the docs state that there should be an activity sensor which shows active users & media streams which you might be able to use.
Also, have a look here - I believe you should be using movie instead of movies
I just refer to a Movie as that is what it is. sorry
In the Automation it is referred to as a Film.
Also, the Automation works perfectly if Music is not Playing when a Movie is Started so I know that the Automation works as intended it is just that one crinkle.
I left the Automations Active, I had Disabled them as they were not working, seeminly.
I had Music Playing and then I started Playing a Movie, the Automation did not Run when the Movie Started Playing, however, approximately 10 Minutes after the Movie Started, the Automation kicked in.
The Living Room Light Turned Off and the LED Lights behind the TV Turned On.
I have no idea how to Troubleshoot this one as the Automation clearly works, however, if Music is Playing when I Start Playing a Movie there is a 10 Minute Delay before the Automation is Run.
If no Music is Playing when a Movie Starts Playing then the Automation is executed immediately upon the Movie Starting.