Repository navigation
Fix plantmode write no-op on Elco Aerotop device classified as GALEVO instead of bsb - #184
Closed
albertorosso wants to merge 3 commits into
Closed
albertorosso wants to merge 3 commits into
albertorosso wants to merge 3 commits into
Conversation
Collaborator
|
@albertorosso I will review this. I'm making test suite for this repo before that. :) |
Collaborator
|
can you add tests to it? |
astrinh0
reviewed
Nov 12, 2026
| items = data["items"] | ||
| features = data["features"] | ||
|
|
||
| value = PLANT_MODE_VALUES.get(plant_mode_text) |
Collaborator
There was a problem hiding this comment.
Critical — The fallback rejects labels returned by the default API locale. async_set_plant_mode passes the selected text from PLANT_MODE.optTexts; those labels follow the configured language_tag, which defaults to en-US. This lookup accepts only Italian labels and uppercase OFF (while the bundled template itself uses Off), so the fallback raises ValueError for ordinary English labels such as Off or Winter when the REST write has no effect. Map the mode by its numeric value to the label expected by the R2 endpoint, or translate the configured label before this lookup.
astrinh0
requested changes
Nov 14, 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.
(partially generated with claude AI)
Some devices classified by the cloud as SystemType.GALEVO (observed on an Elco Aerotop heat pump with a BSB controller) accept plant mode writes via the REST v2 endpoint (POST /api/v2/remote/dataItems/{gw}/set) and receive {"success": true}, but the command has no real effect on the physical device.
The official web client (remocon-net.remotethermo.com), for this same gateway, never uses the REST v2 write path at all — it uses a legacy ASP.NET MVC-style endpoint: