Skip to content

fix(nuos-split): correct NuosSplitOperativeMode values and OP_MODE write target - #183

Closed
agustinscaz wants to merge 4 commits into
fustom:mainfrom
agustinscaz:fix/nuos-split-operative-modes
Closed

agustinscaz wants to merge 4 commits into
fustom:mainfrom
agustinscaz:fix/nuos-split-operative-modes

Conversation

@agustinscaz

Copy link
Copy Markdown

On Ariston NUOS PLUS S2 WIFI 200L FS (heat pump water heater, WheType.NuosSplit), changing the operation mode from Home Assistant always resulted in a 400 error from the API:

ariston.ariston_api.ConnectionException: 400

The root cause is that NuosSplitOperativeMode in const.py defines incorrect values for this device:

  • COMFORT = 1 does not exist on the NUOS Split — the API rejects it with 400
  • GREEN_PLUS = 6 is completely missing, so it was impossible to select that mode from HA

Additionally, both set_water_heater_operation_mode and async_set_water_heater_operation_mode in nuos_split_device.py were writing the new mode value to NuosSplitProperties.MODE ("mode") instead of NuosSplitProperties.OP_MODE ("opMode"). Since water_heater_mode_value reads from OP_MODE, the UI would not reflect the mode change until the next poll.

Investigation

I reverse-engineered the Ariston web app API calls (/R2/PlantHomeSlp/SetData/) while switching between each mode in the browser, and captured the actual opMode values sent by the official web interface:

Mode viewModel.opMode
Green 0
Fast 2
iMemory 3
Green+ 6

This confirms the correct enum values and reveals that COMFORT = 1 is not a valid mode for this device family, and GREEN_PLUS = 6 was entirely absent from the library.

Changes

  • ariston/const.py: replaced COMFORT = 1 with GREEN_PLUS = 6 in NuosSplitOperativeMode
  • ariston/nuos_split_device.py: fixed the mode write target from NuosSplitProperties.MODE to NuosSplitProperties.OP_MODE in both the sync and async operation mode setters

Tested on

  • Device: Ariston NUOS PLUS S2 WIFI 200L FS
  • Home Assistant OS with ariston==0.19.9
  • All four modes (Green, Fast, iMemory, Green+) confirmed working after the fix

Removed COMFORT mode and added GREEN_PLUS mode to NuosSplitOperativeMode.
@astrinh0

Copy link
Copy Markdown
Collaborator

@agustinscaz I will review this. I'm making test suite for this repo before that. :)

@astrinh0

Copy link
Copy Markdown
Collaborator

Fix the tests @agustinscaz I will review after that. Ping me here

@astrinh0 astrinh0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required: Keep COMFORT = 1 while adding GREEN_PLUS = 6. This enum supplies the Nuos Split mode options and display text. Removing COMFORT makes API value 1 display as UNKNOWN, and set_water_heater_operation_mode("COMFORT") raises KeyError before the API call. Add GREEN_PLUS without dropping the existing mode.

Comment thread ariston/const.py
"""NuosSplit operative mode enum"""

GREEN = 0
COMFORT = 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required: Keep COMFORT = 1 while adding GREEN_PLUS = 6. This enum supplies the Nuos Split mode options and display text. Removing COMFORT makes API value 1 display as UNKNOWN, and set_water_heater_operation_mode("COMFORT") raises KeyError before the API call. Add GREEN_PLUS without dropping the existing mode.

@astrinh0 astrinh0 closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants