ikalchev / HAP-python

A python implementation of the HomeKit Accessory Protocol (HAP)
Other
618 stars 118 forks source link

Wrong state for shutter when using physical actors #248

Open nicx opened 4 years ago

nicx commented 4 years ago

Since some versions I have the following problem:

When I close the roller shutter via the physical Homematic actor the status in the Apple Home App is not correct: It never jumps to "Closed", but remains infinitely on "Closing...".

In Homematic itself and also in Home Assistant the status is correct, but not in the Home App.

However, if I close the shutter myself using the Home App directly, the status is also displayed correctly after closing.

nicx commented 4 years ago

Would be great to get any response...

Pythonaire commented 4 years ago

Would be great to get any response...

HAP has a PositionState Characteristics for WindowCovering (Roller shutter), that could be 0, 1 or 2. 0 and 1 is for "closing" and "opening". 2 is for "stopped". It seems to me, the "TargetPosition" is reached, but the "Stopped" value is not set.

nicx commented 4 years ago

@Pythonaire thanks for your comment, so this seems to be a bug in HAP-python? Is there anything I can do, deliver logs etc.?

Pythonaire commented 4 years ago

can't see a bug. Do you have a code example for your roller shutter?

nicx commented 4 years ago

@Pythonaire no I don't have a code example... or I do not understand what you are meaning with it ;) I am using Home Assistant with the Homekit integration. I already opened a bug request in the HA project, but they pointed me to this project.

Pythonaire commented 4 years ago

@Pythonaire no I don't have a code example... or I do not understand what you are meaning with it ;) I am using Home Assistant with the Homekit integration. I already opened a bug request in the HA project, but they pointed me to this project.

Hm, this repo represent a python based stand-alone interface to the Apple HomeKit. it's not related to other software named "Homatic", "home Assistent" or equal. You can install HAP-Python and it will work as a bridge, then you can using examples (see folder "accessories") or build your own accessory.