sq3evp wrote:Interesting idea, can any ESP or other controller be used?
The libraries used in this particular case are for ESP8266, I think that after replacing the libraries you can also use ESP32.
krzbor wrote:I`m thinking about using this device for monitoring. In the case of a separated and fenced building, you can detect that someone is hanging around (of course, if they have a phone. I noticed that information about the signal strength is transmitted - so you can determine approximately how far someone is.
Provided that Wi-Fi is turned on on the phone

When it comes to determining the distance, unfortunately it will not be so rosy - reflections and distortions of the signal can significantly change its strength. As a result, the relationship between RSSI and distance can vary between samples - even if the transmitter and receiver remain stationary. (...) the RSSI value can increase or decrease without changing the physical distance between the transmitter and receiver, depending on how the user holds the smartphone, how their body is positioned in relation to the device, or how surrounding structures reflect, block or absorb radio signals.
Here`s a quote about BT, because I can`t find an article about wifi Link
But the principle will be the same, these are radio waves.
From my observations lasting several days, I see that this is how it works - sometimes I see a person being monitored through the window, and sometimes I have several alarms within an hour, even though I know that the person is in the other building, i.e. about 100 m away, behind a few walls - just a few packages will arrive and you are already notified.
The basic design assumption for which I did this is absolutely fine, the system is supposed to send a signal to turn on the air conditioning, even before the user drives up to the gate, opens it, drives in, closes the gate, opens the door - the air conditioning will already be raging nicely.
