Skip to content

Convert between local and device temperature units#1521

Open
trisk wants to merge 1 commit intosmartHomeHub:masterfrom
trisk:climate_temperature_unit
Open

Convert between local and device temperature units#1521
trisk wants to merge 1 commit intosmartHomeHub:masterfrom
trisk:climate_temperature_unit

Conversation

@trisk
Copy link

@trisk trisk commented Feb 8, 2026

All of the existing climate device definitions assume Celsius as the temperature unit, which breaks when Home Assistant is configured to use Fahrenheit. I added support for device definitions that use Fahrenheit, correct declaration of the entity temperature unit, and automatic unit conversion for sensor data and saved state, as well as safe clamping of temperature values to the specified step (aka "precision").

@trisk trisk force-pushed the climate_temperature_unit branch from d9eaf5e to 2cd861c Compare February 8, 2026 01:01
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

Successfully merging this pull request may close these issues.

1 participant