ESPresense / ESPresense-companion

HA Add-on / Docker container that solves indoor positions with mqtt data received from multiple ESPresense stations
Apache License 2.0
121 stars 9 forks source link

Implement a floor classifier #310

Open DTTerastar opened 10 months ago

DTTerastar commented 10 months ago

image

So I finally got everything setup. And Im also getting unexpected results I've got rooms and two floors. I have espresense nodes over two floor. Now for testing, I just focused on a single floor. Initially I saw the devices in the wrong places, thinking this was due to the number of sensors, I then change the second floor nodes so they are on first floor but higher. However this made no difference.

image

Looking at the ipad, espresnese itself thinks it is connected to the frontroom sensor, but this isnt even showing as one of the three for the mapping sensors for companion.

What occurred to me was I have brick walls, and this will be impacting the distance. So maybe when we draw walls we need to provide a correction factor due to the wall, some manual value we can derive from testing.

And using the sensors over the many floors, will also be handy as people who dont have concrete floors will be able to take advantage of the 3 dimensions for mapping.

But myAnd using the sensors over the many floors, will also be handy as people who dont have concrete floors will be able to take advantage of the 3 dimensions for mapping. overwhelming view is that ESPresense companion is starting to look like a viable option to give a position in a room, but it clearly needs tweaking.

Originally posted by @rhamblen in https://github.com/ESPresense/ESPresense-companion/issues/94#issuecomment-1623369195

CoMPaTech commented 9 months ago

Question that comes to mind (relating to my own setup) would be if walls are 'included' in the calculation and iterative absorption etc.?

I would have to create appropriate screenshots but I have a somewhat likewise issue; 3 floors and a fair number of sensors. Complicating factor is I have 3 sensors downstairs (on 3 different ESP boards), two upstairs (same ESP) and 2 in the attic (different ESPs). So device (or antenna) correction would be in play, but the floor walls are standardized (7cm) 'aerated concrete' (for lack of better translation) while the floors are 'reinforced concrete' (20cm).

What puzzled me is that a device about 2m away from the sensor in the bedroom actually shows about 1.47m in the dashboard (all others are above 3m indicated correctly) - it still would device that the attic device was the winner. That defied my understanding of the logic. Same seemed to happen with other devices above/below - but would have presumed the 'most devices' would win, but I had something shown 'downstairs' even though downstairs had 3 devices and upstairs 5 ...

I've read up in the meantime and mean to place the sensors 'further out' in the corners (with one in the middle) as suggested by the documentation, though that requires some readjustment of sockets/placement. Question would be if it helps understanding this issue (and my connection/relation to it) if I would attempt to place 3 sensors bottom and 3 sensors attic and one 'as central' as possible. (Unfortunately I won't be able to fully place 4 corners in the attic, I might be able to do so on the ground floor. I did not play around with the rssi@1m yet - and as said, the different esp's might be a complicating factor. (Used one atom m5, 2 esp32-s3-mini's and some older 'regular' esp32's).

DTTerastar commented 7 months ago

This paper has a floor classifier that could be a big improvement: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8792196

stale[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

CoMPaTech commented 4 months ago

Should not be closed, right?

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

CoMPaTech commented 1 month ago

Should it?

dalto12593 commented 1 week ago

I still have the same questions but it seems there's really no interest in sorting things out.

CoMPaTech commented 1 week ago

Hopefully @DTTerastar is just busy with IRL issues and can continue the presence project soon?