Hello
I love the idea in this automation. I don’t have separate lights to turn on, I’m just looking to dim the same lights. But I can’t seem to get it to work. Whenever I pause, the lights turn off rather than going to the intermission star or snapshot. Any help?
Your have ‘paused’ in your ‘Trigger - OFF State’, please remove it from there and only have it in ‘Intermission - Trigger State’. Hope you can see the conflict.
Thanks for the quick response. I adjusted that this evening to have the off state as standby (a state my media player doesn’t give), but it seems whenever I have have the intermission enabled, the lights turn off when paused. The lights also don’t seem at any point to return to a before movie state with the snapshot.
Please forgive my ignorance. I’m doing my best haha
This is really important, you need to see what state your ‘media_player.jellyfin_lg_smart_tv’ provides. Looks like you know how to see what the state it is in but just encase you are unsure go into developer tools and search for your media player, then play a move, pause it, cancel it, stop it, etc and see what states it provides. It is case sensitive so you have to copy it exactly to what is provided. Then you can add your states in buy typing it and hitting enter and you should see your state is added. Then remove any state your media (TV) doesn’t provide.
I have also noted that you have 2 different entities for your lights, it is probably correct but just checking.
light.living_room_side_lights
light.living_room_side_lights_old
The states are critical for it to work correctly.
Please let us know how you go and if you still can’t work it out we will get there in the end… happy to help.
Lights, Camera, Action! Get ready to grab the popcorn because it’s movie time with a touch of cinematic magic!
Maintenance
Update the description in “Lights - Switches - Scenes”, “Start Turn OFF - Lights - Switches”, “Intermission - Lights - Switches - Scenes” and “End Turn ON - Lights - Switches - Scenes - Scripts” to include the new option to select “labels”. The updated description should read:
NOTE: Only entities can be used. Areas, devices, and labels are not supported.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Can a separation for movies and TV shows be added for plex purposes? I only want to activate my movie lights when we are watching a movie. not a tv show.
If you can go into developer tools and search for your Plex media entity. Then Play a movie and take a screen shot of it and then watch a TV show and take a screen shot of it and post them here and I will see what we can do and if it can be done.
If you look at what you have you will see “media_content_type:” and then tvshow & movie. Chose what you would like… see below. For others reading this you can use any of the 3 attributes and you can enter in as many as you like.
Looks like you are getting the hang of it. The automation only works of what is there so if some times it works and other times it doesn’t then it will be the media player. It depends on how they handle it and the good thing is you know where to look.
When testing make sure you move slowly and keep and eye on your attributes. I see the screen shot media_content_type at the top and then you have another one with it down the bottom. Not sure why this is the case. It cold be the media player
If you are having problems with media_content_type maybe ask in the kodi forum and point out what you have found using it in HA with this blueprint. They should know more about this and they may even fix it.
@Blacky can you add also to add automation to activate instead of scenes. I have an automation blueprint for my movie lights and it would work with your blueprint but there is only scenes to us and not automation.
After a bit of tinkering and some help, we found that one of the installed add-ons was causing issues and the Kodi integration wasn’t refreshing the media_content_type. We’ve got it sorted now.
Thank you
One question remains: why does the blueprint trigger when the media_content_type is at the bottom of the page but not at the top?
Nice one, glad you got back to me. I thought it would be something there as we (Automation) can only do something when we get the information.
That will also be a Kodi or HA question. I would start with asking Kodi and see what they have to say… they would probably be interested in your question as it looks like they have an active community. From there I would then log a bug report to HA and see if they can help.
As a guess I would say it has to do with the space between top and bottom and Kodi needs to make sure that the attribute ‘media_content_type’ is always shown in the bottom section or they don’t. The other thing that may be of concern in the attributes is the way this is shown “media_title: Warcraft: The Beginning”. I would also ask Kodi if that is okay.
I’d like to use Dynamic Lighting (inverted lux) that takes lux value of a sensor in master bedroom and if dark, keeps lights dim in master bathroom. All fine and well until my wife does her makeup in the morning while I’m still sleeping - the lights are dim and she wants bright lights).
I have a door sensor on the door leading into the bathroom. I’d like to make it so that when the door is closed, the lights turn up to 100%, essentially ignoring dynamic lighting. When the door is opened, dynamic lighting is reengaged to turn the lights back to dim so as to not disturb whoever is sleeping.
Yes it can. Have you looked at just using the sensor light blueprint and using night lights, and use the state condition. You will have to make a template binary sensor that inverts the state of your door so when it is closed it is ON and when it is open it is OFF. Then use that as your state condition in night lights. You could also include the time condition in night lights so when your wife does her makeup at X time and the door is closed (using your template binary sensor) then you activate night lights that are set to 100% brightness. Also make sure you select “If lights are ON, adjust the lights when crossing over” in night light control.
If you look at my template examples click here is shows you how to invert a binary sensor. See REF - TS-7
Or you can just us the template helper by going to Settings / Devices & Services / Helpers Tab at the top / Create Helper / Template / Binary Sensor / Enter in the name you would like to call it and set the device class to your liking and in “State Template” paste the code below replacing the ‘binary_sensor.your_door_sensor_here’ with your door entity ID’s