Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airdog X7SM the problem of work #2387

Open
GreshnikYa opened this issue Feb 24, 2025 · 2 comments
Open

Airdog X7SM the problem of work #2387

GreshnikYa opened this issue Feb 24, 2025 · 2 comments

Comments

@GreshnikYa
Copy link

Device model / 设备型号

airdog.airpurifier.x7sm

Component version / 插件版本

1.0.12

HA core version / HA版本

2025.2.5

Integrated mode / 集成方式

Token

The problem / 问题详情

1)The "fan" entity does not control the fan speed
2) The presets "Auto", "Sleep mode", "Favorites" also do not work, without changing the operation of the device in any way.

Entity attributes / 实体属性

info: Airdog
model: airdog.airpurifier.x7sm
did: ""
mac: 43:97:E7:21:C9:2B
lan_ip: 192.168.0.4
app_link: ""
miot_type: urn:miot-spec-v2:device:air-purifier:0000A007:airdog-x7sm:1
available: true
home_room: ""
icon: mdi:information
updater: local
updated_at: "2025-02-24 18:58:59.577238+03:00"
hcho: 1
air_purifier.on: true
air_purifier.fan_level: 1
air_purifier.mode: auto
physical_controls_locked: false
environment.pm2_5_density: 18
converters:
  - button.info
  - fan.air_purifier.on
  - air_purifier.on
  - air_purifier.fan_level
  - air_purifier.mode
  - switch.physical_controls_locked
  - sensor.environment.pm2_5_density
  - switch.air_purifier.on
customizes:
  switch_properties: air_purifier.on,alarm.alarm,anion,uv
  sensor_properties: relative_humidity,pm2_5_density,temperature,filter_life_level
  chunk_coordinators:
    - interval: 10
      props: on,mode,fan_level
    - interval: 300
      props: filter_life_level,filter_left_time,filter_used_time
device_class: update
friendly_name: Airdog Info

Home Assistant Logs / 系统日志

Got MiioException while fetching the state: Unable to discover the device 192.168.0.4, mapping: {'air_purifier.on': {'siid': 2, 'piid': 1}, 'air_purifier.fan_level': {'siid': 2, 'piid': 2}, 'air_purifier.mode': {'siid': 2, 'piid': 3}}, max_properties: 3/3

@al-one
Copy link
Owner

al-one commented Feb 25, 2025

Try master branch.

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

@GreshnikYa
Copy link
Author

GreshnikYa commented Feb 25, 2025

Try master branch.

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

1)This partially started to solve one of the problems. The modes began to switch, but incorrectly. By selecting the preset "Faforite", the "Sleep" mode is enabled, and by selecting the preset "Sleep", the "Faforite" mode is enabled.

2)Still exists. Nothing happens when the fan speed is changed.There was also an error in the logs: "/usr/local/lib/python3.13/site-packages/miio/miot_device.py:23: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in enum.member() if you want to preserve the old behavior Bool = partial(_str2bool)"

P.S. I also don't quite understand why the device outputs two entities. fan.airdog_x7sm_c62a_switch_status (turns the device on and off, and also assumes fan control ) switch.airdog_x7sm_c62a_switch_status (turns the device on and off) Maybe you need to keep only one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants