Hello,
can you tell me pls, how to you make the
Ambient Light Sensor - Site Conditions
In some cases when your lights turn ON, your ambient light sensor is affected, increasing its LUX value. This can cause the lights to go OFF prematurely. Please select an option that best suits your installation.
THX
Hi, I have a non-smart light that is connected to an Aqara E1 smart switch. I use this blueprint to trigger the light to come on when motion is detected, however if the light is manually turned off with the switch after use, the lights will turn on and off a few times. Is there a way to prevent this?
If you are looking for a bed sensors @tom_l a moderator of this forum has shared one of his projects. It is very detailed how to make one, cost effective and defiantly worth a read. I also sure if you have any questions Tom will help you with good advice. I use do not disturb on my phone but one day I will tackle this project. Below is a link to Tom’s project.
Yes you can… the only thing is once the automation is cleared finishes it will turn you light back ON if the trigger is triggered. Follow the steps below on how to do it.
Create a scene with your light ON and enter it into ‘Lights - Switches - Scenes - Scripts’.
Create another scene with your light OFF and enter it into ‘Scenes - Scripts To Turn OFF’.
Create a toggle helper and enter it into ‘Scenes & Scripts - Toggle Helper’.
Set up the rest of the automation to your liking.
Click save and your done
Now you will be able to turn the light OFF once the automation turns it ON as the automation is now looking at the toggle helper.
If that not what you would like then you can use the bypass options.
Hi @Blacky, I’ve run into an issue with automations that have zigbee PIR sensor as the “Trigger Sensor”. If these sensors become “unavailable” due to zigbee2mqtt crash/reboots/unavailable, the automation is triggered. Is this expected behaviour? One would think that the trigger should only be for when these sensors report as “true” not just “unavailable”?
Not sure I understood. The PIR sensor changed from “false” to “unavailable” which triggered the automaton. Should it only trigger when it changes from “false” to “true”?
Thanks for this. I just did another test and traced it out. It appears the culprit is the “Bypass to turn lights OFF” using a switch zigbee mmwave sensor (Powder is Empty)
Your switch is not complete. What are you trying to do here?
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.
So I have 2 sensors for this room. One PIR to instantly turn on the light upon detection, and an mmWave sensor to detect “No occupancy” to turn off the light using the Bypass option. Everything works exactly as expected until zigbee2mqtt restarts or become unavailable, then the Bypass trigger but then turn On the light instead.
How is my switch not complete? What am I missing in the config?
Okay, you don’t need to use the bypass to turn OFF your light. Once the PIR sensor clears is will start the time delay and turn you light OFF. Please remove this from the bypass.
What you can do is use your PIR and your mmWave sensor as the trigger but you will need to group them. Please follow these steps Click Here. The add just the group into the trigger.
Try that and see how you go… hope this is what you are after.
Here is a link to HA website but a much simpler way is to use a template binary sensor for doing this. I have a lot of examples here.
how to do this is
Go to Settings / Devices & Services / Helpers Tab at the top / Create Helper / Template / Binary Sensor / State template paste this code. But again I would not recommend this as your are making the blueprint fight itself.
The problem I have is the mmWave sensor is very sensitive, it will detect movement outside of the wall of this room when someone walks past it. Therefore I do not want it as a trigger to turn on the light. The PIR sensor only works in the room so it will give me higher accuracy of detecting if someone entered the room.
I’m aware of the binary group sensor but I don’t think it’ll do what I need: PIR to turn on upon detection and mmWave to turn off upon no occupancy.