From 57e4a71f3da813c67117a746fd7d537c4663a00b Mon Sep 17 00:00:00 2001 From: Ioan Loosley <7449028+ioangogo@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:27:46 +0100 Subject: [PATCH] Update fan.py --- custom_components/philips_airpurifier_coap/fan.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/custom_components/philips_airpurifier_coap/fan.py b/custom_components/philips_airpurifier_coap/fan.py index 4419755c..ee3ea391 100644 --- a/custom_components/philips_airpurifier_coap/fan.py +++ b/custom_components/philips_airpurifier_coap/fan.py @@ -81,6 +81,7 @@ MODEL_AC2729, MODEL_AC2889, MODEL_AC2939, + MODEL_AC2936, MODEL_AC2958, MODEL_AC3033, MODEL_AC3059, @@ -154,6 +155,7 @@ MODEL_AC2729, MODEL_AC2889, MODEL_AC2939, + MODEL_AC2936, MODEL_AC2958, MODEL_AC3033, MODEL_AC3059, @@ -184,6 +186,7 @@ async def async_setup_platform( MODEL_AC2729: PhilipsAC2729, MODEL_AC2889: PhilipsAC2889, MODEL_AC2939: PhilipsAC2939, + MODEL_AC2939: PhilipsAC2936, MODEL_AC2958: PhilipsAC2958, MODEL_AC3033: PhilipsAC3033, MODEL_AC3059: PhilipsAC3059, @@ -632,6 +635,14 @@ class PhilipsAC2939(PhilipsTVOCMixin, PhilipsGenericCoAPFan): PRESET_MODE_SLEEP: {PHILIPS_POWER: "1", PHILIPS_MODE: "S"}, PRESET_MODE_TURBO: {PHILIPS_POWER: "1", PHILIPS_MODE: "T"}, } + +class PhilipsAC2936(PhilipsTVOCMixin, PhilipsGenericCoAPFan): + AVAILABLE_PRESET_MODES = { + PRESET_MODE_AUTO: {PHILIPS_POWER: "1", PHILIPS_MODE: "AG"}, + PRESET_MODE_GENTLE: {PHILIPS_POWER: "1", PHILIPS_MODE: "GT"}, + PRESET_MODE_SLEEP: {PHILIPS_POWER: "1", PHILIPS_MODE: "S"}, + PRESET_MODE_TURBO: {PHILIPS_POWER: "1", PHILIPS_MODE: "T"}, + } class PhilipsAC2958(PhilipsGenericCoAPFan): AVAILABLE_PRESET_MODES = {