home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.81k stars 30.9k forks source link

zhimi.humidifier.ca4 - Error fetching Air humidifier data: Unable to discover the device #113805

Open blixtdevelopment opened 8 months ago

blixtdevelopment commented 8 months ago

The problem

My Xiaomi air humidifier constantly becomes unavailable during the day, and fills up the log with 100s of these events daily. It also breaks some of my automations, as they get re-triggered every time it happens.

What version of Home Assistant Core has the issue?

core-2024.3.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Xiaomi Miio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_miio

Diagnostics information

home-assistant_xiaomi_miio_2024-03-19T09-44-20.114Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-03-19 10:43:47.911 DEBUG (SyncWorker_31) [miio.miioprotocol] Got a response: Container: 
    data = Container: 
        data = b'' (total 0)
        value = b'' (total 0)
        offset1 = 32
        offset2 = 32
        length = 0
    header = Container: 
        data = b'!1\x00 \x00\x00\x00\x00 \xf5\xb6\xb7\x00A\x81\x85' (total 16)
        value = Container: 
            length = 32
            unknown = 0
            device_id = unhexlify('20f5b6b7')
            ts = 1970-02-19 16:29:57
        offset1 = 0
        offset2 = 16
        length = 16
    checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
2024-03-19 10:43:47.911 DEBUG (SyncWorker_31) [miio.miioprotocol] Discovered 20f5b6b7 with ts: 1970-02-19 16:29:57, token: b'ffffffffffffffffffffffffffffffff'
2024-03-19 10:43:47.912 DEBUG (SyncWorker_31) [miio.miioprotocol] 192.168.1.174:54321 >>: {'id': 6864, 'method': 'get_properties', 'params': [{'did': 'power', 'siid': 2, 'piid': 1}, {'did': 'fault', 'siid': 2, 'piid': 2}, {'did': 'mode', 'siid': 2, 'piid': 5}, {'did': 'target_humidity', 'siid': 2, 'piid': 6}, {'did': 'water_level', 'siid': 2, 'piid': 7}, {'did': 'dry', 'siid': 2, 'piid': 8}, {'did': 'use_time', 'siid': 2, 'piid': 9}, {'did': 'button_pressed', 'siid': 2, 'piid': 10}, {'did': 'speed_level', 'siid': 2, 'piid': 11}, {'did': 'temperature', 'siid': 3, 'piid': 7}, {'did': 'fahrenheit', 'siid': 3, 'piid': 8}, {'did': 'humidity', 'siid': 3, 'piid': 9}, {'did': 'buzzer', 'siid': 4, 'piid': 1}, {'did': 'led_brightness', 'siid': 5, 'piid': 2}, {'did': 'child_lock', 'siid': 6, 'piid': 1}]}
2024-03-19 10:43:48.335 DEBUG (SyncWorker_31) [miio.miioprotocol] 192.168.1.174:54321 (ts: 1970-02-19 16:29:57, id: 6864) << {'id': 6864, 'result': [{'did': 'power', 'siid': 2, 'piid': 1, 'code': 0, 'value': False}, {'did': 'fault', 'siid': 2, 'piid': 2, 'code': 0, 'value': 0}, {'did': 'mode', 'siid': 2, 'piid': 5, 'code': 0, 'value': 0}, {'did': 'target_humidity', 'siid': 2, 'piid': 6, 'code': 0, 'value': 50}, {'did': 'water_level', 'siid': 2, 'piid': 7, 'code': 0, 'value': 22}, {'did': 'dry', 'siid': 2, 'piid': 8, 'code': 0, 'value': True}, {'did': 'use_time', 'siid': 2, 'piid': 9, 'code': 0, 'value': 1162442}, {'did': 'button_pressed', 'siid': 2, 'piid': 10, 'code': 0, 'value': 2}, {'did': 'speed_level', 'siid': 2, 'piid': 11, 'code': 0, 'value': 670}, {'did': 'temperature', 'siid': 3, 'piid': 7, 'code': 0, 'value': 19.9}, {'did': 'fahrenheit', 'siid': 3, 'piid': 8, 'code': 0, 'value': 67.8}, {'did': 'humidity', 'siid': 3, 'piid': 9, 'code': 0, 'value': 47}, {'did': 'buzzer', 'siid': 4, 'piid': 1, 'code': 0, 'value': False}, {'did': 'led_brightness', 'siid': 5, 'piid': 2, 'code': 0, 'value': 1}, {'did': 'child_lock', 'siid': 6, 'piid': 1, 'code': 0, 'value': False}], 'exe_time': 220}
2024-03-19 10:43:53.340 DEBUG (SyncWorker_31) [miio.miioprotocol] Unable to discover a device at address 192.168.1.174
2024-03-19 10:43:53.341 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Error fetching Air humidifier data: Unable to discover the device 192.168.1.174
2024-03-19 10:43:53.341 DEBUG (MainThread) [homeassistant.components.xiaomi_miio] Finished fetching Air humidifier data in 5.475 seconds (success: False)

Additional information

No response

home-assistant[bot] commented 8 months ago

Hey there @rytilahti, @syssi, @starkillerog, mind taking a look at this issue as it has been labeled with an integration (xiaomi_miio) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `xiaomi_miio` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign xiaomi_miio` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)

FredyReady commented 5 months ago

Same issue here.

chpego commented 3 months ago

Similar to https://github.com/home-assistant/core/issues/111729

issue-triage-workflows[bot] commented 5 days ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.