Skip to content
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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

carterbox
Copy link
Contributor

@carterbox carterbox commented Jul 6, 2024

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 generic WaterHeaterEntity of Eco, Performance, and Off. Where Eco was mapped to Aquanta Intelligence, Performance was mapped to the emphemeral boost state, and Off 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

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.
@bmcclure
Copy link
Owner

bmcclure commented Jul 7, 2024

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.

@bmcclure bmcclure added the enhancement New feature or request label Jul 7, 2024
@carterbox carterbox marked this pull request as ready for review July 7, 2024 23:15
@carterbox
Copy link
Contributor Author

I've been running this feature from my fork for a few days now. Testing and feedback would be appreciated.

@carterbox carterbox changed the title WIP: Reimplement WaterHeaterEntity operation modes to match Aquanta operation modes API: Reimplement WaterHeaterEntity operation modes to match Aquanta operation modes Jul 7, 2024
@carterbox
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants