Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Round function to get same result as in the thermostat #1

Closed
Qxlkdr opened this issue Nov 13, 2017 · 1 comment
Closed

Round function to get same result as in the thermostat #1

Qxlkdr opened this issue Nov 13, 2017 · 1 comment

Comments

@Qxlkdr
Copy link

Qxlkdr commented Nov 13, 2017

First of all, very nice work!

Right now I can get 22.05 via the library as current temperature. However use the some kind of "round function" to get the same result as from the thermostat (22.1).

I have no Python skills yet, but in Home Assistant you can use:
value_template: '{{ value | multiply(0.01) | round(1) }}'

Got to be some way to get the same result via Python.

@abondoe
Copy link
Owner

abondoe commented Nov 13, 2017

Hi Qxlkdr!

Thanks for testing. This can be achieved with round(number, 1). I’ll implement this for the next release.

@Qxlkdr Qxlkdr closed this as completed Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants