ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
901 stars 91 forks source link

Fyrtur Curtain loading, never close state in Home app #530

Closed frogger11 closed 4 years ago

frogger11 commented 5 years ago

Issue

Hi, I use Deconz latest version, and homebridge hue plugin also latest version. Everything works fine, but it seem like the blind don't know when it's down, it just shows closing... and the "load star", in the icon in the home app. Up folded, it senses that it is in its proper position. I have tried to lower it to 100% but still it does not seem to know that it is down though it stops. Is this a known phenomenon?

Sincerely Fredrik

Log Messages

Debug Files

ebaauw commented 5 years ago

When opening the blind from HomeKit, the tile should "count down" to the target position (Opening..., 5% Open, 10% Open, ..., 95% Open, Open). Same for closing the blind. When controlling the blind otherwise (through the remote or through another deCONZ client), the tile updates in a similar manner.

Does the tile update when you manually read the Window Covering attributes in the deCONZ GUI?

If so, most likely, deCONZ hasn't setup proper attribute reporting. Could you check the debug log file for messages like:

Sep 13 11:37:46 pi2 homebridge[30999]: [Hue] Bathroom Blind: state changed event: {"bri":142}
Sep 13 11:37:46 pi2 homebridge[30999]: [Hue] Bathroom Blind: light bri (position) changed from 153 to 142
Sep 13 11:37:46 pi2 homebridge[30999]: [Hue] Bathroom Blind: set homekit current position from 40% to 45%

The first two messages are only generated when running homebridge -D. You should see multiple of these while the blind is moving.

frogger11 commented 4 years ago

It does not appear to show the change from the Home app in the deCONZ GUI / Phonson App. It is unchanged.

homebridge-hue v0.11.40, node v10.16.3, homebridge v0.4.50 Phoscon-GW: dresden elektronik deCONZ gateway v2.5.69, api v1.16.0

What I understand is these are the latest versions. Correct me if I'm wrong

From homebridge -D [9/14/2019, 10:24:16 AM] Got SIGTERM, shutting down Homebridge...
-U /homebridge -P /homebridge/node_modules -C
[9/14/2019, 10:24:24 AM] Loaded config.json with 0 accessories and 1 platforms.
[9/14/2019, 10:24:24 AM] ---
[9/14/2019, 10:24:24 AM] Loaded plugin: homebridge-dummy
[9/14/2019, 10:24:24 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[9/14/2019, 10:24:24 AM] ---
[9/14/2019, 10:24:24 AM] Loaded plugin: homebridge-config-ui-x
[9/14/2019, 10:24:24 AM] Registering platform 'homebridge-config-ui-x.config'
[9/14/2019, 10:24:24 AM] ---
[9/14/2019, 10:24:26 AM] Loaded plugin: homebridge-hue
[9/14/2019, 10:24:26 AM] Registering platform 'homebridge-hue.Hue'
[9/14/2019, 10:24:26 AM] ---
[9/14/2019, 10:24:26 AM] Loading 1 platforms...
[9/14/2019, 10:24:26 AM] [Hue] Initializing Hue platform...
[9/14/2019, 10:24:26 AM] [Hue] homebridge-hue v0.11.40, node v10.16.3, homebridge v0.4.50
[9/14/2019, 10:24:26 AM] Loading 0 accessories...
[9/14/2019, 10:24:31 AM] [Hue] Phoscon-GW: dresden elektronik deCONZ gateway v2.5.69, api v1.16.0
[9/14/2019, 10:24:31 AM] [Hue] Philips hue: Philips BSB002 bridge v1934058060, api v1.33.0
[9/14/2019, 10:24:31 AM] [Hue] Daylight: set homekit sunrise from undefined to Sat Sep 14 2019 04:20:00
[9/14/2019, 10:24:31 AM] [Hue] Daylight: set homekit sunset from undefined to Sat Sep 14 2019 17:22:01
[9/14/2019, 10:24:31 AM] [Hue] Daylight: set homekit light level from 0.0001 lux to 100000 lux
[9/14/2019, 10:24:31 AM] [Hue] Phoscon-GW: 8 accessories
[9/14/2019, 10:24:31 AM] [Hue] Philips hue: /sensors/1: warning: Daylight sensor not configured
[9/14/2019, 10:24:31 AM] [Hue] Philips hue: 5 accessories
[9/14/2019, 10:24:31 AM] [Hue] masked debug info dumped to /homebridge/homebridge-hue.json.gz
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Phoscon-GW'...
[9/14/2019, 10:24:31 AM] [Hue] Phoscon-GW: 2 services
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Light 1'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Light 2'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Light 3'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Light 4'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Daylight'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'TRADFRI open/close remote '...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Window / Door Sensor'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Philips hue'...
[9/14/2019, 10:24:31 AM] [Hue] Philips hue: 2 services
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Daylight'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Go to sleep'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'HL-S00-5000'...
[9/14/2019, 10:24:31 AM] [Hue] Initializing platform accessory 'Dimmer Switch 14 SceneCycle'...
Setup Payload:

[9/14/2019, 10:24:31 AM] Homebridge is running on port 52312.
[9/14/2019, 10:24:44 AM] [Hue] Light 4: homekit target position changed from 100% to 65%
[9/14/2019, 10:24:44 AM] [Hue] Light 4: homekit target position changed from 65% to 50%
[9/14/2019, 10:24:44 AM] [Hue] Light 4: homekit target position changed from 50% to 35%
[9/14/2019, 10:24:45 AM] [Hue] Light 4: homekit target position changed from 35% to 30%
[9/14/2019, 10:24:47 AM] [Hue] Light 4: homekit target position changed from 30% to 35%

From DeCONZ when lowering/raising the curtain: 0:01:57:820 Current channel 20
10:01:57:828 Device TTL 2696 s flags: 0x7
10:02:29:804 binding for cluster 0x0000 of 0x086BD7FFFE2C6430 exists (verified by reporting)
10:02:29:805 binding for cluster 0x0006 of 0x086BD7FFFE2C6430 exists (verified by reporting)
10:02:29:806 binding for cluster 0x0008 of 0x086BD7FFFE2C6430 exists (verified by reporting)
10:02:29:873 ZCL configure reporting rsp seq: 177 0x086BD7FFFE2C6430 for cluster 0x0006 attr 0x0000 status 0x00
10:02:29:884 ZCL configure reporting rsp seq: 178 0x086BD7FFFE2C6430 for cluster 0x0008 attr 0x0000 status 0x00
10:02:30:105 verified group capacity: 255 and group count: 3 of LightNode 0x086bd7fffe2c6430
10:02:30:105 0x086bd7fffe2c6430 found group 0xFFF0
10:02:30:105 0x086bd7fffe2c6430 found group 0x0003
10:02:30:105 0x086bd7fffe2c6430 found group 0x0001
10:02:52:162 delay sending request 20 dt 0 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:52:203 delay sending request 20 dt 0 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:52:304 delay sending request 20 dt 0 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:52:404 delay sending request 20 dt 0 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:52:504 delay sending request 20 dt 0 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:52:604 delay sending request 20 dt 0 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:52:704 delay sending request 20 dt 0 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:52:804 delay sending request 20 dt 1 ms to 0xD0CF5EFFFECB1E59, cluster 0x0102
10:02:57:820 Current channel 20
10:02:57:828 Device TTL 2635 s flags: 0x7
Very grateful for all the help I can get

ebaauw commented 4 years ago

As I said above, deCONZ hasn’t setup attribute reporting. See the deCONZ issue.

frogger11 commented 4 years ago

Thanks for your help. I reinstall and now everything works. It display eg. 30 % open. Good work, really nice to have homekit support earlyer & without Ikea native bridge and app. 🙂

th3cube commented 4 years ago

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 Dconz-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. It seems like there is an offset about 1 % when Controlling it over Homekit. Controlling over Homeassistant closes the Bilnd to 100%.

frogger11 commented 4 years ago

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 Dconz-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. It seems like there is an offset about 1 % when Controlling it over Homekit. Controlling over Homeassistant closes the Bilnd to 100%.

Hi, I found this, after this issue. Hopefully it might help you too :) https://www.google.se/amp/s/amp.reddit.com/r/tradfri/comments/cxej2z/is_it_possible_to_limit_the_vertical_distance/

ebaauw commented 4 years ago

That’s described in the manual included with the blind.

parruda commented 4 years ago

For those that land here looking for a solution, I solved my problem by creating this binding and setting the reporting interval attributes manually in deCONZ:

  1. Open the binding dropbox
  2. Drag 01 Home Automation Configuration Tool from the coordinator (blue node) into the binding dropbox as destination.
  3. Drag the 0102 Window Covering as source.
  4. Click bind.

Then set the attribute reporting:

  1. On the blind node, click on 0102 Window Covering and then click on the Cluster Info tab.
  2. Scroll to the bottom. On the section Attributes, click on read
  3. Double click on Current Position Lift Percentage to open the Attribute Editor for it.
  4. At the Reporting Configuration section of the Attribute Editor, click on read config. You should see the current values appear in the text boxes.
  5. Change them as follows:
    • Min Report Interval 1
    • Max Report Interval 300
    • Reportable Change 1
  6. Click on write config.
  7. Now go back to your Home app open/close the blinds. You should see the % in the tile and it will all work as expected. You should also see the position being reported every second at the homebridge logs.

Took me a while to figure this out. I hope this helps!

cosmo84 commented 3 years ago

@parruda I performed the steps as described by you and it works just fine. Now I noticed that these settings seem to get lost overnight. The day after doing it, the status of the blinds is again in permanently closing. I can do everything again and it works, but the next day it is lost. No reboot or restart during night, nothing changes. Do you have any recommendation? Did you experience the same? Thx a lot!