I have been able to recreate this and I can see there is a bug in option 8 of dynamic lighting. I will have to fix this. For now if you like you can enable the ambient option, enter in your lux sensor, select yes and set the low lux value to 50. This will only allow the automation to run when it is below 50. Note, this is a good way of doing it anyway and is what I would do.
Thanks for pointing this out and stay tuned for the fix / update.
I wonder though if the blueprint allows conditions at all.
Light: a zigbee switch which s1/s2 are hardwired to a physical switch on a wall.
Trigger: a zigbee door sensor.
Goal: when the light is OFF, do the automation. When the light is ON - do not do any (==do not switch off after timeout or by a trigger).
I can work it out using additional helpers/devices/automations but I was wondering if the blueprint can already âjust do itâ already? Thanks
I can see a bit of a conflict here. If the light is OFF and you turn the light ON to run the automation then âWhen the light is ON - do not do anyâ. What you can do is use a bypass with a different entity (not the light, could be a switch a toggle helper et) and use bypass option 1. When you manually turn the bypass ON, it turns the light ON and disables the automation.
This means the existing physical switch is useless and I need another one which is what I am trying to avoid. Or I got it wrong?
If it was a regular automation, I would put the door sensor to triggers and the light!=on to conditions. But the blueprint does not allow conditions and HA does not allow conditions on top of blueprints.
I cannot really as there the condition applies to both when the light is off and on. If I use the light state there, the blueprint stops when the light goes on.
Iâm relative new to Home Assistant and added the Sensor Light Blue Print and created a basic automation to turn on lights if a motion is detected. Iâm using a Fibaro Motion sensor via Z-Wave and used Motion detection entity. When I look to the entity the status is changing however the automation is never been fired.
Does something special need to be configured for the Blueprint to start working ?
Thanks in advance for any replies !
If that doesnât resolve it then could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on â</>â and paste code in there.
Hey @Blacky
I have an issue with Bypass tried everything if i add something in bypass my automation stops working i just canât figure it out why it does stop there if i have anything in bypass⌠even if the bypass should be off beacuse toggle used is off
I have tested your yaml and it all works. Note you are using an âAutomationâ for your bypass so it will be the toggle for the automation (enable / disable). The other thing to note is you are using the same automation as the bypass for option 1 & 2. You canât do that as there is a conflict because when you turn ON the bypass what should it do?.. turn ON or turn OFF the lights⌠it cant do both.
You log show the automation enabled and not disabled. Try checking it again making sure the automation is disabled and remove one automation entity from option 1 or option 2. If there is no entities in the bypass when you remove one make sure you disable it including the auto OFF.
Also note you have a scene in âScenes - Scripts To Turn OFFâ but you are using a light entity. You can have a scene there as it may be turning on a scene but I thought I would just ask / point that out.
You are using an area in âLights - Switches - Scenes - Scriptsâ. You canât do that as it only works with entities. You will need to expand it down to entities (all green not orange or blue).
Hey @Blacky i did the changes Yeah the bypass for options 1 & 2 was a stupid mistake from my side but still, i donât think there is anything wrong with the config below funny part is that if i comment all the bypass things it will work
maybe I donât understand what bypass does because what I want to achieve is pretty simple pause the automation for letâs say 20minutes keep the light on and after 20 minutes resume the automation I could do it outside of the blueprint but I think thatâs what the bypass is for, still I donât understand why it isnât working at all motion is detected ofc there is less lx than I set the minimum nothing happens if I press the button Iâm lost here is a full tracklog maybe you will see something https://pastebin.com/wjUXg287
I have checked it here again replacing your trigger, light and the bypass with an automation. All worked perfectly.
So lets look at a few things.
We know the light is good.
We know using an automation works, as long as you are toggling it ON and OFF (Enable / Disable).
The trigger⌠the automation needs this trigger to work. Lets look at this. Can you create a toggle helper and add the toggle helper as the trigger only so copy the toggle helper ID go into the YAML and replace your âbinary_sensor.senorruchukorytarz2_occupancyâ id with the toggle helper ID and click save. You should only have the toggle helper in the trigger. Now test it again. If it works then we need to look at your âbinary_sensor.senorruchukorytarz2_occupancyâ.
If that still doesnât work then put back your âbinary_sensor.senorruchukorytarz2_occupancyâ removing the toggle helper and then use the toggle helper in the bypass. Toggle it ON and see what happens, toggle it OFF and see what happens. You may want to reduce both the bypass minutes to â0.1â for speed of testing.
Your lighting experience, your way â take control and customize it to perfection!
In this update, we focused exclusively on dynamic lighting bugs. Below are the changes we have made. Hope you like it
DYNAMIC LIGHTING UPDATE
New Input Option
Dynamic Lighting - Toggle Helper: If you have chosen a brightness level of 0%, then itâs essential to create an independent toggle helper and enter into dynamic lighting. This toggle helper can also address issues if the automation doesnât behave as expected due to the occasional unavailability of light entities. While it may not always be necessary, if youâre open to creating toggle helpers, itâs highly recommended to utilize this option to ensure proper functionality of the automation.
Bugs Fixed
Fixed bugs in option 8.
Fixed bugs when using options 1, 2, 4, 5, 6, 7 or 8 and setting a brightness level of 0%. Dynamic lighting would stop and not come back ON. There is now a new toggle helper that is required when setting a a brightness level of 0%.
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
When you set up dynamic lighting with a brightness level of 0%, the light will turn off. Dynamic lighting relies on the state of the lights being âONâ to function correctly. If the lights are not detected as âON,â dynamic lighting stops, which is not desired. By using a toggle helper, dynamic lighting will monitor the toggle helperâs state instead, ensuring it continues to run. This is why the toggle helper is necessary only when setting a brightness level of 0%. Toggle helpers in Home Assistant are reliable and donât get lost on the network. If a light drops off momentarily when dynamic lighting checks the state, it can cause dynamic lighting to stop. Using a toggle helper ensures consistent functionality without relying on network connections.
Thatâs a pretty cool change. Thanks again so much Blacky. I had my minimum light brightness go down to 10% under Dynamic Lighting - Min Brightness Value. I am using option 4. Is there a benefit to lowering that to zero and adding the toggle helper?
I would urge everyone here to make a small donation. The support for this popular blueprint is second to none. Please support Blacky at:
And Blacky, I see they finally created the ability to collapse Blueprint sections. that will be great for Sensor Light as it has so much packed into it. I assume that we will have that new version soon after 2024.6 is released.