Homebridge-hue: Ikea Blinds never reports close state in Homekit

Created on 28 Dec 2019  路  10Comments  路  Source: ebaauw/homebridge-hue

See #530

I have the same Problem.

When I send the command to close via Homekit, the blind is never closed 100%. If you take a look at the deCONZ-GUI under "Windows Covering Cluster", you can see an Actual position of 99%. If I now send the command to close via Deconz to 100%, the Homekit also shows the status closed.

If I now only control the roller blind via deCONZ, and open it to 85%, for example, Homekit shows a position of 84%.

It seems like there is an offset about 1 % when Controlling it over Homekit. Controlling over Homeassistant closes the Bilnd to 100%.

question

Most helpful comment

I've opened an issue with deCONZ. I had a quick look at the code; they use 255/100 instead of 254/100 to convert the ZigBee value to the REST API value (and 100/255 v.v.). After changing that, the blind fully closes, and reports _Lift Percentage_ as 100. I'll see if I can cook up a PR.

All 10 comments

Please capture and attach a full debug log, see https://github.com/ebaauw/homebridge-hue#debug-log-file. Make sure to control the blind from HomeKit, from Homeassistant, and from deCONZ while capturing the log.

If I now only control the roller blind via deCONZ

Via the GUI or through the REST API?

>

If I now only control the roller blind via deCONZ

Via the GUI or through the REST API?

via deCONZ-GUI where you can see the Mesh network

I did three full runs. Completely open and shut. The first with Homekit, the second with deCONZ-GUI and the third with Homeassistant. It is noticeable that the run with Homekit, "bri" only sets to 252, in the other cases it is always 255.

I filtered the log as good as I could, there was a lot of noise from other devices.

HomeKit Full open/close

[Hue] Window covering device 19: set homekit battery level from 0% to 35%
[Hue] Window covering device 19: homekit target position changed from 0% to 100%
[Hue] Window covering device 19: state changed event: {"":249,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 0 to 249
[Hue] Window covering device 19: state changed event: {"bri":237,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 249 to 237
[Hue] Window covering device 19: set homekit current position from 0% to 5%
[Hue] Window covering device 19: state changed event: {"bri":224,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 237 to 224
[Hue] Window covering device 19: set homekit current position from 5% to 10%
[Hue] Window covering device 19: state changed event: {"bri":214,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 224 to 214
[Hue] Window covering device 19: set homekit current position from 10% to 15%
[Hue] Window covering device 19: state changed event: {"bri":201,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 214 to 201
[Hue] Window covering device 19: set homekit current position from 15% to 20%
[Hue] Window covering device 19: state changed event: {"bri":188,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 201 to 188
[Hue] Window covering device 19: set homekit current position from 20% to 25%
[Hue] Window covering device 19: state changed event: {"bri":175,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 188 to 175
[Hue] Window covering device 19: set homekit current position from 25% to 30%
[Hue] Window covering device 19: state changed event: {"bri":163,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 175 to 163
[Hue] Window covering device 19: set homekit current position from 30% to 35%
[Hue] Window covering device 19: state changed event: {"bri":150,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 163 to 150
[Hue] Window covering device 19: set homekit current position from 35% to 40%
[Hue] Window covering device 19: state changed event: {"bri":137,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 150 to 137
[Hue] Window covering device 19: set homekit current position from 40% to 45%
[Hue] Window covering device 19: state changed event: {"bri":127,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 137 to 127
[Hue] Window covering device 19: set homekit current position from 45% to 50%
[Hue] Window covering device 19: state changed event: {"bri":114,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 127 to 114
[Hue] Window covering device 19: set homekit current position from 50% to 55%
[Hue] Window covering device 19: state changed event: {"bri":102,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 114 to 102
[Hue] Window covering device 19: set homekit current position from 55% to 60%
[Hue] Window covering device 19: state changed event: {"bri":89,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 102 to 89
[Hue] Window covering device 19: set homekit current position from 60% to 65%
[Hue] Window covering device 19: state changed event: {"bri":76,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 89 to 76
[Hue] Window covering device 19: set homekit current position from 65% to 70%
[Hue] Window covering device 19: state changed event: {"bri":63,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 76 to 63
[Hue] Window covering device 19: set homekit current position from 70% to 75%
[Hue] Window covering device 19: state changed event: {"bri":51,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 63 to 51
[Hue] Window covering device 19: set homekit current position from 75% to 80%
[Hue] Window covering device 19: state changed event: {"bri":38,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 51 to 38
[Hue] Window covering device 19: set homekit current position from 80% to 85%
[Hue] Window covering device 19: state changed event: {"bri":28,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 38 to 28
[Hue] Window covering device 19: set homekit current position from 85% to 90%
[Hue] Window covering device 19: state changed event: {"bri":15,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 28 to 15
[Hue] Window covering device 19: set homekit current position from 90% to 95%
[Hue] Window covering device 19: state changed event: {"bri":2,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 15 to 2
[Hue] Window covering device 19: set homekit current position from 95% to 100%
[Hue] Window covering device 19: state changed event: {"bri":0,"on":false,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 2 to 0
[Hue] Window covering device 19: homekit target position changed from 100% to 0%
[Hue] Window covering device 19: state changed event: {"bri":2,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 254 to 2
[Hue] Window covering device 19: state changed event: {"bri":15,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 2 to 15
[Hue] Window covering device 19: set homekit current position from 100% to 95%
[Hue] Window covering device 19: state changed event: {"bri":25,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 15 to 25
[Hue] Window covering device 19: set homekit current position from 95% to 90%
[Hue] Window covering device 19: state changed event: {"bri":38,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 25 to 38
[Hue] Window covering device 19: set homekit current position from 90% to 85%
[Hue] Window covering device 19: state changed event: {"bri":51,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 38 to 51
[Hue] Window covering device 19: set homekit current position from 85% to 80%
[Hue] Window covering device 19: state changed event: {"bri":63,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 51 to 63
[Hue] Window covering device 19: set homekit current position from 80% to 75%
[Hue] Window covering device 19: state changed event: {"bri":76,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 63 to 76
[Hue] Window covering device 19: set homekit current position from 75% to 70%
[Hue] Window covering device 19: state changed event: {"bri":89,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 76 to 89
[Hue] Window covering device 19: set homekit current position from 70% to 65%
[Hue] Window covering device 19: state changed event: {"bri":102,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 89 to 102
[Hue] Window covering device 19: set homekit current position from 65% to 60%
[Hue] Window covering device 19: state changed event: {"bri":114,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 102 to 114
[Hue] Window covering device 19: set homekit current position from 60% to 55%
[Hue] Window covering device 19: state changed event: {"bri":124,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 114 to 124
[Hue] Window covering device 19: set homekit current position from 55% to 50%
[Hue] Window covering device 19: state changed event: {"bri":137,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 124 to 137
[Hue] Window covering device 19: set homekit current position from 50% to 45%
[Hue] Window covering device 19: state changed event: {"bri":150,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 137 to 150
[Hue] Window covering device 19: set homekit current position from 45% to 40%
[Hue] Window covering device 19: state changed event: {"bri":163,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 150 to 163
[Hue] Window covering device 19: set homekit current position from 40% to 35%
[Hue] Window covering device 19: state changed event: {"bri":175,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 163 to 175
[Hue] Window covering device 19: set homekit current position from 35% to 30%
[Hue] Window covering device 19: state changed event: {"bri":188,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 175 to 188
[Hue] Window covering device 19: set homekit current position from 30% to 25%
[Hue] Window covering device 19: state changed event: {"bri":201,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 188 to 201
[Hue] Window covering device 19: set homekit current position from 25% to 20%
[Hue] Window covering device 19: state changed event: {"bri":214,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 201 to 214
[Hue] Window covering device 19: set homekit current position from 20% to 15%
[Hue] Window covering device 19: state changed event: {"bri":224,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 214 to 224
[Hue] Window covering device 19: set homekit current position from 15% to 10%
[Hue] Window covering device 19: state changed event: {"bri":237,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 224 to 237
[Hue] Window covering device 19: set homekit current position from 10% to 5%
[Hue] Window covering device 19: state changed event: {"bri":249,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 237 to 249
[Hue] Window covering device 19: set homekit current position from 5% to 0%
[Hue] Window covering device 19: state changed event: {"bri":252,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 249 to 252

deCONZ Full open/close

DECONZ
[Hue] Window covering device 19: state changed event: {"bri":247,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 252 to 247
[Hue] Window covering device 19: set homekit current position from 0% to 5%
[Hue] Window covering device 19: state changed event: {"bri":234,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 247 to 234
[Hue] Window covering device 19: set homekit current position from 5% to 10%
[Hue] Window covering device 19: state changed event: {"bri":224,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 234 to 224
[Hue] Window covering device 19: state changed event: {"bri":211,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 224 to 211
[Hue] Window covering device 19: set homekit current position from 10% to 15%
[Hue] Window covering device 19: state changed event: {"bri":198,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 211 to 198
[Hue] Window covering device 19: set homekit current position from 15% to 20%
[Hue] Window covering device 19: state changed event: {"bri":186,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 198 to 186
[Hue] Window covering device 19: set homekit current position from 20% to 25%
[Hue] Window covering device 19: state changed event: {"bri":173,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 186 to 173
[Hue] Window covering device 19: set homekit current position from 25% to 30%
[Hue] Window covering device 19: state changed event: {"bri":160,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 173 to 160
[Hue] Window covering device 19: set homekit current position from 30% to 35%
[Hue] Window covering device 19: state changed event: {"bri":147,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 160 to 147
[Hue] Window covering device 19: set homekit current position from 35% to 40%
[Hue] Window covering device 19: state changed event: {"bri":135,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 147 to 135
[Hue] Window covering device 19: set homekit current position from 40% to 45%
[Hue] Window covering device 19: state changed event: {"bri":124,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 135 to 124
[Hue] Window covering device 19: set homekit current position from 45% to 50%
[Hue] Window covering device 19: state changed event: {"bri":112,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 124 to 112
[Hue] Window covering device 19: set homekit current position from 50% to 55%
[Hue] Window covering device 19: state changed event: {"bri":99,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 112 to 99
[Hue] Window covering device 19: set homekit current position from 55% to 60%
[Hue] Window covering device 19: state changed event: {"bri":86,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 99 to 86
[Hue] Window covering device 19: set homekit current position from 60% to 65%
[Hue] Window covering device 19: state changed event: {"bri":73,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 86 to 73
[Hue] Window covering device 19: set homekit current position from 65% to 70%
[Hue] Window covering device 19: state changed event: {"bri":61,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 73 to 61
[Hue] Window covering device 19: set homekit current position from 70% to 75%
[Hue] Window covering device 19: state changed event: {"bri":48,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 61 to 48
[Hue] Window covering device 19: set homekit current position from 75% to 80%
[Hue] Window covering device 19: state changed event: {"bri":38,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 48 to 38
[Hue] Window covering device 19: set homekit current position from 80% to 85%
[Hue] Window covering device 19: state changed event: {"bri":25,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 38 to 25
[Hue] Window covering device 19: set homekit current position from 85% to 90%
[Hue] Window covering device 19: state changed event: {"bri":12,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 25 to 12
[Hue] Window covering device 19: set homekit current position from 90% to 95%
[Hue] Window covering device 19: state changed event: {"bri":0,"on":false,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 12 to 0
[Hue] Window covering device 19: set homekit current position from 95% to 100%
[Hue] Window covering device 19: state changed event: {"bri":2,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 0 to 2
[Hue] Window covering device 19: state changed event: {"bri":15,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 2 to 15
[Hue] Window covering device 19: set homekit current position from 100% to 95%
[Hue] Window covering device 19: state changed event: {"bri":25,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 15 to 25
[Hue] Window covering device 19: set homekit current position from 95% to 90%
[Hue] Window covering device 19: state changed event: {"bri":38,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 25 to 38
[Hue] Window covering device 19: set homekit current position from 90% to 85%
[Hue] Window covering device 19: state changed event: {"bri":51,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 38 to 51
[Hue] Window covering device 19: set homekit current position from 85% to 80%
[Hue] Window covering device 19: state changed event: {"bri":63,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 51 to 63
[Hue] Window covering device 19: set homekit current position from 80% to 75%
[Hue] Window covering device 19: state changed event: {"bri":76,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 63 to 76
[Hue] Window covering device 19: set homekit current position from 75% to 70%
[Hue] Window covering device 19: state changed event: {"bri":89,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 76 to 89
[Hue] Window covering device 19: set homekit current position from 70% to 65%
[Hue] Window covering device 19: state changed event: {"bri":102,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 89 to 102
[Hue] Window covering device 19: set homekit current position from 65% to 60%
[Hue] Window covering device 19: state changed event: {"bri":114,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 102 to 114
[Hue] Window covering device 19: set homekit current position from 60% to 55%
[Hue] Window covering device 19: state changed event: {"bri":124,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 114 to 124
[Hue] Window covering device 19: set homekit current position from 55% to 50%
[Hue] Window covering device 19: state changed event: {"bri":137,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 124 to 137
[Hue] Window covering device 19: set homekit current position from 50% to 45%
[Hue] Window covering device 19: state changed event: {"bri":150,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 137 to 150
[Hue] Window covering device 19: set homekit current position from 45% to 40%
[Hue] Window covering device 19: state changed event: {"bri":163,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 150 to 163
[Hue] Window covering device 19: set homekit current position from 40% to 35%
[Hue] Window covering device 19: state changed event: {"bri":175,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 163 to 175
[Hue] Window covering device 19: set homekit current position from 35% to 30%
[Hue] Window covering device 19: state changed event: {"bri":188,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 175 to 188
[Hue] Window covering device 19: set homekit current position from 30% to 25%
[Hue] Window covering device 19: state changed event: {"bri":201,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 188 to 201
[Hue] Window covering device 19: set homekit current position from 25% to 20%
[Hue] Window covering device 19: state changed event: {"bri":211,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 201 to 211
[Hue] Window covering device 19: set homekit current position from 20% to 15%
[Hue] Window covering device 19: state changed event: {"bri":224,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 211 to 224
[Hue] Window covering device 19: set homekit current position from 15% to 10%
[Hue] Window covering device 19: state changed event: {"bri":237,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 224 to 237
[Hue] Window covering device 19: set homekit current position from 10% to 5%
[Hue] Window covering device 19: state changed event: {"bri":249,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 237 to 249
[Hue] Window covering device 19: set homekit current position from 5% to 0%
[Hue] Window covering device 19: state changed event: {"bri":255,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 249 to 255

Homeassistant Full open/close

[Hue] Window covering device 19: state changed event: {"bri":249,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 255 to 249
[Hue] Window covering device 19: state changed event: {"bri":237,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 249 to 237
[Hue] Window covering device 19: set homekit current position from 0% to 5%
[Hue] Window covering device 19: state changed event: {"bri":226,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 237 to 226
[Hue] Window covering device 19: set homekit current position from 5% to 10%
[Hue] Window covering device 19: state changed event: {"bri":214,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 226 to 214
[Hue] Window covering device 19: set homekit current position from 10% to 15%
[Hue] Window covering device 19: state changed event: {"bri":201,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 214 to 201
[Hue] Window covering device 19: set homekit current position from 15% to 20%
[Hue] Window covering device 19: state changed event: {"bri":188,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 201 to 188
[Hue] Window covering device 19: set homekit current position from 20% to 25%
[Hue] Window covering device 19: state changed event: {"bri":175,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 188 to 175
[Hue] Window covering device 19: set homekit current position from 25% to 30%
[Hue] Window covering device 19: state changed event: {"bri":163,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 175 to 163
[Hue] Window covering device 19: set homekit current position from 30% to 35%
[Hue] Window covering device 19: state changed event: {"bri":150,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 163 to 150
[Hue] Window covering device 19: set homekit current position from 35% to 40%
[Hue] Window covering device 19: state changed event: {"bri":137,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 150 to 137
[Hue] Window covering device 19: set homekit current position from 40% to 45%
[Hue] Window covering device 19: state changed event: {"bri":127,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 137 to 127
[Hue] Window covering device 19: set homekit current position from 45% to 50%
[Hue] Window covering device 19: state changed event: {"bri":114,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 127 to 114
[Hue] Window covering device 19: set homekit current position from 50% to 55%
[Hue] Window covering device 19: state changed event: {"bri":102,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 114 to 102
[Hue] Window covering device 19: set homekit current position from 55% to 60%
[Hue] Window covering device 19: state changed event: {"bri":89,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 102 to 89
[Hue] Window covering device 19: set homekit current position from 60% to 65%
[Hue] Window covering device 19: state changed event: {"bri":76,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 89 to 76
[Hue] Window covering device 19: set homekit current position from 65% to 70%
[Hue] Window covering device 19: state changed event: {"bri":63,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 76 to 63
[Hue] Window covering device 19: set homekit current position from 70% to 75%
[Hue] Window covering device 19: state changed event: {"bri":51,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 63 to 51
[Hue] Window covering device 19: set homekit current position from 75% to 80%
[Hue] Window covering device 19: state changed event: {"bri":38,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 51 to 38
[Hue] Window covering device 19: set homekit current position from 80% to 85%
[Hue] Window covering device 19: state changed event: {"bri":28,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 38 to 28
[Hue] Window covering device 19: set homekit current position from 85% to 90%
[Hue] Window covering device 19: state changed event: {"bri":15,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 28 to 15
[Hue] Window covering device 19: set homekit current position from 90% to 95%
[Hue] Window covering device 19: state changed event: {"bri":2,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 15 to 2
[Hue] Window covering device 19: set homekit current position from 95% to 100%
[Hue] Window covering device 19: state changed event: {"bri":0,"on":false,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 2 to 0
[Hue] Window covering device 19: state changed event: {"bri":2,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 0 to 2
[Hue] Window covering device 19: state changed event: {"bri":15,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 2 to 15
[Hue] Window covering device 19: set homekit current position from 100% to 95%
[Hue] Window covering device 19: state changed event: {"bri":25,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 15 to 25
[Hue] Window covering device 19: set homekit current position from 95% to 90%
[Hue] Window covering device 19: state changed event: {"bri":38,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 25 to 38
[Hue] Window covering device 19: set homekit current position from 90% to 85%
[Hue] Window covering device 19: state changed event: {"bri":51,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 38 to 51
[Hue] Window covering device 19: set homekit current position from 85% to 80%
[Hue] Window covering device 19: state changed event: {"bri":63,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 51 to 63
[Hue] Window covering device 19: set homekit current position from 80% to 75%
[Hue] Window covering device 19: state changed event: {"bri":76,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 63 to 76
[Hue] Window covering device 19: set homekit current position from 75% to 70%
[Hue] Window covering device 19: state changed event: {"bri":89,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 76 to 89
[Hue] Window covering device 19: set homekit current position from 70% to 65%
[Hue] Window covering device 19: state changed event: {"bri":102,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 89 to 102
[Hue] Window covering device 19: set homekit current position from 65% to 60%
[Hue] Window covering device 19: state changed event: {"bri":114,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 102 to 114
[Hue] Window covering device 19: set homekit current position from 60% to 55%
[Hue] Window covering device 19: state changed event: {"bri":124,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 114 to 124
[Hue] Window covering device 19: set homekit current position from 55% to 50%
[Hue] Window covering device 19: state changed event: {"bri":137,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 124 to 137
[Hue] Window covering device 19: set homekit current position from 50% to 45%
[Hue] Window covering device 19: state changed event: {"bri":150,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 137 to 150
[Hue] Window covering device 19: set homekit current position from 45% to 40%
[Hue] Window covering device 19: state changed event: {"bri":163,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 150 to 163
[Hue] Window covering device 19: set homekit current position from 40% to 35%
[Hue] Window covering device 19: state changed event: {"bri":175,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 163 to 175
[Hue] Window covering device 19: set homekit current position from 35% to 30%
[Hue] Window covering device 19: state changed event: {"bri":188,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 175 to 188
[Hue] Window covering device 19: set homekit current position from 30% to 25%
[Hue] Window covering device 19: state changed event: {"bri":201,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 188 to 201
[Hue] Window covering device 19: set homekit current position from 25% to 20%
[Hue] Window covering device 19: state changed event: {"bri":214,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 201 to 214
[Hue] Window covering device 19: set homekit current position from 20% to 15%
[Hue] Window covering device 19: state changed event: {"bri":224,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 214 to 224
[Hue] Window covering device 19: set homekit current position from 15% to 10%
[Hue] Window covering device 19: state changed event: {"bri":237,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 224 to 237
[Hue] Window covering device 19: set homekit current position from 10% to 5%
[Hue] Window covering device 19: state changed event: {"bri":249,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 237 to 249
[Hue] Window covering device 19: set homekit current position from 5% to 0%
[Hue] Window covering device 19: state changed event: {"bri":255,"on":true,"reachable":true}
[Hue] Window covering device 19: light bri (position) changed from 249 to 255

homebridge.log.zip

Please attach the full log file.

Some more details about my Setup

Phoscon/deConz runs on docker
Homebridge on docker

"node": "v12.14.0",
"homebridge": "v0.4.50",
"homebridge-hue": "v0.11.45"

"devicename": "ConBee II",
"fwversion": "0x26490700",  
"Deconz": "2.05.72"

Ikea Fyrtur

"19": {
          "etag": "",
          "hascolor": false,
          "manufacturername": "IKEA of Sweden",
          "modelid": "FYRTUR block-out roller blind",
          "name": "Window covering device 19",
          "state": {
            "alert": "none",
            "bri": 255,
            "on": true,
            "reachable": true
          },
          "swversion": "2.2.009",
          "type": "Window covering device",
          "uniqueid": "cc:cc:cc:xx"
        }

          "ep": 1,
          "etag": "",
          "manufacturername": "IKEA of Sweden",
          "modelid": "FYRTUR block-out roller blind",
          "name": "FYRTUR block-out roller blind ",
          "state": {
            "battery": 35,
            "lastupdated": "2019-12-28T14:44:45"
          },
          "swversion": "2.2.009",
          "type": "ZHABattery",
          "uniqueid": "cc:cc:cc:xx"
        },

Note that:

  • In HomeKit, the _Position_ runs from 0% (fully closed) to 100% (fully open);
  • In the REST API, state.bri runs (should run) from 254 (fully closed) to 0 (fully open). Not sure why it reports 255; this is not a valid _Level_ value;
  • The FYRTUR itself reports _Lift Percentage_ from 100 (fully closed) to 0 (fully open), once the blind has been calibrated. Otherwise it reports 255.

Opening the blind from HomeKit works as expected:

[12/29/2019, 2:10:02 PM] [Hue] Window covering device 19: homekit target position changed from 0% to 100%
[12/29/2019, 2:10:02 PM] [Hue] Phoscon-GW: gateway request 26: put /lights/19/state {"bri":0}
[12/29/2019, 2:10:02 PM] [Hue] Phoscon-GW: gateway request 26: ok
...
[12/29/2019, 2:10:25 PM] [Hue] Window covering device 19: state changed event: {"bri":0,"on":false,"reachable":true}
[12/29/2019, 2:10:25 PM] [Hue] Window covering device 19: light bri (position) changed from 10 to 0
[12/29/2019, 2:10:25 PM] [Hue] Window covering device 19: set homekit current position from 95% to 100%
````

When closing the blind from HomeKit, homebridge-hue sends the right command, but the blind doesn't seem to close fully; the REST API plugin reports `state.bri` as 252.  Due to rounding to multiples of 5%, homebridge-hue reports the HomeKit position as 0% anyways.

[12/29/2019, 2:10:37 PM] [Hue] Window covering device 19: homekit target position changed from 100% to 0%
[12/29/2019, 2:10:37 PM] [Hue] Phoscon-GW: gateway request 41: put /lights/19/state {"bri":254}
[12/29/2019, 2:10:37 PM] [Hue] Phoscon-GW: gateway request 41: ok
...
[12/29/2019, 2:10:59 PM] [Hue] Window covering device 19: state changed event: {"bri":249,"on":true,"reachable":true}
[12/29/2019, 2:10:59 PM] [Hue] Window covering device 19: light bri (position) changed from 239 to 249
[12/29/2019, 2:10:59 PM] [Hue] Window covering device 19: set homekit current position from 5% to 0%
[12/29/2019, 2:11:00 PM] [Hue] Window covering device 19: state changed event: {"bri":252,"on":true,"reachable":true}
[12/29/2019, 2:11:00 PM] [Hue] Window covering device 19: light bri (position) changed from 249 to 252

I double-checked my own Furtur, and it seems to behave the same: _Current Position Lift_ is at 99%, which translates to a `state.bri` value of 252.  I only control my home from HomeKit, so I never noticed this before.

When setting the blind manually, I see the same:

$ ph put /lights/316/state '{"bri": 254}'
$ ph get /lights/316/state/bri
252

When setting `state.bri` to 255 (which should be the same as setting `state.bri` to 254), it does fully close:

$ ph put /lights/316/state '{"bri": 255}'
$ ph get /lights/316/state/bri
255
```
I think this is a bug in the deCONZ REST API plugin.

Thanks for troubleshooting Erik, you're a genius

I'd like to do some debugging on my own but my coding skills are not sufficient.
What do you think, should I open a ticket at deConz for this?
Then I would close this one.

I've opened an issue with deCONZ. I had a quick look at the code; they use 255/100 instead of 254/100 to convert the ZigBee value to the REST API value (and 100/255 v.v.). After changing that, the blind fully closes, and reports _Lift Percentage_ as 100. I'll see if I can cook up a PR.

Much appreciated!

They merged my PR, but we're still waiting for deCONZ v2.05.73.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

suhajda3 picture suhajda3  路  9Comments

Nastras picture Nastras  路  9Comments

jannnfe picture jannnfe  路  3Comments

jojost1 picture jojost1  路  5Comments

leoneleone picture leoneleone  路  9Comments