aderusha / HASwitchPlate

LCD touchscreen for Home Automation
MIT License
730 stars 128 forks source link

Bluetooth presence detection #58

Closed penright closed 5 years ago

penright commented 5 years ago

Feature Request:

This link is an example of someone using esp32 and mqtt.

This link is an example of someone using a pi-zero, this has some algorithms that might come in handy.

I thought I would start this here so it does not get lost in the main thread, and I am interested in helping code it.
I have a dozen esp8266 but no esp32 yet. I have one ordered, once I get it, I will try and get a hello world running. Then we can see more what is involved.

aderusha commented 5 years ago

I think the major challenge is going to be making an ESP32 board fit into the existing WEMOS D1 Mini footprint. There is a D1 mini-like ESP32 which is pin compatible but it's too wide for the PCB.

penright commented 5 years ago

When I posted the FR I did not notice the size difference of the ESP8286 mini vs the ESP32. I see what you mean. I do have the board I order from you now. I also had a B114R (old work box) laying around, and the current .STL files will not fit in it, little on making it bigger. My house has all new workboxes, so I am sure it will fit them. I do have one of the ESP32 on order and I am waiting on the slow boat. Still learning. (a lot). :-)

To be honest, I am not sure if it will help or not. Right now for presence detection, I am using the google maps. For some reason, in the middle of the night, it will drift far enough that it triggers a "not home". I try adding nmap, the problem is leaving takes too long to trigger the "leave home". Comparing nmap to google map, arriving is pretty close, leaving is sometimes up to 10 minutes. I know there are settings, but I am trying to save batteries.

aderusha commented 5 years ago

Closing issue as it pertains to ESP32, not used in this project.