Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
Add support for Philips AirPurifier AC3033 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Skripkin authored May 2, 2021
1 parent ed9eb13 commit 4be0937
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/philips_airpurifier_coap/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
MODEL_AC2889 = "ac2889"
MODEL_AC2939 = "ac2939"
MODEL_AC2958 = "ac2958"
MODEL_AC3033 = "ac3033"
MODEL_AC3059 = "ac3059"
MODEL_AC3829 = "ac3829"
MODEL_AC3858 = "ac3858"
Expand Down
11 changes: 11 additions & 0 deletions custom_components/philips_airpurifier_coap/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
MODEL_AC2889,
MODEL_AC2939,
MODEL_AC2958,
MODEL_AC3033,
MODEL_AC3059,
MODEL_AC3829,
MODEL_AC3858,
Expand Down Expand Up @@ -154,6 +155,7 @@
MODEL_AC2889,
MODEL_AC2939,
MODEL_AC2958,
MODEL_AC3033,
MODEL_AC3059,
MODEL_AC3829,
MODEL_AC3858,
Expand Down Expand Up @@ -183,6 +185,7 @@ async def async_setup_platform(
MODEL_AC2889: PhilipsAC2889,
MODEL_AC2939: PhilipsAC2939,
MODEL_AC2958: PhilipsAC2958,
MODEL_AC3033: PhilipsAC3033,
MODEL_AC3059: PhilipsAC3059,
MODEL_AC3829: PhilipsAC3829,
MODEL_AC3858: PhilipsAC3858,
Expand Down Expand Up @@ -638,6 +641,14 @@ class PhilipsAC2958(PhilipsGenericCoAPFan):
PRESET_MODE_TURBO: {PHILIPS_POWER: "1", PHILIPS_MODE: "T"},
}

class PhilipsAC3033(PhilipsTVOCMixin, PhilipsGenericCoAPFan):
AVAILABLE_PRESET_MODES = {
PRESET_MODE_SPEED_1: {PHILIPS_POWER: "1", PHILIPS_MODE: "M", PHILIPS_SPEED: "1"},
PRESET_MODE_SPEED_2: {PHILIPS_POWER: "1", PHILIPS_MODE: "M", PHILIPS_SPEED: "2"},
PRESET_MODE_AUTO: {PHILIPS_POWER: "1", PHILIPS_MODE: "AG"},
PRESET_MODE_SLEEP: {PHILIPS_POWER: "1", PHILIPS_MODE: "S", PHILIPS_SPEED: "s"},
PRESET_MODE_TURBO: {PHILIPS_POWER: "1", PHILIPS_MODE: "T", PHILIPS_SPEED: "t"},
}

class PhilipsAC3059(PhilipsTVOCMixin, PhilipsGenericCoAPFan):
AVAILABLE_PRESET_MODES = {
Expand Down

0 comments on commit 4be0937

Please sign in to comment.