20250325_v0.2.7
Changelog
[0.2.7] - 2025-03-26
Fixed
-
Switch Entity (
switch.py):- Resolved an issue where the switch entity (
AirzonePowerSwitch) was not updating its state properly when the device was manually turned on/off. - Implemented
schedule_update_ha_state()inasync_turn_on(),async_turn_off(), andasync_update()to ensure real-time state updates in Home Assistant. - Ensured that polling the device state correctly updates the power switch status.
- Resolved an issue where the switch entity (
-
Climate Entity (
climate.py):- Fixed an issue where setting a new HVAC mode while the device was off did not turn it on automatically.
- Now, if the HVAC mode is OFF and a new mode is set, the system first turns on the device before applying the selected mode.
Changed
- Code Refactoring & Consistency:
- Renamed
HVAC_MODE_AUTOtoHVACMode.AUTOfor consistency across all files. - Removed unused
set_preset_mode()function fromclimate.pysince preset modes are not yet implemented. - Ensured all comments and logs are in English for consistency and readability.
- Improved error handling and logging for better debugging and traceability.
- Renamed
Improved
- Temperature Sensor (
sensor.py):- Added predefined display precision to show temperature as whole numbers instead of decimals (e.g.,
22°Cinstead of22.0°C). - This improves visual consistency as the Airzone API only returns integer values for temperature.
- Added predefined display precision to show temperature as whole numbers instead of decimals (e.g.,
Notes
- This update enhances synchronization between Home Assistant and the Airzone Cloud Daikin API, ensuring real-time updates of device states.
- Restart Home Assistant after updating to apply all fixes.