i have a 4-button switch in Z2M, but i cannot specify itâs buttons as a bypass. In Z2M, it seems that it only has a âactionâ entity that tells whether button 1 was pressed or button 3 was held and so on, but i cannot find it or reference it in any way, in HA. I cannot choose the action entity as a bypass either. However, i can choose the automation that controls what the buttons do, but it doesnât seem like thatâs the right way to proceed. Is it possible for me to still use that as bypass? If so, please tell
From Z2M exposes:
In my bathroom, i have 2 separate lights that are both controlled by the same automation, one in ceiling and one by the mirror. The ceiling light is bright, so i always set that at about 70% which means that the mirror light is also turned on at 70%, since brightness cannot be controlled individually. The problem is that the mirror light is not too happy about being brightness controlled and will make a high-pitched screeching noise while not being at 100%. How can i control the brightness level of the two lights individually, while still using your automation?
In the Bypass section, you mention that one should not use the same entity in more than one bypass option. I have a shelly relay attached to one of my lights and two physical, spring-loaded switches, effectively only giving me one input per switch (which is toggle). The switches are both connected to the same channel on the shelly relay and both are used for turning on and off. Im not sure how to make the automation understand correctly that i just turned on (or off) the lights manually. Any advice?
Iâve been looking through your documentation, but havenât been able to find answers for these questions. I hope youâre willing to help! Thanks for all your time, the effort and your help!
I think you need a binary sensor. You can create another helper, a template binary sensor, that mirrors the value of the first helper, then use this template binary sensor in the blueprint.
Or alternatively, you can skip the automation and just use the template binary sensor, writing the 3 minutes rule in the template. Ask ChatGPT or Gemini for help on how to write the template, theyâre great with this kind of requests.
I went ahead and asked myself. This should work, just change âmotion_sensorâ to the id of your motion sensor.
hi @Blacky ,
huge fan of your bluebrint, just saying cause I usually come here with errors.
One of my blue prints topped working. I get an error at the step where there is a first " choose"
Error: UndefinedError: âhomeassistant.util.read_only_dict.ReadOnlyDict objectâ has no attribute âbrightnessâ
What could this be?
edit: I found it but canât solve it. IN teh automation config screen (traces) it still shows an old switch as an entity. Is there a way to remove this?
edit 2: This didnât seem to be the problem,
I remade the automation by coping the correct automation config.
I gives an error:
Stopped because an error was encountered at January 6, 2025 at 3:35:34 PM (runtime: 104.91 seconds)
You will have to create a template binary sensor and add it to your config file. I have a FAQ for this click here for more information but your code is below.
Your entity must have an ON / OFF state. Normally buttons can have no state or a quick ON / OFF. You will have to try and make the button toggle a toggle helper. You could try this blueprint and see if it works then use the toggle helper in the bypass. Press Button - Turn ON & OFF Entities
This is the perfect use case for a scene. Create a scene with your ceiling and mirror lights and adjust the brightness on each entity to your liking. You will then need to create a toggle helper and another scene with everything OFF. Look in the Lights section on were to put everything so it works well.
Have a read of the FAQ on bypasses. It explains everything, click here
Iâve tried many different options, but Iâm sorry I canât figured out how to prevent the automation to turn off the lights (never), if they were already on. I tried using âbypass optionsâ with an helper activated when the scene is activated, but never found the right configuration.
I have a couple of lights and a motion sensor.
What I want is :
Let the user control the lights using a scene
Between 10am and 20pm, if occupation turns on, and the luminosity is under X lux, turn on the lights during Y min)
If the lights are off, turn on the lights, if the lights are already on : do nothing !
Could you please provide us your YAML of the automation⌠the best one you have configured? 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.
Sorry for all the questions, but I might have one more ask.
So I created the group sensor Other Zone, Desk Zone and Rack Zone.
I have the Other Zone as Cool White and the Desk Zone like you suggested as the night lights with warm white. If I wanted the Rack Zone a different color of lights how would I implement that? I am pretty sure I am getting a little more complex and probably would need a script or something
Well, here is the best I have: the helper is turned on when the scene is activated, but itâs not disabled when the lights are turned off (using the voice or the dashboard). So the automation only work while the lights arenât turned off manually. If so, the automation never turns on the lights again.
If I use the âEnable the auto OFF for the bypass switchâ, the automation turns off the helper, and the lights (I donât want this, I want to keep the lights on if they were activated by the scene.).
Hi,
What may be the cause of having the very same automation work with a Hue Go but not with a hue TV Gradient Stripe ?
I am just changing the light targeted, works with the Go not with the StripeâŚ
Edit: after reading the docs, it only supports entities as lights and I was using a deviceâŚ
I have tried your suggestion. The script for switching off is running. But if there is a new motion detected while this script is running, the light switches to 100%, but the script keeps running in parallel and turns off the light at the end.
Do you have any idea how I can avoid this behavior? How to cancel the script?
@Blacky thanks for the answer!
I will try your recommendations. However, i have one additional question: When i have created a scene and a toggle helper, shouldnât i⌠like connect those two somehow? like reference the toggle helper in the scene or something else? Or is it enough that i just add both in the same automation, and then the automation knows that the toggle helper is created to help toggle the scene?
The automation will turn ON 3 lights if it is after 8pm and before 10am (at night) and only if the ambient sensor is below 4lx and once ON it will disregard your ambient sensor.
If you have a scene and you turn it ON and you donât want the automation to run / take over then yes use the bypass. In the scene add the bypass to it and turn it ON in the scene. This will disable the automation. You will have to make sure when your turn OFF the scene that you also turn OFF the bypass⌠you could use the auto OFF in the blueprint if that works for you.
No the toggle helper is used for the scene status⌠see scenes have no ON or OFF state and we use the toggle helper for this. It makes the automation run correctly⌠all you need to do is create a toggle helper just for this automation and add it into the input Scenes & Scripts - Toggle Helper. Remember you will have to create an identical scene with everything OFF and enter it into Scenes - Scripts To Turn OFF so you lights turn OFF.
Your lighting experience, your way â take control and customize it to perfection!
New Feature
Dynamic Lighting - You now have 4 new time controlled options. If you live in the far north or south, using sun elevation may not be practical during winter or summer, as daylight hours can be very limited or constant. These new options can help simulate a normal day of artificial lighting, providing a more consistent experience for those without typical daylight patterns. As always, you have full control to customize the settings to your liking.
Bug Fixes
Fixed a bug in Dynamic Lighting cross over from night lights.
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