unfoldedcircle / integration-home-assistant

Home-Assistant Integration for Remote Two
Mozilla Public License 2.0
28 stars 5 forks source link

Improve temperature unit handling for generic thermostat climate entity #28

Open zehnm opened 1 year ago

zehnm commented 1 year ago

The climate entity in Home Assistant defines the temperature_unit for °C or °F. According to the documentation this should be a required property. In Remote Two, the correct unit handling is prepared, but not yet verified (#10). However, the generic thermostat does not support custom temperature units, and simply takes the configured HA system unit:

This can be verified with the Remote Two Core-simulator and the prepared thermostat entities.

The temperature unit works as long as the HA unit system matches the Remote Two localization. For mixed environments or special use cases, this doesn't work correctly.

Proposed enhancements:

How to get the HA configuration:

Note: the °C / °F handling is not yet fully working in firmware 1.3.x. This is currently being worked on.