Coder Social home page Coder Social logo

Comments (5)

pyzimmer avatar pyzimmer commented on August 26, 2024

Hello, #51 , can you close ?

from home-assistant-candy.

SwannyBFC avatar SwannyBFC commented on August 26, 2024

Not sure #51 solves my issue.
HA shows the senor value in minute(s) with either a value of 1 min or 2 min, how can I create a template sensor to show the actual mins

image

from home-assistant-candy.

gee-jay-bee avatar gee-jay-bee commented on August 26, 2024

Agreed. I had to remove the /60 on candy/client/model.py:66 to make my washing machine report the correct time:

            remaining_minutes=int(json["RemTime"]),

The value returned above really has precision of minutes so 1 hour 40 is reported as 100 minutes.

I think a template sensor might help if the washing machine is reporting remaining time as hours but we lose precision with the current implementation where machines really report minutes.

from home-assistant-candy.

glebsterx avatar glebsterx commented on August 26, 2024

Hello!
I have the same problem and the same solution -- remove / 60 in the code of the model.py file
image
Now the time is displayed normally

I already wanted to create an issue, but I saw that this one already exists =)
I could make a pull request, but I believe that the author had reasons to do exactly as it is done now and if he told us it would be cool =)
I made a PR, hope it helps someone =)

P.S. I have a Candy CVFTGP384TMH-07 washing machine

from home-assistant-candy.

SwannyBFC avatar SwannyBFC commented on August 26, 2024

Agreed. I had to remove the /60 on candy/client/model.py:66 to make my washing machine report the correct time:

            remaining_minutes=int(json["RemTime"]),

The value returned above really has precision of minutes so 1 hour 40 is reported as 100 minutes.

I think a template sensor might help if the washing machine is reporting remaining time as hours but we lose precision with the current implementation where machines really report minutes.

This fixed it for me ! Thanks

from home-assistant-candy.

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.