diff --git a/README.md b/README.md index 36ec5f11..bcff4329 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ Note: `configuration.yaml` is no longer supported and your configuration is not - AC3033 - AC3039 - AC3059 +- AC3259 - AC3829 - AC3858 - AC4236 diff --git a/custom_components/philips_airpurifier_coap/const.py b/custom_components/philips_airpurifier_coap/const.py index 63aa6e77..c01c2627 100644 --- a/custom_components/philips_airpurifier_coap/const.py +++ b/custom_components/philips_airpurifier_coap/const.py @@ -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" diff --git a/custom_components/philips_airpurifier_coap/philips.py b/custom_components/philips_airpurifier_coap/philips.py index 8fd337c3..976843aa 100644 --- a/custom_components/philips_airpurifier_coap/philips.py +++ b/custom_components/philips_airpurifier_coap/philips.py @@ -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"}, @@ -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,