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
70.06k stars 29.13k forks source link

Unsupported Xiaomi Smart Air Purifier 4 zhimi.airp.mb5a #105085

Open mgmtotorsperformance opened 7 months ago

mgmtotorsperformance commented 7 months ago

The problem

NAME: Xiaomi Smart Air Purifier 4 ID: 495271222 MAC: 7C:C2:94:25:85:7C IP: 192.168.1.176 TOKEN: xxxx MODEL: zhimi.airp.mb5a

What version of Home Assistant Core has the issue?

2023.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Xiaomi Miio

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Initializing with host 192.168.1.176 (token xxx..) 2023-12-05 18:56:58.185 DEBUG (SyncWorker_1) [miio.click_common] Unknown model, trying autodetection. None None 2023-12-05 18:56:58.239 DEBUG (SyncWorker_1) [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\x1d\x85=6\x00\x00\x00\xd3' (total 16) value = Container: length = 32 unknown = 0 device_id = unhexlify('1d853d36') ts = 1970-01-01 00:03:31 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) 2023-12-05 18:56:58.240 DEBUG (SyncWorker_1) [miio.miioprotocol] Discovered 1d853d36 with ts: 1970-01-01 00:03:31, token: b'ffffffffffffffffffffffffffffffff' 2023-12-05 18:56:58.241 DEBUG (SyncWorker_1) [miio.miioprotocol] 192.168.1.176:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []} 2023-12-05 18:56:58.429 DEBUG (SyncWorker_1) [miio.miioprotocol] 192.168.1.176:54321 (ts: 1970-01-01 00:03:31, id: 1) << {'id': 1, 'result': {'life': 211, 'uid': 8221248136, 'model': 'zhimi.airp.mb5a', 'token': 'xxx', 'ipflag': 1, 'fw_ver': '2.2.1', 'mcu_fw_ver': '0010', 'miio_ver': '0.0.9', 'hw_ver': 'esp32', 'mmfree': 68956, 'mac': '7C:C2:94:25:85:7C', 'wifi_fw_ver': '', 'ap': {'ssid': 'Gac-Home', 'bssid': '78:45:58:34:E6:7C', 'rssi': -33, 'primary': 1}, 'netif': {'localIp': '192.168.1.176', 'mask': '255.255.252.0', 'gw': '192.168.0.1'}, 'config_type': 'app'}, 'exe_time': 50} 2023-12-05 18:56:58.430 DEBUG (SyncWorker_1) [miio.device] Detected model zhimi.airp.mb5a 2023-12-05 18:56:58.430 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.device] zhimi.airp.mb5a 2.2.1 esp32 detected

Additional information

No response

home-assistant[bot] commented 7 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)

olet3000 commented 7 months ago

zhimi.airp.mb5 is already supported. Both MIOT zhimi.airp.mb5 and zhimi.airp.mb5a are the same: https://home.miot-spec.com/spec/zhimi.airp.mb5a https://home.miot-spec.com/spec/zhimi.airp.mb5 You only need to add a new device do devices list py file by copying zhimi.airp.mb5.

sokarovski commented 6 months ago

zhimi.airp.mb5 is already supported. Both MIOT zhimi.airp.mb5 and zhimi.airp.mb5a are the same: https://home.miot-spec.com/spec/zhimi.airp.mb5a https://home.miot-spec.com/spec/zhimi.airp.mb5 You only need to add a new device do devices list py file by copying zhimi.airp.mb5.

Tried that, it didnt work, only humidity showed value of around 23.333333% all other entities were unavaliable or unresponsive

grimmaldus commented 6 months ago

Same issue Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: zhimi.airp.mb5a

d1erro commented 4 months ago

Please add support

tbb98 commented 2 months ago

This addon from HACS works :) https://github.com/al-one/hass-xiaomi-miot