Xiaomi Home Assistant: Troubleshooting Climate Control Issues
in Post with 0 comment

The Xiaomi Home Assistant is a popular smart home system that integrates various devices, including climate control systems. However, some users have reported issues with changing the target temperature for their heaters using the climate panel. This article will provide a detailed analysis of the problem, its reproduction steps, and potential solutions.

## Describe the Bug
The bug is related to the climate control system, specifically when trying to change the target temperature for the heater using the slider in the climate panel. The error message 'Failed to perform the action climate/set_temperature. Execution error, Unknown error, code=-4005, climate.zhimi.heater.mc2a, Heater, target-temperature' appears.

## How to Reproduce
To reproduce the issue, follow these steps:
1. Open the climate panel and try to change the target temperature for the heater using the slider.
2. An error popup will appear with the message 'Failed to perform the action climate/set_temperature. Execution error, Unknown error, code=-4005, climate.zhimi_sg_xxxxxxxx_mc2a, Heater, target-temperature'.

## Expected Behavior
The expected behavior is that the target temperature for the heater should change without any errors.

## Reproduce Time
The issue can be reproduced at any time.

## Home Assistant Logs
The Home Assistant logs show the following errors:
* Logger: homeassistant.components.websocket_api.http.connection
* Source: components/websocket_api/commands.py:245
* Integration: Home Assistant WebSocket API
* First occurred: January 1, 2025 at 01:00:24 (5 occurrences)
* Last logged: 11:25:14
* Traceback (most recent call last):
File "/config/custom_components/xiaomi_home/miot/miot_device.py", line 867, in set_property_async
await self.miot_device.miot_client.set_prop_async(
did=self.miot_device.did, siid=prop.service.iid,
piid=prop.iid, value=value)
File "/config/custom_components/xiaomi_home/miot/miot_client.py", line 634, in set_prop_async
raise MIoTClientError(
self.__get_exec_error_with_rc(rc=rc))
Custom_components.xiaomi_home.miot.miot_error.MIoTClientError: Execution error, Unknown error, code=-4005

## Log Timezone
The log timezone is Europe/Madrid.

## Home Assistant Core Version
The Home Assistant Core version is 2024.12.5.

## Home Assistant Operation System Version
The Home Assistant Operation System version is 14.1.

## Xiaomi Home Integration Version
The Xiaomi Home Integration version is v0.1.4.

## Additional Context
No additional context is available.

## Troubleshooting Steps
To troubleshoot the issue, try the following steps:
1. Check the Home Assistant logs for any errors related to the climate control system.
2. Verify that the heater is properly connected to the Xiaomi Home Assistant system.
3. Try resetting the heater and the Xiaomi Home Assistant system.
4. If the issue persists, contact the Xiaomi Home Assistant support team for further assistance.

The article has been posted for too long and comments have been automatically closed.