-
Notifications
You must be signed in to change notification settings - Fork 6
Shutter status is not displayed correctly #20
Comments
There is no way for me to verify this. Do you have multiple devices where the state is displayed incorrectly? Or do you know if this attribute is documented anywhere? Maybe @Stklingner could also confirm if this is an error that needs to be corrected (because he implemented the cover component). hacs-homee/custom_components/homee/cover.py Lines 102 to 105 in f639ec4
|
All my shutters have always shown the status 'opened' regardless of the position. I cannot provide concrete documentation. In the forums as well as in my position attribute the value range is between 0=open and 100=closed. |
Ok, thanks for the explanation. I will push a fix with your suggestion. If there are still problems in the future we can reopen this issue. |
🎉 This issue has been resolved in version 2.0.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
homee integration updated. Works - thank you |
Sorry for the late reply guys, good job - I'll have a look as well (mine work fine but I use my own dev branch currently) |
In cover.py the following line should be corrected:
@Property
def is_closed(self):
"""Return the state of the cover."""
return True if self.attribute(AttributeType.POSITION) == 100 else False
The text was updated successfully, but these errors were encountered: