rospogrigio / airbnk_mqtt

MQTT control of Airbnk locks.
GNU General Public License v3.0
27 stars 6 forks source link

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

Open antonbek89 opened 1 year ago

antonbek89 commented 1 year ago

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 commented 1 year ago

Did someone find any solution to the situation?

formatBCE commented 1 year ago

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.

antonbek89 commented 1 year ago

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?

formatBCE commented 1 year ago

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

antonbek89 commented 1 year ago

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 ?

formatBCE commented 1 year ago

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.