pboschi / HCPBridgeMqtt

emulates Hoermann HAP 1 HCP (HCP2) on ESP8622, ESP32 and Arduino.
18 stars 3 forks source link

Suggestion to improve code #3

Open stomko11 opened 1 year ago

stomko11 commented 1 year ago

Would it be possible to fix state reporting when gate is opened partially? When I send open/close command, and stop the gate, reported position is unknown. Not sure if this is related, but when using MQTT, if this happens, then I no longer have the option to again open/close it, I need to move it in other direction and stop and move back. As a workaround, I created MQTT template cover, that doesn't suffer from this, but I also miss state (opening, closing). In addition, target position is not being published to MQTT. If it was, I could template it somehow by comparing position vs. target position. At the moment, I use MQTT auto discovered device for state reporting, and my MQTT cover template to command the gate.

14yannick commented 1 year ago

I will have a look on this here. https://github.com/14yannick/HCPBridgeMqtt/issues/6