Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/aiopoolside/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,21 @@ class CoolingMode(StrEnum):
CURRENT_TEMPERATURE_FIELD = "Temperature"
CURRENT_STATE_FIELD = "CurrentState"

# TemperatureRiseInformation is a JSON document pushed while a body of water
# heats (or cools) toward its set point; None when no heat-up is in progress.
# TargetEndDateTime is the controller's predicted completion time. The vendor
# app shows it as "ready in" only for a sampled, normal heat-up
# (TemperatureState SAMPLED, HeatingEventType NORMAL): while SAMPLING the
# controller already fills in a preliminary estimate, and MAINTAIN_TEMPERATURE
# and LEARNING aren't heat-ups. Unset timestamps arrive as 0001-01-01
# placeholders.
TEMPERATURE_RISE_INFORMATION_FIELD = "TemperatureRiseInformation"
TEMPERATURE_RISE_TARGET_END_KEY = "TargetEndDateTime"
TEMPERATURE_RISE_STATE_KEY = "TemperatureState"
TEMPERATURE_RISE_EVENT_TYPE_KEY = "HeatingEventType"
TEMPERATURE_RISE_SAMPLED = "SAMPLED"
TEMPERATURE_RISE_NORMAL = "NORMAL"

# Site-level status items (Device.setStatus, keyed by the site UUID from
# Site.getControlLayout). LastTimeSiteWasLoaded changes whenever the
# attendant's site configuration is edited - a signal to re-fetch the
Expand Down
Loading