Reputation: 149
Reposting my Reddit sub - not much of help there :)
I have two different DIY projects, based on ESP32 BLE stack:
They both are pretty similar by the nature - what they mostly do is scanning BLE advertisements (first one for tags, second one - for lock status) and interact with MQTT. You may check corresponding files in src/esphome directories to see pure logic.
However, they're pretty different in a way to use data.
Tracker project:
Lock gateway:
The problem statement is following:
Right now I use separate devices for both projects. I have SONOFF NSpanel right beside the front door (I made custom alarm panel from it, so it's convenient). So I included my tracker to it's firmware, and it sends command to open the door for me right while I'm approaching. NSpanel has pretty good range BTW.
Also, as lock gateway should be pretty close to the lock for good connection, I have another ESP32 with lock gateway firmware. But it's still pretty far from lock, as I don't have sockets in vicinity.
Would be super-cool to have both tracker and lock functionality on NSpanel.
So I'm thinking, how (and if) I can merge these into one project, considering all unsimilarities in logic.
Does someone have any thoughts? Bumping my head for couple days already.
Upvotes: -1
Views: 762
Reputation: 149
Instead of scanning in sequence with defined interval, I'm starting scan forever, and stopping only for short period of time, when I need to send command to lock. It works pretty good.
Upvotes: 1