Skip to content

Commit

Permalink
add manual quickdry mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kongo09 committed Nov 17, 2024
1 parent 3894b70 commit 5c92785
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom_components/philips_airpurifier_coap/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class FanAttributes(StrEnum):
STANDBY_SENSORS = "standby_sensors"
AUTO_PLUS = "auto_plus"
WATER_TANK = "water_tank"
AUTO_QUICKDRY_MODE = "auto_quickdry_mode"
QUICKDRY_MODE = "quickdry_mode"


Expand Down Expand Up @@ -428,6 +429,7 @@ class PhilipsApi:
NEW2_TIMER = "D03110#1"
NEW2_TIMER2 = "D03110#2"
NEW2_AUTO_QUICKDRY_MODE = "D03138"
NEW2_QUICKDRY_MODE = "D03139"
NEW2_REMAINING_TIME = "D03211"
NEW2_TARGET_TEMP = "D0310E"
NEW2_STANDBY_SENSORS = "D03134"
Expand Down Expand Up @@ -812,6 +814,12 @@ class PhilipsApi:
SWITCH_OFF: 0,
},
PhilipsApi.NEW2_AUTO_QUICKDRY_MODE: {
ATTR_ICON: "mdi:clock-fast",
FanAttributes.LABEL: FanAttributes.AUTO_QUICKDRY_MODE,
SWITCH_ON: 1,
SWITCH_OFF: 0,
},
PhilipsApi.NEW2_QUICKDRY_MODE: {
ATTR_ICON: "mdi:clock-fast",
FanAttributes.LABEL: FanAttributes.QUICKDRY_MODE,
SWITCH_ON: 1,
Expand Down
1 change: 1 addition & 0 deletions custom_components/philips_airpurifier_coap/philips.py
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,7 @@ class PhilipsHU5710(PhilipsNew2GenericCoAPFan):
AVAILABLE_SWITCHES = [
PhilipsApi.NEW2_CHILD_LOCK,
PhilipsApi.NEW2_BEEP,
PhilipsApi.NEW2_QUICKDRY_MODE,
PhilipsApi.NEW2_AUTO_QUICKDRY_MODE,
PhilipsApi.NEW2_STANDBY_SENSORS,
]
Expand Down

0 comments on commit 5c92785

Please sign in to comment.