Skip to content

Commit

Permalink
add AC3737
Browse files Browse the repository at this point in the history
  • Loading branch information
kongo09 committed Feb 16, 2024
1 parent e4a0ec0 commit 9ea763b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Note: `configuration.yaml` is no longer supported and your configuration is not
- AC3055
- AC3059
- AC3259
- AC3737
- AC3829
- AC3836
- AC3854/50
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 @@ -112,6 +112,7 @@ class FanModel(StrEnum):
AC3055 = "AC3055"
AC3059 = "AC3059"
AC3259 = "AC3259"
AC3737 = "AC3737"
AC3829 = "AC3829"
AC3836 = "AC3836"
AC3854_50 = "AC3854/50"
Expand Down
39 changes: 39 additions & 0 deletions custom_components/philips_airpurifier_coap/philips.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,44 @@ class PhilipsAC3259(PhilipsGenericCoAPFan):
AVAILABLE_SELECTS = [PhilipsApi.GAS_PREFERRED_INDEX]


class PhilipsAC3737(PhilipsNew2GenericCoAPFan):
"""AC3737."""

AVAILABLE_PRESET_MODES = {
# PresetMode.AUTO: {
# PhilipsApi.NEW2_POWER: 1,
# PhilipsApi.NEW2_MODE_A: 3,
# PhilipsApi.NEW2_MODE_B: 0,
# },
# PresetMode.HIGH: {
# PhilipsApi.POWER: 1,
# PhilipsApi.NEW2_MODE_A: 3,
# PhilipsApi.NEW2_MODE_B: 65,
# },
# PresetMode.LOW: {
# PhilipsApi.POWER: 1,
# PhilipsApi.NEW2_MODE_A: 3,
# PhilipsApi.NEW2_MODE_B: 66,
# },
}
AVAILABLE_SPEEDS = {
# PresetMode.HIGH: {
# PhilipsApi.POWER: 1,
# PhilipsApi.NEW2_MODE_A: 3,
# PhilipsApi.NEW2_MODE_B: 65,
# },
# PresetMode.LOW: {
# PhilipsApi.POWER: 1,
# PhilipsApi.NEW2_MODE_A: 3,
# PhilipsApi.NEW2_MODE_B: 66,
# },
}

AVAILABLE_LIGHTS = [PhilipsApi.NEW2_DISPLAY_BACKLIGHT2]
AVAILABLE_SWITCHES = [PhilipsApi.NEW2_CHILD_LOCK]
UNAVAILABLE_SENSORS = [PhilipsApi.NEW2_FAN_SPEED]


class PhilipsAC3829(PhilipsHumidifierMixin, PhilipsGenericCoAPFan):
"""AC3829."""

Expand Down Expand Up @@ -1749,6 +1787,7 @@ class PhilipsCX5120(PhilipsNew2GenericCoAPFan):
FanModel.AC3055: PhilipsAC3055,
FanModel.AC3059: PhilipsAC3059,
FanModel.AC3259: PhilipsAC3259,
FanModel.AC3737: PhilipsAC3737,
FanModel.AC3829: PhilipsAC3829,
FanModel.AC3836: PhilipsAC3836,
FanModel.AC3854_50: PhilipsAC385450,
Expand Down

0 comments on commit 9ea763b

Please sign in to comment.