formatBCE / Airbnk-MQTTOpenGateway

Gateway to use Airbnk locks with HA custom integration https://github.com/rospogrigio/airbnk_mqtt
GNU Affero General Public License v3.0
12 stars 1 forks source link

New WeHere M531 not recognized #4

Open goberhammer opened 2 years ago

goberhammer commented 2 years ago

I :smile: I've installed and configured the gateway using the ESPHome method. Everything builds and runs correctly, but it seems that my lock is not found or recognized. The lock works with the app via bluetooth. Note that my broker is on another subnet, but the routing works because I can se debug messages on the 'ap2-olimex-poe/debug' channel topic. Attached are my ESPHome configuration and logs. I see only 'scan' messages, should I see something more about my lock ? I double-checked the MAC address in the template and it is correct.

Thanks for your work, any help would be greatly appreciated.

Logs attached: logs.txt

goberhammer commented 2 years ago

Clarifying a little more: I've also installed HA airbnk_mqtt integration and (I hope..) correctly configured it, but because It was not working I started debugging with an mqtt browser and saw that there were no packet received from the ESP device under the topic I choose ('lock_main_topic').

formatBCE commented 2 years ago

Hi @goberhammer

According to logs, gateway cannot see advertisement packets from lock. It doesn't mean it's not supported - BLE advertisements should be available anyways. My first guess is my laziness - could you try to write mac address capitalized? I don't remember if I handle lowercase characters there (although if I'm not, I clearly should) :)

Second guess would be distance. Try to place ESP as close to the lock as you can. It will also help with stable open/close commands.

And third possible problem could be, that Bluetooth antenna isn't working properly on ESP. As I see, you got PoE version? Maybe, there's some differences....

goberhammer commented 2 years ago

Thanks for the quick response! It was the MAC address not capitalized! Everything works well now. :)