Coder Social home page Coder Social logo

Comments (7)

PJCzx avatar PJCzx commented on September 9, 2024

Can you compare with the value from the logs ? The value is well defined as a float
this.currentTemperature = parseFloat(json.currentTemperature);

from homebridge-thermostat.

phenotypic avatar phenotypic commented on September 9, 2024

This is partly to do with the HomeKit and partly to do with the plugin. HomeKit currently has a maximum resolution of 0.5 °C so you can't expect anything more than this.

However, the plugin is currently setting the resolution to 1 °C on line 276: minStep: 1. Thus, this issue can be partially resolved by changing the line to: minStep: 0.5.

It is worth noting that you could change the line to: minStep: 0.1 as I have done in my homebridge-web-thermostat plugin but this will have no further effect but could be useful in future versions of HomeKit where finer resolutions are supported.

from homebridge-thermostat.

JamesKnevitt avatar JamesKnevitt commented on September 9, 2024

If I run Homebridge from command line then the output shows the following when getting status.
0|homebridge | [8/20/2019, 8:24:29 PM] [Thermostat-Livingroom] [*] currentTemperature: 22.4
but HomeKit shows 22.0.


Just seen your message @Tommrodrigues , that is interesting to know, I will look at that now.

from homebridge-thermostat.

JamesKnevitt avatar JamesKnevitt commented on September 9, 2024

ok, I have updated this line as you suggested, now it works (to nearest 0.5), good enough for me for now.

Thanks 👍

from homebridge-thermostat.

PJCzx avatar PJCzx commented on September 9, 2024

Hello guys,

I just updated the code and published on NPM a version were both values are 0.5 instead of 1

Don't hesitate to perform pull request in such a situation ;)

Best,

from homebridge-thermostat.

smartechru avatar smartechru commented on September 9, 2024

Hello @PJCzx

I could adjust minStep value but couldn't solve the temperature rounding issue yet.
Currently, the temperatures are rounded. As example if homebridge finds 21.28°C from the API , it still shows 21.5 in the home app.
Someone reported me that it is possible to show temperatures without rounding in Apple Home App. Do you have any idea to fix this? Thanks in advance.

from homebridge-thermostat.

PJCzx avatar PJCzx commented on September 9, 2024

Hello @smartechru, Unfortunately I have no more information than what @Tommrodrigues mentioned in his comment bellow.

#42 (comment)

Best,
@PJCzx

from homebridge-thermostat.

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.