snowdd1 / homebridge-knx

KNX platform shim for homebridge
https://github.com/nfarina/homebridge
GNU General Public License v2.0
97 stars 56 forks source link

Error with custom window covering status #128

Open vddgil opened 5 years ago

vddgil commented 5 years ago

Hello,

I wrote an add-in for my knx window covering (the default one don't work as expected)

customServiceAPI.setValue(PositionState,2) customServiceAPI.setValue(CurrentPosition,45)

So, it should be stopped at 45% in homekit app, but in the app, it's not updated ...

He is a link to my add-in: https://gist.github.com/vddgil/352d3808a76ed19348612a07e2c3f165

Thanks in advance for your answer !

Gil

snowdd1 commented 5 years ago

Any hints from the log? Maybe the format if the value gets parsed into something strange, and setValue is avoiding writing strange things to homekit, to avoid being banned.

snowdd1 commented 5 years ago

Another hint: What home app shows is not CurrentPosition but TargetPosition, so you have to update that, too. Home app shows motion as long as Current != Target.