cflurin / homebridge-mqtt

Homebridge-mqtt is a Plugin for Homebridge.
Apache License 2.0
229 stars 38 forks source link

refresh status and save function after reset #74

Closed mickelk closed 4 years ago

mickelk commented 5 years ago

Hello! I am just at the stage of installing window blinds from the guide https://maxmacstn.wordpress.com/2018/08/12/diy-ม่านไฟฟ้าจากม่าน-ikea/

I have two problems:

  1. After adding the blind to MQTT LENS, it is displayed in HomeKIT but after resetting Homebridge removes it. What should I do to stay permanently?

Zrzut-ekranu-2019-03-23-o-00-50-30

  1. When opening the blind, when it is already 100% open in HomeKIT, I still have the status of opening ... and it does not change to OPEN

Zrzut-ekranu-2019-03-23-o-00-51-58

bakman2 commented 5 years ago

I spend some time figuring out how WindowCovering works:

You have to send in this order: TargetPosition, CurrentPosition, PositionState.

Then the icon will change its state. To make it permanent you need to use the mqtt 'retain' flag.