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

[homekit] min and max temperature units according to useFahrenheitTemperature #10074

Merged
merged 1 commit into from
Feb 7, 2021

Conversation

yfre
Copy link
Contributor

@yfre yfre commented Feb 6, 2021

make min/max values for current and target temperatures according to useFahrenheitTemperature settings.

HomeKit protocol works internally always with Celsius. So that we need to convert all temperatures to Celsius as well.

convertToCelsius method considers the useFahrenheitTemperature and if it is set to true, it converts from Fahrenheit to Celsius

this PR partially fixes #9538.

the missing part is HeatingThresholdTemperature and CoolingThresholdTemperature. A fix for them requires some refactoring of HomekitCharacteristicFactory as it has no access to settings. It will done in a separate PR.

Signed-off-by: Eugen Freiter freiter@gmx.de

…re setting

Signed-off-by: Eugen Freiter <freiter@gmx.de>
Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpmeister cpmeister merged commit 8a2ac82 into openhab:main Feb 7, 2021
@cpmeister cpmeister added the bug An unexpected problem or unintended behavior of an add-on label Feb 7, 2021
@cpmeister cpmeister added this to the 3.1 milestone Feb 7, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
…tTemperature setting (openhab#10074)

Signed-off-by: Eugen Freiter <freiter@gmx.de>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
…tTemperature setting (openhab#10074)

Signed-off-by: Eugen Freiter <freiter@gmx.de>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
…tTemperature setting (openhab#10074)

Signed-off-by: Eugen Freiter <freiter@gmx.de>
@yfre yfre deleted the 9538_fix_temperature_units branch November 15, 2022 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[homekit] thermostat min/max values not treated in system units
2 participants