Skip to content

Commit

Permalink
re-enable Auto+ switch and remove from preset
Browse files Browse the repository at this point in the history
  • Loading branch information
kongo09 committed Jan 23, 2024
1 parent 1e8cc8f commit 821aaa6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions custom_components/philips_airpurifier_coap/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,12 +695,12 @@ class PhilipsApi:
SWITCH_ON: 1,
SWITCH_OFF: 0,
},
# PhilipsApi.NEW2_AUTO_PLUS_AI: {
# ATTR_ICON: "mdi:format-annotation-plus",
# FanAttributes.LABEL: FanAttributes.AUTO_PLUS,
# SWITCH_ON: 1,
# SWITCH_OFF: 0,
# },
PhilipsApi.NEW2_AUTO_PLUS_AI: {
ATTR_ICON: "mdi:format-annotation-plus",
FanAttributes.LABEL: FanAttributes.AUTO_PLUS,
SWITCH_ON: 1,
SWITCH_OFF: 0,
},
}

LIGHT_TYPES: dict[str, LightDescription] = {
Expand Down
14 changes: 7 additions & 7 deletions custom_components/philips_airpurifier_coap/philips.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,16 +1577,16 @@ class PhilipsAMFxxx(PhilipsNew2GenericCoAPFan):

# REPLACE_PRESET = [PhilipsApi.NEW2_MODE_B, PhilipsApi.NEW2_FAN_SPEED]
AVAILABLE_PRESET_MODES = {
PresetMode.AUTO_PLUS: {
PhilipsApi.NEW2_POWER: 1,
PhilipsApi.NEW2_MODE_B: 0,
PhilipsApi.NEW2_AUTO_PLUS_AI: 1,
# PhilipsApi.NEW2_MODE_C: 3,
},
# PresetMode.AUTO_PLUS: {
# PhilipsApi.NEW2_POWER: 1,
# PhilipsApi.NEW2_MODE_B: 0,
# PhilipsApi.NEW2_AUTO_PLUS_AI: 1,
# # PhilipsApi.NEW2_MODE_C: 3,
# },
PresetMode.AUTO: {
PhilipsApi.NEW2_POWER: 1,
PhilipsApi.NEW2_MODE_B: 0,
PhilipsApi.NEW2_AUTO_PLUS_AI: 0,
# PhilipsApi.NEW2_AUTO_PLUS_AI: 0,
# PhilipsApi.NEW2_MODE_C: 3,
},
PresetMode.SLEEP: {
Expand Down

0 comments on commit 821aaa6

Please sign in to comment.