8000 Fix setting temperature in Celsius on radiotherm CT50 by andyat · Pull Request #4270 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix setting temperature in 8000 Celsius on radiotherm CT50 #4270

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

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

andyat
Copy link
Contributor
@andyat andyat commented Nov 7, 2016

Description:
There seem to be a bug in Radiotherm CT50 thermostat, when setting temperature that is not an integer or ending ".5", it does not do anything (and still return success). CT50 API always expects temperature in Fahrenheit. If home assistant is set to use metric units (and Celsius degrees), it converts temperature before sending to the thermostat. But resulting temperature in Fahrenheit might not be an integer or ending ".5". As a result, only certain Celsius temperatures can be set, such as 20C (=68F) or 25C (=77F), but not 22C (=71.6F) for example. The proposed fix rounds temperature to the nearest 0.5 before sending to CT50, so it works for any Celsius temperature.

Related issue (if applicable): fixes #

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>

Example entry for configuration.yaml (if applicable):

Checklist:

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@mention-bot
Copy link

@andyat, thanks for your PR! By analyzing the history of the files in this pull request, we identified @turbokongen, @fabaff and @balloob to be potential reviewers.

@balloob balloob merged commit 7d28d9d into home-assistant:dev Nov 7, 2016
@balloob
Copy link
Member
balloob commented Nov 7, 2016

Thanks! 🐬 🌮

@balloob balloob added this to the 0.32.2 milestone Nov 7, 2016
@andyat andyat deleted the fix-radiotherm-celsius branch November 8, 2016 06:53
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0