-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various occupancy detection issues #138
Comments
I found an example of point 2 I mentioned in my original post. Currently there is no one in my bathroom, however zone 2 occupancy is showing as Detected. Overall occupancy is clear, which contradict each other. Target 1 Active is on, and the target 1 distance is 0 mm. I realised now I haven't set this sensor to have a Y start of 10 like my other sensors which mitigates this issue. However it is a bit odd that Target 1 is on, but has 0's for all values, Target 2 is off, but does have values for angle, distance, and resolution. Also another issue I spotted is that Zone 2 occupancy is Detected, while target count is 0, and Zone 3 target count is 1, but occupancy is clear. This is an example of the odd things ive been seeing which makes me think of creating helpers that check everything and only show presence if target count is greater than 0, while zone occupancy is detected and overall occupancy is detected and the target that is active must have values for angle, distance and resolution. |
After writing this and getting the screenshots I pressed the ESP reboot button on the sensor page in home assistant to reboot it fixing the issue, and that gave me the idea to maybe add an automation so that is values are conflicting, then reboot the sensor, that could be another temp fix until the root cause is found |
20 mins later I noticed the Bathroom lights on again. This time when checking the sensor, occupancy is off so I am unsure why the lights are on, but I did notice some issues in the entities. occupancy is clear overall and in each of the 3 zones, however target 1 active is on, and zone 3 target count is 1. None of the values for target 1 are changing, including the speed which is at 0.08m/s. I clicked on speed, and it shows it was last updated 9 minutes ago, and I can see in the history, there was a time this morning where the speed was the same value for 1 hour, and earlier this evening the same value for 2 hours. looking at the history the day before there was also two times where the speed has a stuck value for an hour each time. Id imagine if the distance, x or y values aren't changing the speed cant be anything other than 0 m/s |
This is from my kitchen sensor, no one is in the kitchen, occupancy is off as expected for overall and each zone, however target 2 active is on with values populated, including speed which has been hanging with the same value for the last 14 minutes, and this afternoon had a value for 5 hours straight |
I am finding the EPL very sensitive. Walking up the stairs which are next to the room with the EPL will trigger presence in the room. I have had to revert back to the Sonoff as that is more stable. I have to be honest, I am having trouble mapping the room. The x and y values jump about a bit when I try and map them. I am not sure which value to use. Does the resolution change the sensors sensitivity? |
Hi, I am still having continual issues to the point I only have 2 of the 7 presence sensors with automations enabled, the other 5 are sitting idle doing nothing. the 2 that are on work about 60-80% of the time, enough that I have kept them on. Below is another issue, All occupancies are off, target 1, 2, 3 Active are off, but its clearly tracking me as I step left and right the target 1 angle changes following me, and the distance, x, y, etc all change as usual. When I stepped into a different zone in that room, then the occupancy came on, but soon after going back to that first zone the occupancy went back to off, while still tracking me. I turned the sensor off and on at the wall, but it still had an issue. |
Thanks for all the details, I will take a close look soon. As a first step, can you try the non Bluetooth proxy version of the firmware? I wonder if some of the issues your seeing correspond with a WiFi drop which can be cause by Bluetooth proxy. Would be good to rule that out |
This is expected since sensors can see through walls. In this instance, you would set the max distance of the device to limit it to the size of the room so that it does not see the stairs. X and Y values will natural change, roughly +/- 30cm. That's for two main reasons:
To use the coordinates, they don't need to be exact to the mm - remember that if you see for example a change of 200mm, that may look huge but in reality its only 20cm which when talking about the size of a room is really very small. Just use an approximation and then dial it in from there |
@clintebbesen I also wonder if on top of changing to the non bluetooth version of the firmware, if you can add a 10mm gap in between the zone definitions? So for example, you have zone 2 starting at -4000 to -600 on X and 1900 to 3600 on Y. Then zone 3 starts at -600 to 4000 on X and 1900 to 3600 on Y. Could you try change the X on zone 3 to -590 to 4000 therefor creating a 10mm gap between zones? Do the same with any zones that technically "overlap" - perhaps there is a slight edgecase there. |
Thank you, that is very helpful. The stairs are to the right of the EPL. If I measure from the EPL to the wall, which value would I change? |
It might not necessarily be -500mm because that would assume that the target is picked up in an exact straight line to the stairs. The best way would be to stand on the stairs and use your phone to check the coordinates of the target it is detecting, then use those coordinates to check your zone config. |
Can you please try the new 1.1.1 firmware and see if this is still an issue? |
I am more than happy to do that. How do I install that? |
Currently seeing this in our hallway that's about 2.7 m long and 1 m wide, and the sensor is installed on one of the short walls. Kitchen connects to the opposite short wall, but the doors to bathroom, living room and bedroom are all along the long walls. I've set the maximum distance to 270 which is right at the entrance to kitchen. Going into the kitchen, the sensor 100 % reliably sees that the target has left because you cross the max distance boundary, but going into any of the other rooms to the sides which are closer, the values simply freeze and can stay that way for a long time – I would like to say this happens about half the time. The sensor has been updated to 1.1.1. I don't really need zones in this room, but what I'm trying right now is setting up a zone that is slightly smaller than the room itself and use that for the overall presence detection. For now this should, hypothetically, be more reliable than simply relying on the sensor figuring out when it can no longer see the target. |
I have tried to upgrade to 1.1.1, but I am not sure how to. I tried to do it via the instructions page, but I don't get a connect button. I have installed the driver the CH340 on my MacBook Air, but still don't see it. |
Are you making sure to click the Home Assistant button to select a platform and then selecting the options? |
Yes, the only option I see are the other boards to buy. I will try it again later. |
Also, just in case you missed it, make sure to use Chrome or Edge to do this, it won't work in Safari (it does not support serial port connectivity). I updated my sensors on a MacBook Pro via Edge and did not have to install any drivers to do it. |
I have been using Arc to update my M5Stack Atom Echo and that didn't need any drivers either. In that case I used Arc. That is what I was using this time. I will try native Chrome too. |
You have to go through the flow first:
Then you should be greeted with the Connect button. |
Yes as above you have to click to select the options.. Just as an FYI, drivers will not prevent the connect button from showing up, the connect button will always display even if nothing is plugged in, assuming you use a compatible browser (and you actually select the options) |
Found this after coming looking for help, I was having issues with false detections happening outside of the zone I've set. It's only been 30 mins or so since I flashed 1.1.1 but so far I haven't had a single false detection. |
I have just check mine and it has firmware 1.1.1. I thought I had 1.0.8. Did this come via my ESPHome 2024.10.0 update I did this morning? Regarding the above, thanks for the information, that fixed my connection issue. I assume most use the none Bluetooth option? I will see if 1.1.1 fixes my zone issue. I also have a new EPL that arrived today to setup. |
I just checked my new EPL. It came with 1.0.6, after installing, it did an update on its own and installed ESPHome 2024.10.0 and firmware 1.1.1. I think I am still seeing the issue above, but I need to take a closer look. |
Now I have found the Zone Creation Tool and that shows what the EPL sees, it will be easier to work out what is going on. |
I swapped from the general occupancy entity to zone 1 occupancy to decide if anyone was in the room and that fixed. If I used the general occupancy then the light still came on with 1.1.1 |
Hi,
I've been having a lot of issues with detection. I am having constant issues across 4 sensors where occupancy is both on when it shouldn't be, and off when it should be on. When occupancy is on, I can usually see a conflict of entities and see the issue.
Thank you for your help! I love the idea, but so far have been spending way too many hours trying to get everything working (probably 30+ hours tweaking them and working out work arounds to get them being more reliable), but tonight its run into significant issues and the house is in darkness with only 1 of the 4 working at all. im working through whats going on and hoping to get them fixed soon.
image for point 1:
image for point 3. Sensor is in corner of bathroom at bottom left, doorway is bottom right of room.
The text was updated successfully, but these errors were encountered: