Skip to content

Commit 4c8b229

Browse files
committed
feat: update some unknown filter/relay whyOn states
1 parent ff167b9 commit 4c8b229

1 file changed

Lines changed: 27 additions & 13 deletions

File tree

pyomnilogic_local/omnitypes.py

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -398,22 +398,24 @@ class FilterWhyOn(IntEnum, PrettyEnum):
398398
OFF = 0
399399
NO_WATER_FLOW = 1
400400
COOLDOWN = 2
401-
PH_REDUCE_EXTEND = 3
401+
CSAD_EXTEND = 3
402402
HEATER_EXTEND = 4
403-
PAUSED = 5
404-
VALVE_CHANGING = 6
403+
PAUSE = 5
404+
OFF_VALVE_CHANGING = 6
405405
FORCE_HIGH_SPEED = 7
406-
OFF_EXTERNAL_INTERLOCK = 8
406+
EXTERNAL_INTERLOCK = 8
407407
SUPER_CHLORINATE = 9
408-
COUNTDOWN = 10
408+
COUNTDOWN_TIMER = 10
409409
MANUAL_ON = 11
410410
MANUAL_SPILLOVER = 12
411-
TIMER_SPILLOVER = 13
412-
TIMER_ON = 14
411+
TIMED_SPILLOVER = 13
412+
TIMED_EVENT = 14
413413
FREEZE_PROTECT = 15
414-
UNKNOWN_16 = 16 # We have seen 18, so we assume 16 exists
415-
UNKNOWN_17 = 17 # We have seen 18, so we assume 17 exists
416-
UNKNOWN_18 = 18 # ref: https://github.com/cryptk/haomnilogic-local/issues/106
414+
SET_POOL_SPA_SPILLOVER = 16
415+
SPILLOVER_COUNTDOWN_TIMER = 17
416+
GROUP_COMMAND = 18
417+
SPILLOVER_INTERLOCK = 19
418+
MAX_VALUE = 20
417419

418420

419421
class FilterSpeedPresets(StrEnum, PrettyEnum):
@@ -516,10 +518,22 @@ class RelayWhyOn(IntEnum, PrettyEnum):
516518
PAUSED = 4
517519
WAITING_FOR_FILTER = 5
518520
UNKNOWN_1 = 6 # We have seen 8, so we assume 6 exists
519-
UNKNOWN_2 = 7 # ref https://github.com/cryptk/haomnilogic-local/issues/150
520-
UNKNOWN_3 = 8 # ref https://github.com/cryptk/haomnilogic-local/issues/106
521+
# whyOn value 7 is assumed to be TIMED_EVENT
522+
# ref: https://github.com/cryptk/haomnilogic-local/issues/150
523+
# ref: https://github.com/cryptk/haomnilogic-local/issues/60
524+
# the relay in question is a high voltage relay that is scheduled to run 24x7
525+
TIMED_EVENT = 7
526+
# whyOn value 8 is assumed to be GROUP_COMMAND
527+
# ref: https://github.com/cryptk/haomnilogic-local/issues/148
528+
# ref: https://github.com/cryptk/haomnilogic-local/issues/106
529+
# the relays in question for for a cleaner and water feature that were activated via a running group command
530+
GROUP_COMMAND = 8
521531
UNKNOWN_4 = 9 # We have seen 10, so we assume 9 exists
522-
UNKNOWN_5 = 10 # ref https://github.com/cryptk/haomnilogic-local/issues/73
532+
# whyOn value 10 is assumed to be EXTERNAL_INTERLOCK
533+
# ref: https://github.com/cryptk/haomnilogic-local/issues/73
534+
# the relay in question was a high voltage relay controlling an ozonator interlocked with the filter
535+
# and the filter was on due to a timed event
536+
EXTERNAL_INTERLOCK = 10
523537

524538

525539
# Sensors

0 commit comments

Comments
 (0)