airbnk_mqtt icon indicating copy to clipboard operation
airbnk_mqtt copied to clipboard

Bug when the lock open or close and we do the same action via HA

Open antonbek89 opened this issue 2 years ago • 6 comments

If the lock already open and I tried open again via HA I got "operating" but actually nothing happens

And then I reload the integration again and now want to close and again - operating

It's become to useful again only If I close/open via Wehere APP and then everything back to normal

Bottom line The bug when the lock already open/close and we do the same status via HA

antonbek89 avatar Dec 07 '22 00:12 antonbek89

Did someone find any solution to the situation?

antonbek89 avatar Jan 30 '23 22:01 antonbek89

Try to use code from my PR, and latest ESPHome gateway code. It eliminated similar problems for me - but for some locks it doesn't work.

formatBCE avatar Jan 30 '23 22:01 formatBCE

Try to use code from my PR, and latest ESPHome gateway code. It eliminated similar problems for me - but for some locks it doesn't work.

Where can I find it?

antonbek89 avatar Jan 30 '23 22:01 antonbek89

PR: https://github.com/rospogrigio/airbnk_mqtt/pull/25 Gateway code: https://github.com/formatBCE/Airbnk-MQTTOpenGateway/blob/main/src/esphome/airbnk-gateway.h

formatBCE avatar Jan 30 '23 22:01 formatBCE

PR: #25 Gateway code: https://github.com/formatBCE/Airbnk-MQTTOpenGateway/blob/main/src/esphome/airbnk-gateway.h

PR: #25 Gateway code: https://github.com/formatBCE/Airbnk-MQTTOpenGateway/blob/main/src/esphome/airbnk-gateway.h

PR: #25 Gateway code: https://github.com/formatBCE/Airbnk-MQTTOpenGateway/blob/main/src/esphome/airbnk-gateway.h

I use D1 mini ESP32 ESP-32 WiFi+Bluetooth So your PR not going to work with ESP ? only with AirbnkGatway ?

antonbek89 avatar Jan 30 '23 22:01 antonbek89

I use same device.

Everything here is working with Airbnk. PR is for Home Assistant integration (namely, you should replace code, that was changed in PR, in custom_device.py file). Gateway code is for using with ESPHome. If you still use completely custom firmware (like, code, compiled in Platformio) - I highly recommend to switch to ESPHome. You can find detailed instructions on that project's page.

formatBCE avatar Jan 30 '23 22:01 formatBCE