-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Reimplement WaterHeaterEntity operation modes to match Aquanta operation modes #91
base: main
Are you sure you want to change the base?
Conversation
Homeassistant Core has deprecated the TEMP_CELSIUS constant. The new constant is an ENUM which collects all temp units together. Closes bmcclure#66
The API returns the Aquanta Intelligence settings "less efficient", "efficient" and "most efficient" as a fraction of 1.
This sounds awesome, thanks for working on this! Happy to provide any testing or assistance needed. I've enabled repository actions on this PR so that ruff will run as changes are pushed. |
I've been running this feature from my fork for a few days now. Testing and feedback would be appreciated. |
Note that I haven't actually made any progress towards figuring out how to request the Aquanta API change control states, so these changes are mostly just to allow users to view the correct control mode when using the Thermostat Widget. |
The Aquanta controller has 5 operational modes: Aquanta Intelligence, Thermostat Control, Time of Use, Manual Timer, and "Off". Where "Off" just disables the Aquanta controller, so the heater still heats water as if the Aquanta controller was not attached; it is thermostat controlled, just not the Aquanta's thermostat.
This PR reimplements the
WaterHeaterEntity
states to match these four operational states instead of trying to remap them to the states implemented for the genericWaterHeaterEntity
ofEco
,Performance
, andOff
. WhereEco
was mapped to Aquanta Intelligence,Performance
was mapped to the emphemeral boost state, andOff
is mapped to disabling the Aquanta controller (but doesn't actually turn off the water heater).This is a step toward being able to use the home assistant interface to switch between these operational modes.
Relies on #90