Repository navigation
Conversation
Map slpPlantData hpState with the official web app enum eSlpHpState: Lockout=0, Idle=1, Heating=2, AntilegionellaOn=3, AntifreezeOn=4. Expose hp_state_value, hp_state_text and hp_state_texts on the device.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Nuos Split heat pump state (hpState)
slpPlantDataalready returnshpState, but the library has no enum or getter for it. This adds both, so the HA integration can show whether a Nuos Split heat pump is heating.Mapping
Taken from the official Ariston NET web app (
/Scripts/R2/app.bundle.min.js, enumeSlpHpState):The web app also shows its anti-legionella icon when
hpState == 3.Real-device evidence:
hpState=1while the unit was idle at 57 °C with a 62 °C target.hpStatewent from 1 to 2 at the first poll after the switch to GREEN_PLUS (opMode6), and stayed 2 in FAST (opMode2). Confirmed that the unit was heating.hpStatedoes not show the element on its own.Changes
NuosSplitHpStateenum inconst.py.AristonNuosSplitDevice.hp_state_value,hp_state_textandhp_state_texts. They follow the same shape aswater_heater_plant_mode_*: an unknown or missing value returnsNoneand writes a debug log.tests/test_nuos_hp_state.py.