Skip to content

Commit

Permalink
Merge pull request #6 from kongo09/ac3259
Browse files Browse the repository at this point in the history
add ac3259
  • Loading branch information
kongo09 authored Apr 9, 2022
2 parents 58c25a2 + 2614d8e commit fe15b06
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Note: `configuration.yaml` is no longer supported and your configuration is not
- AC3033
- AC3039
- AC3059
- AC3259
- AC3829
- AC3858
- AC4236
Expand Down
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 @@ -74,6 +74,7 @@ class ICON:
MODEL_AC3033 = "AC3033"
MODEL_AC3039 = "AC3039"
MODEL_AC3059 = "AC3059"
MODEL_AC3259 = "AC3259"
MODEL_AC3829 = "AC3829"
MODEL_AC3858 = "AC3858"
MODEL_AC4236 = "AC4236"
Expand Down
16 changes: 16 additions & 0 deletions custom_components/philips_airpurifier_coap/philips.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,21 @@ class PhilipsAC3059(PhilipsGenericCoAPFan):
}


class PhilipsAC3259(PhilipsGenericCoAPFan):
AVAILABLE_PRESET_MODES = {
PRESET_MODE_ALLERGEN: {PHILIPS_POWER: "1", PHILIPS_MODE: "A"},
PRESET_MODE_AUTO: {PHILIPS_POWER: "1", PHILIPS_MODE: "P"},
PRESET_MODE_BACTERIA: {PHILIPS_POWER: "1", PHILIPS_MODE: "B"},
PRESET_MODE_SLEEP: {PHILIPS_POWER: "1", PHILIPS_MODE: "M", PHILIPS_SPEED: "s"},
}
AVAILABLE_SPEEDS = {
SPEED_1: {PHILIPS_POWER: "1", PHILIPS_MODE: "M", PHILIPS_SPEED: "1"},
SPEED_2: {PHILIPS_POWER: "1", PHILIPS_MODE: "M", PHILIPS_SPEED: "2"},
SPEED_3: {PHILIPS_POWER: "1", PHILIPS_MODE: "M", PHILIPS_SPEED: "3"},
PRESET_MODE_TURBO: {PHILIPS_POWER: "1", PHILIPS_MODE: "M", PHILIPS_SPEED: "t"},
}


class PhilipsAC3829(PhilipsHumidifierMixin, PhilipsGenericCoAPFan):
AVAILABLE_PRESET_MODES = {
PRESET_MODE_ALLERGEN: {PHILIPS_POWER: "1", PHILIPS_MODE: "A"},
Expand Down Expand Up @@ -543,6 +558,7 @@ class PhilipsAC5659(PhilipsGenericCoAPFan):
MODEL_AC3033: PhilipsAC3033,
MODEL_AC3039: PhilipsAC3039,
MODEL_AC3059: PhilipsAC3059,
MODEL_AC3259: PhilipsAC3259,
MODEL_AC3829: PhilipsAC3829,
MODEL_AC3858: PhilipsAC3858,
MODEL_AC4236: PhilipsAC4236,
Expand Down

0 comments on commit fe15b06

Please sign in to comment.