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

NWT 18L Dehumidifier unable to set fan speed #1695

Closed
whc2001 opened this issue May 30, 2024 · 0 comments · Fixed by #1726
Closed

NWT 18L Dehumidifier unable to set fan speed #1695

whc2001 opened this issue May 30, 2024 · 0 comments · Fixed by #1726

Comments

@whc2001
Copy link
Contributor

whc2001 commented May 30, 2024

Device model / 设备型号

nwt.derh.wdh318efw1

Component version / 插件版本

0.7.18

HA core version / HA版本

2024.5.5

Integrated mode / 集成方式

Local (本地模式)

The problem / 问题详情

Upon selecting a new fan speed level in the fan.nwt_wdh318efw1_f96c_fan_level entity, the device does not reflect the change. An inspection in the logs showed the following line:

Storage Room Dehumidifier(nwt.derh.wdh318efw1): Set miot property {'did': 'prop.2.3', 'siid': 2, 'piid': 3, 'value': 3} failed: {'code': -5000, 'message': 'invalid operation'}

However if I adjust the level on the device, the state is updated correctly. Invoking the following in devtools

service: xiaomi_miot.send_command
data:
  entity_id: humidifier.nwt_wdh318efw1_f96c_dehumidifier
  method: get_prop
  params: fan_speed # or fan_st

Will give me

result:
  - 1

which corresponds to the current level.

Entity attributes / 实体属性

min_humidity: 40
max_humidity: 60
available_modes: Off, Auto, Smart, Clothes Drying
current_humidity: 61
humidity: 40
mode: Auto
model: nwt.derh.wdh318efw1
lan_ip: 10.8.4.12
mac_address: 64:90:C1:95:F9:6C
entity_class: MiotHumidifierEntity
miot_type: urn:miot-spec-v2:device:dehumidifier:0000A02D:nwt-wdh318efw1:2
dehumidifier.on: true
dehumidifier.mode: 0
dehumidifier.fan_level: 1
dehumidifier.target_humidity: 40
dehumidifier.tank_full: false
physical_controls_locked: false
indicator_light.on: true
alarm: false
environment.relative_humidity: 61
state_updater: lan
sub_entities: dehumidifier-2.tank_full-102, environment-3.relative_humidity-1, physical_controls_locked-6.physical_controls_locked-1, indicator_light-5, dehumidifier.fan_level
device_class: dehumidifier
friendly_name: Storage Room Dehumidifier
supported_features: 1

Home Assistant Logs / 系统日志

2024-05-30 20:01:17.571 INFO (SyncWorker_7) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'on', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 63, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:01:17.572 INFO (MainThread) [custom_components.xiaomi_miot.light] Storage Room Dehumidifier(nwt.derh.wdh318efw1): Initializing miot device with mapping: {'indicator_light.on': {'siid': 5, 'piid': 1}, 'physical_controls_locked': {'siid': 6, 'piid': 1}, 'alarm': {'siid': 4, 'piid': 1}, 'environment.relative_humidity': {'siid': 3, 'piid': 1}, 'environment.temperature': {'siid': 3, 'piid': 2}, 'dehumidifier.on': {'siid': 2, 'piid': 1}, 'dehumidifier.mode': {'siid': 2, 'piid': 2}, 'dehumidifier.fan_level': {'siid': 2, 'piid': 3}, 'dehumidifier.target_humidity': {'siid': 2, 'piid': 101}, 'dehumidifier.tank_full': {'siid': 2, 'piid': 102}}
2024-05-30 20:01:17.578 WARNING (MainThread) [homeassistant.components.light] light.nwt_wdh318efw1_f96c_indicator_light (<class 'custom_components.xiaomi_miot.light.MiotLightSubEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
2024-05-30 20:01:22.617 INFO (SyncWorker_2) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'on', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 63, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:01:27.709 INFO (SyncWorker_3) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'on', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 63, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:01:27.832 INFO (SyncWorker_8) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Set miio prop via miot: ['prop.5.1', 'set_led', ['off']]
2024-05-30 20:01:27.968 INFO (SyncWorker_8) [custom_components.xiaomi_miot.light] Storage Room Dehumidifier(nwt.derh.wdh318efw1): Turn off light result: True, transition: None
2024-05-30 20:01:30.392 INFO (SyncWorker_7) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Set miio prop via miot: ['prop.5.1', 'set_led', ['on']]
2024-05-30 20:01:32.837 INFO (SyncWorker_8) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Set miio prop via miot: ['prop.2.2', 'set_auto', [40]]
2024-05-30 20:01:35.102 WARNING (MainThread) [homeassistant.components.humidifier] Updating xiaomi_miot humidifier took longer than the scheduled update interval 0:00:05
2024-05-30 20:01:38.769 INFO (SyncWorker_4) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'on', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 63, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:01:43.376 INFO (SyncWorker_7) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 63, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:01:46.814 INFO (SyncWorker_2) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Set miio prop via miot: ['prop.2.3', 'set_fan_st', [2]]
2024-05-30 20:01:47.371 WARNING (SyncWorker_2) [custom_components.xiaomi_miot.humidifier] Storage Room Dehumidifier(nwt.derh.wdh318efw1): Set miot property {'did': 'prop.2.3', 'siid': 2, 'piid': 3, 'value': 2} failed: {'code': -5000, 'message': 'invalid operation'}
2024-05-30 20:01:47.371 INFO (SyncWorker_2) [custom_components.xiaomi_miot.humidifier] Storage Room Dehumidifier(nwt.derh.wdh318efw1): Set miot property dehumidifier.fan_level(2) failed, result: None
2024-05-30 20:01:50.103 WARNING (MainThread) [homeassistant.components.humidifier] Updating xiaomi_miot humidifier took longer than the scheduled update interval 0:00:05
2024-05-30 20:01:51.038 INFO (SyncWorker_8) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Set miio prop via miot: ['prop.2.3', 'set_fan_st', [3]]
2024-05-30 20:01:51.375 WARNING (SyncWorker_8) [custom_components.xiaomi_miot.humidifier] Storage Room Dehumidifier(nwt.derh.wdh318efw1): Set miot property {'did': 'prop.2.3', 'siid': 2, 'piid': 3, 'value': 3} failed: {'code': -5000, 'message': 'invalid operation'}
2024-05-30 20:01:51.375 INFO (SyncWorker_8) [custom_components.xiaomi_miot.humidifier] Storage Room Dehumidifier(nwt.derh.wdh318efw1): Set miot property dehumidifier.fan_level(3) failed, result: None
2024-05-30 20:01:53.003 INFO (SyncWorker_3) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 62, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:01:57.664 INFO (SyncWorker_5) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 62, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:02.731 INFO (SyncWorker_3) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 62, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:07.767 INFO (SyncWorker_7) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 61, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:12.717 INFO (SyncWorker_1) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 61, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:17.580 INFO (SyncWorker_8) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 61, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:22.720 INFO (SyncWorker_6) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 60, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:27.670 INFO (SyncWorker_10) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 60, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:32.736 INFO (SyncWorker_5) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 60, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
2024-05-30 20:02:37.774 INFO (SyncWorker_2) [custom_components.xiaomi_miot.core.miio2miot] nwt.derh.wdh318efw1: Got miio props for miot: {'on_off': 'on', 'mode': 'auto', 'fan_st': 1, 'auto': 40, 'tank_full': 'off', 'humidity': 59, 'buzzer': 'off', 'led': 'on', 'child_lock': 'off'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant