FR: Simplifying Dark Detection in Magic Areas with Illuminance Sensors #416
Replies: 3 comments 2 replies
-
Hey @Julien-Decoen, the reason I don't do that is because its tricky to use the rooms own illuminance as light sensor without finagling with the hysteresis. It will cause an eternal loop of lights going on and off reacting to the illuminance level. I use the exterior light sensor in almost all of the rooms. So steps 1-3 on your workflow would be done in the Exterior area and 4 on each area. |
Beta Was this translation helpful? Give feedback.
-
I hadn't thought about using exterior light sensors to adapt the room lighting. That actually makes a lot of sense, although I'm still trying to figure out if there could be any side effects. On my end, I’ve modified Magic Areas to work like this: I have a light sensor in each room (or shared with another room that has similar exposure using include_entities). For configuration, I use several entities per room:
Here’s what the settings popup looks like for each room. To calculate the desired light level, I’ve used the formula from this blueprint: Smart Lux Dimmer - Adjust Light Brightness Depending on Light Sensor Value. This implementation is quite advanced. I’m not sure if it aligns with your vision for Magic Areas, but I’m sharing it because I feel your implementation of the Threshold Light binary sensor is starting to resemble mine. Maybe we can share ideas and collaborate on this! So far, the main limitation I’ve encountered is what I call the "cloud syndrome." When a cloud passes in front of my window, it causes the light to brighten up, and then a few seconds later, when the cloud moves away, the brightness drops back down abruptly. I’ve thought about fixing this by using an average of the aggregated illuminance over a set period, but I haven’t had time to implement it yet. Let me know what you think. I believe using light sensors really adds a lot to Magic Areas! |
Beta Was this translation helpful? Give feedback.
-
Hey @Julien-Decoen I intentionally left that out of MA in favor of using https://github.com/basnijholt/adaptive-lighting/, give it look |
Beta Was this translation helpful? Give feedback.
-
Hi @jseidl ,
I’d like to discuss how Magic Areas defines whether a room is dark or not. Based on what I understand, here’s the process if I want to use my illuminance sensors to determine if a room is dark:
1/ Add illuminance sensors in my Home Assistant area.
2/ Enable the sensor aggregation feature.
3/ Adjust the Illuminance threshold value.
4/ Select the newly created Threshold Light binary_sensor in the "Advanced area state tracking" section.
If I got this process right, what do you think about making the Threshold Light binary_sensor the default for managing room lighting detection? It could simplify this use case by making it the standard setup for handling room illuminance.
Looking forward to your thoughts!
Julien
Beta Was this translation helpful? Give feedback.
All reactions