Skip to content

Commit ef5402d

Browse files
authored
Merge pull request #15 from pfy/purehumidifycool
add basic support for dyson pure cool humidify
2 parents 7aafe3d + b4b3051 commit ef5402d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

libpurecool/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
DYSON_PURE_HOT_COOL_LINK_TOUR = "455"
99
DYSON_360_EYE = "N223"
1010
DYSON_PURE_COOL = "438"
11+
DYSON_PURE_COOL_HUMIDIFY = "358"
1112
DYSON_PURE_COOL_DESKTOP = "520"
1213
DYSON_PURE_HOT_COOL = "527"
1314

libpurecool/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from Crypto.Cipher import AES
55
from .const import DYSON_PURE_HOT_COOL_LINK_TOUR, \
66
DYSON_360_EYE, DYSON_PURE_COOL, DYSON_PURE_COOL_DESKTOP, \
7-
DYSON_PURE_HOT_COOL
7+
DYSON_PURE_HOT_COOL, DYSON_PURE_COOL_HUMIDIFY
88

99

1010
def support_heating(product_type):
@@ -33,7 +33,7 @@ def is_pure_cool_v2(product_type):
3333
:param product_type Dyson device model
3434
"""
3535
if product_type in [DYSON_PURE_COOL, DYSON_PURE_COOL_DESKTOP,
36-
DYSON_PURE_HOT_COOL]:
36+
DYSON_PURE_HOT_COOL, DYSON_PURE_COOL_HUMIDIFY]:
3737
return True
3838
return False
3939

@@ -91,7 +91,8 @@ def is_360_eye_device(json_payload):
9191
def is_dyson_pure_cool_device(json_payload):
9292
"""Return true if this json payload is a v2 dyson pure cool device."""
9393
if json_payload['ProductType'] in [DYSON_PURE_COOL,
94-
DYSON_PURE_COOL_DESKTOP]:
94+
DYSON_PURE_COOL_DESKTOP,
95+
DYSON_PURE_COOL_HUMIDIFY]:
9596
return True
9697
return False
9798

0 commit comments

Comments
 (0)