Thanks for the reply, but unfortunately I guess I misunderstood. Or maybe I mean something elseâŚ
I have home lighting based on Philips HUE (Zigbee Light Link).
The lighting is also integrated in Home Assistant. Itâs mostly controlled by the custom original Hue controllers (Dimmer Switch, Dial Tap and Smart Button). It is also controlled by various scenarios and automations. And also from Google Home Assistant.
The color temperature of the lighting is also controlled in real time in H.A. using the âAdaptive Lightingâ plugin.
My question - if I use your âBlue Printâ in conjunction with the Aqara FP2 occupancy sensor, will this scenario be able to restore the lighting to the exact previous state when I enter the room, before it was automatically turned off for the absent state by the same scenario also by your scenario?
That is, can your scenario âfingerprintâ (remember) the current settings of all lights that are on when the lights are turned off in absence?
So far I have not been able to do that, and the lighting is always just on-reset to some preset lighting scene, as specified in your blueprint configuration.
So Iâm throwing this out there not because I know how to do it, but because I think it might be a feasible solution for your needs if someone can write the code.
It could get messy, but what if you had a script that was called that created a scene of the âcurrent settingsâ just before enabling the motion detection scene?
If you can create the new scene in a way that overwrites the âlastâ current settings scene and set that as the scene to return to, youâll accomplish what I think youâre trying to do.
Edit to add: It seems you could write a script to log data to a file. If this same concept could be applied to your use case, I would expect that you could log the status of an entity to the scripts.yaml file in place of the status that was there last.
Actually just on the new 2023.12 blueprint update feature⌠it says Iâm not worthy to update to the newest version of the blueprint (5.1 at this point in time) using the new method so do I just manually update to 5.1 then in the future the HA people will say your blueprint is worthy for easy updating? I wonder if they will ever realse a notification service that a blueprint HAS an update so we know.
FAQ - How To Update Blueprint on Home Assistant Version: 2023.12.0 +
Important: Occasionally, updates may include breaking changes or additional requirements. It is highly recommended to perform a full backup of your Home Assistant before updating any blueprint. Check the blueprintâs post for notifications about changes, but be aware that not all changes may be announced. A full backup ensures you can roll back if any issues arise.
HOW TO UPDATE A BLUEPRINT
EASY WAY
Go to forum of the blueprint and click the Import Blueprint blue button again.
Follow the steps.
IN HOME ASSISTANT
Go into settings / automation & scenes / click on the blueprint tab at the top and then the 3 dots next to the blueprint you would like to update.
A pop up will appear and you will see you have an option to âre-import blueprintâ.
When you click on the âre-import blueprintâ you will get a confirmation to âre-importâ.
STOP Have you done a full backup If you are happy with everything (again, a backup of HA) then and only then should you click the âre-importâ button.
Once you click the âre-import blueprintâ button a confirmation message will appear down the bottom.
Your done!! You blueprint is updated
NOT WORKING
Not Working For You - Looks like you manually installed the blueprint. If that is the case then you will have to manually update it. Click Here to go through the steps on how to do that. You can also see the TIPS section below.
TIPS
But Wait!! If you would like to take advantage of this new update feature then you will have to import the blueprint again. Then update all of your automations, but check out the âTipâ below as it is not that hard to do.
TIP - In the YAML file of your existing automations is a file path. Once you imported the blueprint into your HA you can just change the file path to the new location in your existing automations. If you are unsure of the file path just add a test automation with the newly imported blueprint and go into your automation, top right 3 dots, Edit in YAML, and you will see the file path. Then copy the path of the newly imported blueprint automation.
Before you update the path: First copy the YAML of the existing automation you would like to update and save it in another file as your back up, yes I like back ups.
Once you have the new file path, use this file path in the existing automations you would like to update by replacing it with the new file path and clicking save. Do one at a time and check if it worked. You will then be able to use the new update feature in the future
Hi there, it would be very useful if the Github Gist would be moved to a Repo. Then we will be able to subscribe and get notifications of new releases.
Is there a way to do the oppsite with dynamic lighting. Maybe not even use lux but the value of sun elevation. So when you are using the bathroom at 2 am you dont get flash banged. So from dusk to dawn the brightness decreases to the low value and starts to increase as dawn approaches.
âYou have the option to use the âDynamic Lightingâ. It will dynamically adjust the brightness % to a floating lux value. When it gets darker your brightness will increase and as it gets lighter your brightness will decrease.â
Thatâs just for comments, not code changes - also, you wouldnât want to get a notification for every new revision of a snippet being posted.
This is why a Github Repo would be much better - even if itâs just a single file⌠you can then trigger a âreleaseâ when youâre done with all new updates and itâs stable enough to release
Yea I thought of this when setting it all up but HA recommended using a Gist. Hopefully HA will work on it so it will notify us all within HA when the file has changed or give us directions on what they would like us to do. They did touch on it the last YouTube release and even possibility of warning you if it will break and maybe give an option to fix it. Hope they develop something here.
The âre-import blueprintâ is a nice new feature as it is now realy easy to update.
Thanks for a great blueprint:)
I have one question, is it possible to add a function for triggering the lights on with a door sensor? Now I can only use it in livingrooms and not bedroom, toilet since i have to walk in the room for motion to trigger, then the childern allready have pushed the wall button and everything is back the manual control:P
It is already there. Have a look at my templates Click Here . Bee In The Hive Sensor is a good one and you many need to look at Inverted Sensor. Make sure you group your motion and door sensor together and add the group to the trigger.
For more information on how to set up group sensors please Click Here.
@Blacky Thanks for this automation. I made a almost similar functionality in node-red. I currently thinking about switching to this automation but to do so i mis one thing.
In my node-red flow i also dynamically influence the color temperature. It would be nice to be able to configure a entity where the color temperature is read from instead of a static value.
@Blacky thanks for this blueprint, love the level of customisation provided here.
I have a use case where lights are turned on manually but I want to turn them off automatically when the occupancy binary sensor turns to off. So I tried to:
Create a virtual switch that turns on/off as the occupancy sensor goes on/off
Use the above switch for the âEnable the By-pass - Turn lights OFFâ
However this will turn the lights off if they are already on and a person enters the room. The ideal behaviour should be the lights stay on. How should I go about fixing this?
Hello, first off all, thank you for this bluebrint.
i have this automation in my bath, someone goes in the light turn on for 5 minutes.
but when i take a shower the light turn off, and i cant it turn on agian.
so i want to keep the light on, if the huninity comes over 60% the light will be longer on for 10 Minutes. How can i make this. Thank you
One way would be to have an binary sensor switch that is a toggle. Then enter that switch into a group with your motion sensor. When you toggle the switch the automation is triggered and the time delay starts. If motion is detected in that time the automation runs as per normal. If not the light will turn OFF.
Looks like you need my Bathroom Humidity Exhaust Fan blueprint. It will also control the fan and keep the light on. It also has a automation link so you can use this blueprint and the other one.
The other way is to use a template sensor (REF - TS-3 in the link below for template sensors) so when your bathroom is above 60% it turns the bypass on. Probably use option 3 in the by-pass and maybe an auto off.
A better way that I would recommend is to get a door contact sensor and use Bee In The Hive Sensor template sensor. You will love it. The how to and all my examples of template sensors Click Here.