Closed georgekucher closed 3 years ago
Hey there @rytilahti, @syssi, @starkillerog, mind taking a look at this issue as its been labeled with an integration (xiaomi_miio
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
Yes, it's a known issue. No new state attributes are allowed, the integration needs to be refactored to separate the sensors before this can be fixed, see the discussion at https://github.com/home-assistant/core/pull/44252#discussion_r544210553 .
@rytilahti Thanks! Good to know. But seems like nobody is in hurry to do that((
@georgekucher actually I am working on changing the whole Miio integration to config flow, which is the first step towards seperating the state attributes to entities. See PR: https://github.com/home-assistant/core/pull/46179
You are welcome to help.
@starkillerOG, Nice! Thank you! I could test it. When will it be available for Docker?
Faced with the same issue — ca4 in HA doesn't have a water level parameter. Currently, I'm using the workaround with Xiaomi Raw HACS:
sensor:
- platform: xiaomi_miio_raw
name: Humidifier LR 1
host: 192.168.X.X
token: t0k3n
max_properties: 15
default_properties_getter: get_properties
default_properties:
- "{ 'siid': 2, 'piid': 1, 'did': 'power' }"
- "{ 'siid': 2, 'piid': 2, 'did': 'fault' }"
- "{ 'siid': 2, 'piid': 5, 'did': 'mode' }"
- "{ 'siid': 2, 'piid': 6, 'did': 'target_humidity' }"
- "{ 'siid': 2, 'piid': 7, 'did': 'water_level' }"
- "{ 'siid': 2, 'piid': 8, 'did': 'dry' }"
- "{ 'siid': 2, 'piid': 9, 'did': 'use_time' }"
- "{ 'siid': 2, 'piid': 10, 'did': 'button_pressed' }"
- "{ 'siid': 2, 'piid': 11, 'did': 'speed_level' }"
- "{ 'siid': 3, 'piid': 7, 'did': 'temperature' }"
- "{ 'siid': 3, 'piid': 8, 'did': 'fahrenheit' }"
- "{ 'siid': 3, 'piid': 9, 'did': 'humidity' }"
- "{ 'siid': 4, 'piid': 1, 'did': 'buzzer' }"
- "{ 'siid': 5, 'piid': 2, 'did': 'led_brightness' }"
- "{ 'siid': 6, 'piid': 1, 'did': 'child_lock' }"
- "{ 'siid': 7, 'piid': 1, 'did': 'actual_speed' }"
- "{ 'siid': 7, 'piid': 3, 'did': 'power_time' }"
- "{ 'siid': 7, 'piid': 5, 'did': 'clean_mode' }"
- platform: template
sensors:
humudifier_lr_1_water_level:
friendly_name: "Уровень воды"
unit_of_measurement: "%"
value_template: "{{ ((state_attr('sensor.humidifier_lr_1', 'water_level')/128)*100)|round|int }}"
core-2021.4.3 still persist
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.
The problem
'water_level' attribute is absent in "zhimi.humidifier.ca4" entity
What is version of Home Assistant Core has the issue?
core-2021.2.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Xiaomi Miio
Link to integration documentation on our website
https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-air-purifier-and-humidifier
Example YAML snippet
Anything in the logs that might be useful for us?