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
72.82k stars 30.51k forks source link

Add support LED control for Xiaomi Smart Air Purifier 4 (zhimi.airp.mb5) #77891

Closed leroyloren closed 1 year ago

leroyloren commented 2 years ago

The problem

Integration does not support LED display control even if the device supports it.

obrazek

What version of Home Assistant Core has the issue?

2022.9.0b5

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

Link to integration documentation on our website

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

Diagnostics information

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.9.0b5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "aarch64", "timezone": "Europe/Prague", "os_name": "Linux", "os_version": "5.15.32-v8", "supervisor": "2022.08.6", "host_os": "Home Assistant OS 9.0.rc1", "docker_version": "20.10.17", "chassis": "embedded", "run_as_root": true }, "custom_components": { "nuki_ng": { "version": "0.2.1", "requirements": [] }, "xiaomi_miot": { "version": "0.6.11", "requirements": [ "construct==2.10.56", "python-miio>=0.5.6", "micloud>=0.3" ] } }, "integration_manifest": { "domain": "xiaomi_miio", "name": "Xiaomi Miio", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/xiaomi_miio", "requirements": [ "construct==2.10.56", "micloud==0.5", "python-miio==0.5.12" ], "codeowners": [ "@rytilahti", "@syssi", "@starkillerOG", "@bieniu" ], "zeroconf": [ "_miio._udp.local." ], "iot_class": "local_polling", "loggers": [ "micloud", "miio" ], "is_built_in": true }, "data": { "config_entry": { "entry_id": "d522a3a990187e2e8477462e6668266f", "version": 1, "domain": "xiaomi_miio", "title": "Xiaomi Smart Air Purifier 4", "data": { "config_flow_device": "device", "host": "10.30.0.59", "token": "**REDACTED**", "model": "zhimi.airp.mb5", "mac": "**REDACTED**", "cloud_username": "**REDACTED**", "cloud_password": "**REDACTED**", "cloud_country": "de" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": "**REDACTED**", "disabled_by": null }, "coordinator_data": "<AirPurifierMiotStatus anion=True aqi=10 average_aqi=8 buzzer=False buzzer_volume=None child_lock=False fan_level=1 favorite_level=11 favorite_rpm=None filter_hours_used=18 filter_left_time=290 filter_life_remaining=100 filter_rfid_product_id=0:0:32:36 filter_rfid_tag=80:72:eb:8a:d7:8e:4 filter_type=FilterType.Regular gestures=None humidity=47 is_on=True led=None led_brightness=LedBrightness.Bright led_brightness_level=None mode=OperationMode.Auto motor_speed=444 pm10_density=None power=on purify_volume=900 temperature=22.9 tvoc=None use_time=None>" } }

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @rytilahti, @syssi, @starkillerog, @bieniu, 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! (message by CodeOwnersMention)


xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

xiaomi documentation xiaomi source (message by IssueLinks)

aqxa1 commented 2 years ago

This used to work if you treated the device as the zhimi.airp.mb3 (Air Purifier 3H), so perhaps that code can be adapted for this device.

dodo143 commented 2 years ago

How can you add Xiaomi Smart Air Purifier 4 (zhimi.airp.mb5) into Home assistant? I used latest version 2022.09.0, but still cannot connect Error log: ERROR (MainThread) [homeassistant.components.xiaomi_miio] Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: zhimi.airp.mb5a

Som83 commented 2 years ago

How can you add Xiaomi Smart Air Purifier 4 (zhimi.airp.mb5) into Home assistant? I used latest version 2022.09.0, but still cannot connect Error log: ERROR (MainThread) [homeassistant.components.xiaomi_miio] Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: zhimi.airp.mb5a

I think it's because of A in the end. I have same model, but (if I not mistaken) there is exist mb5 and your (as well as mine) is mb5a

callifo commented 2 years ago

Mine used to work, I merged the changes in for 2022.09 into 2202.08 by hand and had control over the LED parameter. Just updated and now its 'This entity is no longer being provided by the xiaomi_miio integration. If the entity is no longer in use, delete it in settings.'

phuongnd01904 commented 1 year ago

How can you add Xiaomi Smart Air Purifier 4 (zhimi.airp.mb5) into Home assistant? I used latest version 2022.09.0, but still cannot connect Error log: ERROR (MainThread) [homeassistant.components.xiaomi_miio] Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: zhimi.airp.mb5a

I think it's because of A in the end. I have same model, but (if I not mistaken) there is exist mb5 and your (as well as mine) is mb5a

I have same model mb5a. Xiaomi_miio not working this model. I hope next build can support for this model.

issue-triage-workflows[bot] commented 1 year 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.