arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
462 stars 104 forks source link

Getting current state of window covers on Homebridge startup #664

Open Calimerorulez opened 6 months ago

Calimerorulez commented 6 months ago

Hi,

How can I get to display the current percentage of opened/closed of my window covers when Homebridge starts? Now, the covers are shown as closed in the Home App when HB starts, and do not show the current status.

steffensammet commented 5 months ago

Hello,

I have the same issue; when HB opens, it says "closing..." all time. After I moved the window covers within Homekit a bit, the correct status appears.

This is the part of my configuration; As in case of Bosch, the range is between 0 (=closed) and 1 (fully open)

{ "type": "windowCovering", "name": "Rollladen Kinderzimmer Konstantin", "url": "192.168.178.3", "logMqtt": true, "topics": { "getPositionState": "iobroker/bsh/Rollladen Kinderzimmer Konstantin Status", "getCurrentPosition": { "topic": "iobroker/bsh/Rollladen Kinderzimmer Konstantin", "apply": "return ( Math.round( message * 100 ));" }, "setTargetPosition": { "topic": "iobroker/bsh/Rollladen Kinderzimmer Konstantin", "apply": "return ( message * 0.01 );" } }, "minPosition": 0, "maxPosition": 100, "manufacturer": "Bosch", "accessory": "mqttthing", "positionStateValues": [ "MOVING", "MOVING", "STOPPED" ] }