Add support for Xiaomi Smart Dehumidifier Lite (xiaomi.derh.lite)#2083
Open
bramkragten wants to merge 2 commits into
Open
Add support for Xiaomi Smart Dehumidifier Lite (xiaomi.derh.lite)#2083bramkragten wants to merge 2 commits into
bramkragten wants to merge 2 commits into
Conversation
Add a new MiotDevice implementation for the Xiaomi Smart Dehumidifier Lite (xiaomi.derh.lite), covering power, operation mode, target humidity, current humidity/temperature, buzzer, indicator light (on/off + brightness), child lock and the dry-after-off feature, plus fault reporting with a convenience tank-full property. The MIoT mapping follows the published spec (urn:miot-spec-v2:device:dehumidifier:0000A02D:xiaomi-lite:1). The Delay service (siid 8) from the spec is intentionally omitted, since the real device does not appear to expose it. Fixes rytilahti#2059
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2083 +/- ##
==========================================
+ Coverage 84.13% 84.26% +0.13%
==========================================
Files 199 202 +3
Lines 20164 20408 +244
Branches 1063 1065 +2
==========================================
+ Hits 16964 17196 +232
- Misses 3010 3021 +11
- Partials 190 191 +1 ☔ View full report in Codecov by Harness. |
Testing against a real xiaomi.derh.lite (firmware 1.0.3@BL602) shows the Delay service (siid 8: delay, delay_time, delay_remain_time) responds with code 0 for all properties, so it is part of the device after all. The earlier omission was based on a community integration that simply did not map it; the published spec was correct. All mapped properties confirmed against real hardware via status().
bramkragten
marked this pull request as ready for review
July 17, 2026 13:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
MiotDeviceimplementation for the Xiaomi Smart Dehumidifier Lite (xiaomi.derh.lite), addressing #2059.The device uses the MIoT protocol. The mapping follows the published spec (
urn:miot-spec-v2:device:dehumidifier:0000A02D:xiaomi-lite:1) and every property has been verified against real hardware (firmware1.0.3@BL602).Supported functionality
tank_fullproperty)Notes
miio/integrations/xiaomi/dehumidifier/._mappings;DeviceFactory.class_for_model("xiaomi.derh.lite")resolves toAirDehumidifierMiot.Testing
tests/test_airdehumidifier_miot.py(status parsing + all setters + validation). All tests pass;ruff check/ruff formatclean.xiaomi.derh.lite: every mapped property returnscode 0,status()parses correctly, and the write path (set_target_humidity) was confirmed. The Delay service (siid 8) is present on the device and is included.Fixes #2059