Skip to content

Commit

Permalink
Merge branch 'release/0.3.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Jun 20, 2021
2 parents b1ecbe0 + 423cc1f commit 2fbd59d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a custom component for home assistant to integrate the Xiaomi Mi Smart Fan.

Please follow the instructions on [Retrieving the Access Token](https://www.home-assistant.io/components/vacuum.xiaomi_miio/#retrieving-the-access-token) to get the API token to use in the configuration.yaml file.
Please follow the instructions on [Retrieving the Access Token](https://www.home-assistant.io/integrations/xiaomi_miio#retrieving-the-access-token) to get the API token to use in the configuration.yaml file.

Credits: Thanks to [Rytilahti](https://github.com/rytilahti/python-miio) for all the work.

Expand All @@ -24,6 +24,7 @@ Credits: Thanks to [Rytilahti](https://github.com/rytilahti/python-miio) for all
| Pedestal Fan Fan P10 | dmaker.fan.p10 | | |
| Mijia Pedestal Fan | dmaker.fan.p11 | BPLDS03DM | 2800mAh, 24W, <=58dB |
| Pedestal Fan Fan P15 | dmaker.fan.p15 | | |
| Mi Smart Standing Fan 2 | dmaker.fan.p18 | BPLDS02DM | AC, 15W, 30.2-55.8bB |
| Rosou SS4 Ventilator | leshow.fan.ss4 | | |


Expand Down
8 changes: 5 additions & 3 deletions custom_components/xiaomi_miio_fan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
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_LESHOW_SS4 = "leshow.fan.ss4"
MODEL_FAN_1C = "dmaker.fan.1c"

Expand All @@ -102,6 +103,7 @@
MODEL_FAN_P10,
MODEL_FAN_P11,
MODEL_FAN_P15,
MODEL_FAN_P18,
MODEL_FAN_LESHOW_SS4,
MODEL_FAN_1C,
]
Expand Down Expand Up @@ -370,8 +372,8 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
device = XiaomiFanMiot(
name, fan, model, unique_id, retries, preset_modes_override
)
elif model == MODEL_FAN_P10:
fan = FanP10(host, token, model=model)
elif model in [MODEL_FAN_P10, MODEL_FAN_P18]:
fan = FanP10(host, token, model=MODEL_FAN_P10)
device = XiaomiFanMiot(
name, fan, model, unique_id, retries, preset_modes_override
)
Expand Down Expand Up @@ -943,7 +945,7 @@ async def async_set_delay_off(self, delay_off_countdown: int) -> None:


class XiaomiFanMiot(XiaomiFanP5):
"""Representation of a Xiaomi Pedestal Fan P9, P10, P11."""
"""Representation of a Xiaomi Pedestal Fan P9, P10, P11, P18."""


class XiaomiFanLeshow(XiaomiGenericDevice):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miio_fan/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "xiaomi_miio_fan",
"name": "Xiaomi Mi Smart Pedestal Fan",
"version": "0.3.10",
"version": "0.3.11",
"iot_class": "local_polling",
"documentation": "https://github.com/syssi/xiaomi_fan",
"issue_tracker": "https://github.com/syssi/xiaomi_fan/issues",
Expand Down

0 comments on commit 2fbd59d

Please sign in to comment.