Coder Social home page Coder Social logo

Comments (6)

FreshlyBrewedCode avatar FreshlyBrewedCode commented on July 21, 2024 1

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.

from hacs-homee.

Lu6413 avatar Lu6413 commented on July 21, 2024 1

homee integration updated. Works - thank you

from hacs-homee.

FreshlyBrewedCode avatar FreshlyBrewedCode commented on July 21, 2024

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).

@property
def is_closed(self):
"""Return the state of the cover."""
return True if self.attribute(AttributeType.POSITION) == 1 else False

from hacs-homee.

Lu6413 avatar Lu6413 commented on July 21, 2024

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.
The code lines
@Property
def current_cover_position(self):
"""Return the cover's position"""
return 100 - self.attribute(AttributeType.POSITION)
and my customization confirms my assumption.
This changes the status to closed as soon as the position 100 is reached.

from hacs-homee.

github-actions avatar github-actions commented on July 21, 2024

🎉 This issue has been resolved in version 2.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from hacs-homee.

Stklingner avatar Stklingner commented on July 21, 2024

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)

from hacs-homee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.