Repository navigation
Fix Nuos Split modes (Green, Green+) and setpoint state - #4
Merged
Merged
Conversation
A Nuos Split in Green+ reports opMode 6, which had no enum value, so its mode text was UNKNOWN and Green+ could not be selected. The cloud also ignores GREEN when the operativeMode body has no "old" key, so the mode request now always sends it. The mode and temperature setters stored the new value under keys the getters do not read (mode, procReqTemp), so the old value showed until the next poll. Changing the reduced temperature sent the measured water temperature as the new comfort setpoint; it now keeps the comfort setpoint and raises when that is unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cloud ignores GREEN without "old", likely because a missing old counts as 0 and old == new is skipped. So an unknown old mode is now sent as a mode that differs from the new one, not as the new one. The mode setters also load the state first when opMode is unknown. The reduced temperature setters now refresh when the comfort setpoint is missing, not only when the data is empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wojciech-aniol
marked this pull request as ready for review
October 25, 2026 08:32
This was referenced Oct 25, 2026
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.
Fixes four Nuos Split bugs reported upstream and one found in review. Green+ (opMode 6) gets a mode, so it shows and can be selected. Mode changes always send "old", which the cloud needs to apply GREEN. Mode and comfort temperature read back right after a set, not after the next poll. Changing the reduced temperature no longer moves the comfort setpoint to the water temperature.
Changes
NuosSplitOperativeMode.GREEN_PLUS = 6(Nuos Split: opMode 6 (Green+) missing from NuosSplitOperativeMode, current_operation falls back to UNKNOWN fustom/python-ariston-api#185, Add Green+ (opMode 6) to NuosSplitOperativeMode fustom/python-ariston-api#186). HcHp (4) and Electric (5) are not added: no device report shows them.set_nuos_mode/async_set_nuos_modetake an optionalold_valueand always send"old". The device passes its currentopMode, loading the state first when it is unknown. A tester found that GREEN is accepted but never applied withoutold, and that a wrongoldworks too (Fix NuosSplit operative mode changes (GREEN mode not working) fustom/python-ariston-api#174). The likely reason: a missingoldcounts as 0 andold == newis skipped. So an unknown old mode is sent as one that differs from the new mode (1 for GREEN, else 0), not as the new mode.opMode, notmode(the plant mode) (fix: keep Nuos operation mode cache in sync with mode getter fustom/python-ariston-api#181, fix(nuos-split): correct NuosSplitOperativeMode values and OP_MODE write target fustom/python-ariston-api#183).comfortTemp, notprocReqTemp(fix: keep Nuos optimistic cache in sync with target temperature getter fustom/python-ariston-api#180).procReqTempis left to the device, soproc_req_temp_valuechanges only at the next poll.waterTempas the new comfort value. They now send the comfort setpoint, refreshing once when it is missing; if it is still unknown, they raiseValueErrorand send nothing. The integration does not catchValueErroryet, so HA would show a generic error in that rare case.Not taken from upstream: removing COMFORT (fustom/python-ariston-api#183) and renaming IMEMORY to AUTO (fustom/python-ariston-api#187). Both break public names.
Tests
tests/test_nuos_split_device.py, sync and async: Green+ text, theoldkey in the real request body (_post/_async_postpatched, no network), mode and temperature read back after a set, plant mode untouched, state loaded when the old mode or comfort is unknown, reduced set keeps comfort, unknown comfort raises. Every fix has a test that fails without it. 31 tests and ruff pass.No label: patch release. The integration's
bump-library.ymlpins it after the release; the integration has no Nuos tests yet.🤖 Generated with Claude Code