Skip to content

Commit

Permalink
fix allergy_sleep mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kongo09 committed Dec 22, 2024
1 parent f35295e commit a0bf299
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions custom_components/philips_airpurifier_coap/philips.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,12 +1226,27 @@ class PhilipsAC3420(PhilipsNew2GenericFan):
AVAILABLE_PRESET_MODES = {
PresetMode.AUTO: {
PhilipsApi.NEW2_POWER: 1,
PhilipsApi.NEW2_MODE_A: 2,
PhilipsApi.NEW2_MODE_B: 0,
},
PresetMode.TURBO: {PhilipsApi.NEW2_POWER: 1, PhilipsApi.NEW2_MODE_B: 18},
PresetMode.MEDIUM: {PhilipsApi.NEW2_POWER: 1, PhilipsApi.NEW2_MODE_B: 19},
PresetMode.TURBO: {
PhilipsApi.NEW2_POWER: 1,
PhilipsApi.NEW2_MODE_A: 2,
PhilipsApi.NEW2_MODE_B: 18,
},
PresetMode.MEDIUM: {
PhilipsApi.NEW2_POWER: 1,
PhilipsApi.NEW2_MODE_A: 2,
PhilipsApi.NEW2_MODE_B: 19,
},
PresetMode.SLEEP: {
PhilipsApi.NEW2_POWER: 1,
PhilipsApi.NEW2_MODE_A: 2,
PhilipsApi.NEW2_MODE_B: 17,
},
PresetMode.SLEEP_ALLERGY: {
PhilipsApi.NEW2_POWER: 1,
PhilipsApi.NEW2_MODE_A: 16,
PhilipsApi.NEW2_MODE_B: 17,
},
}
Expand Down

0 comments on commit a0bf299

Please sign in to comment.