Skip to content

Commit

Permalink
Mark dmaker.fan.p{15,18} as supported
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Mar 19, 2022
1 parent 04eab3a commit 369aa0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions miio/integrations/fan/dmaker/fan_miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
MODEL_FAN_P9 = "dmaker.fan.p9"
MODEL_FAN_P10 = "dmaker.fan.p10"
MODEL_FAN_P11 = "dmaker.fan.p11"
MODEL_FAN_P15 = "dmaker.fan.p15"
MODEL_FAN_P18 = "dmaker.fan.p18"
MODEL_FAN_1C = "dmaker.fan.1c"


Expand Down Expand Up @@ -59,6 +61,12 @@
},
}


# These mappings are based on user reports and may not cover all features
MIOT_MAPPING[MODEL_FAN_P15] = MIOT_MAPPING[MODEL_FAN_P11] # see #1354
MIOT_MAPPING[MODEL_FAN_P18] = MIOT_MAPPING[MODEL_FAN_P10] # see #1341


FAN1C_MAPPINGS = {
MODEL_FAN_1C: {
# https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:fan:0000A005:dmaker-1c:1
Expand Down

0 comments on commit 369aa0d

Please sign in to comment.