Skip to content

Commit

Permalink
Merge branch 'release/2022.3.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 12, 2022
2 parents b66c857 + dc6840a commit 992e12f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ This custom component is more or less the beta version of the [official componen
| Smartmi Evaporative Humidifier (Korea Version) | zhimi.humidifier.cb2 | CJXJSQ02ZM | 8W, 240x240x363mm |
| Mijia Smart Sterilization Humidifier S | deerma.humidifier.mjjsq | MJJSQ03DY | 4.5L, <=39dB, 450mL/h, 40W |
| Mijia Intelligent Sterilization Humidifier (EU version?) | deerma.humidifier.jsq | ZNJSQ01DEM | 4.5L, <=38dB, 300mL/h, 24W |
| Mijia Humidifier 4L | deerma.humidifier.jsq3 | MJJSQ04DY | 4L, <=38dB, 300mL/h, 25W |
| Mijia Intelligent Sterilization Humidifier (EU version?) | deerma.humidifier.jsq5 | ZNJSQ01DEM | 4.5L, <=38dB, 300mL/h, 24W |
| Mijia Smart Sterilization Humidifier S (EU version?) | deerma.humidifier.jsqs | MJJSQ03DY | 4.5L, <=39dB, 450mL/h, 40W |
| Mijia Intelligent Sterilization Humidifier SCK0A45 | deerma.humidifier.jsq1 | SCKOA45, SCK0A45 | 4.5L, <=38dB, 300mL/h, 25W |
Expand All @@ -70,9 +71,6 @@ This custom component is more or less the beta version of the [official componen
| Mijia Pedestal Fan | dmaker.fan.p11 | BPLDS03DM | 2800mAh, 24W, <=58dB |
| Rosou SS4 Ventilator | leshow.fan.ss4 | | |

Support unknown / Testing required:
- Mijia Humidifier 4L (MJJSQ04DY), 300ml/h, 25W, <=38dB: Please create an issue if you own this device.

Unsupported devices:
- Mijia Humidifer 4L (MJJSQ02LX): This device isn't smart / has no WiFi support.

Expand Down
5 changes: 4 additions & 1 deletion custom_components/xiaomi_miio_airpurifier/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
MODEL_AIRHUMIDIFIER_MJJSQ = "deerma.humidifier.mjjsq"
MODEL_AIRHUMIDIFIER_JSQ = "deerma.humidifier.jsq"
MODEL_AIRHUMIDIFIER_JSQ1 = "deerma.humidifier.jsq1"
MODEL_AIRHUMIDIFIER_JSQ3 = "deerma.humidifier.jsq3"
MODEL_AIRHUMIDIFIER_JSQ5 = "deerma.humidifier.jsq5"
MODEL_AIRHUMIDIFIER_JSQS = "deerma.humidifier.jsqs"
MODEL_AIRHUMIDIFIER_JSQ001 = "shuii.humidifier.jsq001"
Expand Down Expand Up @@ -195,6 +196,7 @@
MODEL_AIRHUMIDIFIER_MJJSQ,
MODEL_AIRHUMIDIFIER_JSQ,
MODEL_AIRHUMIDIFIER_JSQ1,
MODEL_AIRHUMIDIFIER_JSQ3,
MODEL_AIRHUMIDIFIER_JSQ5,
MODEL_AIRHUMIDIFIER_JSQS,
MODEL_AIRHUMIDIFIER_JSQ001,
Expand Down Expand Up @@ -1145,6 +1147,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
air_humidifier = AirHumidifierMjjsq(host, token, model=model)
device = XiaomiAirHumidifierMjjsq(name, air_humidifier, model, unique_id)
elif model in [
MODEL_AIRHUMIDIFIER_JSQ3,
MODEL_AIRHUMIDIFIER_JSQ5,
MODEL_AIRHUMIDIFIER_JSQS,
]:
Expand Down Expand Up @@ -1947,7 +1950,7 @@ def __init__(self, name, device, model, unique_id):
"""Initialize the plug switch."""
super().__init__(name, device, model, unique_id)

if self._model == MODEL_AIRHUMIDIFIER_JSQ5:
if self._model in [MODEL_AIRHUMIDIFIER_JSQ3, MODEL_AIRHUMIDIFIER_JSQ5]:
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER_JSQ5
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_JSQ5
else:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miio_airpurifier/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "xiaomi_miio_airpurifier",
"name": "Xiaomi Mi Air Purifier, Air Humidifier, Air Fresh and Pedestal Fan Integration",
"version": "2022.3.3.1",
"version": "2022.3.3.2",
"iot_class": "local_polling",
"config_flow": false,
"documentation": "https://github.com/syssi/xiaomi_airpurifier",
Expand Down

0 comments on commit 992e12f

Please sign in to comment.