Clone of the https://github.com/home-assistant/core/tree/dev/homeassistant/components/daikin
The official Home Assistant Daikin AC integration is rounding the target temperature to nearest half degree. It's probably doing that to be compatible with some HVAC systems.
def format_target_temperature(target_temperature):
"""Format target temperature to be sent to the Daikin unit, rounding to nearest half degree."""
return str(round(float(target_temperature) * 2, 0) / 2).rstrip("0").rstrip(".")
class DaikinClimate(ClimateEntity):
"""Representation of a Daikin HVAC."""
_attr_name = None
_attr_has_entity_name = True
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_hvac_modes = list(HA_STATE_TO_DAIKIN)
_attr_target_temperature_step = 1
Since my AC accepts half degrees, I made the proper changes.
def format_target_temperature(target_temperature):
"""Format target temperature to be sent to the Daikin unit."""
return str(target_temperature)
class DaikinClimate(ClimateEntity):
"""Representation of a Daikin HVAC."""
_attr_name = None
_attr_has_entity_name = True
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_hvac_modes = list(HA_STATE_TO_DAIKIN)
_attr_target_temperature_step = 0.5
- Download zip
- Extract zip
- Copy the folder daikin into config/custom_components
- Restart Home Assistant