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.05k stars 29.12k forks source link

zhimi.airpurifier.m1 by Xiaomi does not support Favorite level 17 #110195

Open GSzabados opened 5 months ago

GSzabados commented 5 months ago

The problem

Favorite level slider has a maximum value of 17, which is not supported by the zhimi.airpurifier.m1 by Xiaomi, air purifier. It supports values up to 16.

What version of Home Assistant Core has the issue?

core-2024.2.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/#xiaomi-air-purifier-air-humidifier-and-standing-fan

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.xiaomi_miio.device
Source: components/xiaomi_miio/device.py:158
Integration: Xiaomi Miio (documentation, issues)
First occurred: 16:11:59 (3 occurrences)
Last logged: 16:16:29

Bad logger message: Setting the favorite level of the miio device failed. ((DeviceError({'code': -5001, 'message': 'invaild_arg'}),))

Additional information

No response

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

GSzabados commented 5 months ago

I have only this model, but these might be the reason:

https://github.com/home-assistant/core/blob/845071f8f0b1297073d3314c5d465de7787faa17/homeassistant/components/xiaomi_miio/number.py#L161

https://github.com/home-assistant/core/blob/845071f8f0b1297073d3314c5d465de7787faa17/homeassistant/components/xiaomi_miio/number.py#L283

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

GSzabados commented 2 months ago

This issue is still not resolved. The highest value is incorrect and no reason why it was used!