Skip to content

Conversation

spuky
Copy link
Contributor

@spuky spuky commented Oct 8, 2025

As discussed in #16649 (comment) and later comments Some users would prefer the old behavior

This pr provides the option to select the Mode via yaml or UI
keeps the current behaviour as a default to not change systems during an update

That should make more users happy

@maatinh & @andiwist should we add "Value 6 "Conserve" as an third viable option?

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig
Copy link
Member

andig commented Oct 8, 2025

Requirement is not entirely clear: #16649 (comment)

@andig andig marked this pull request as draft October 8, 2025 12:17
@naltatis naltatis changed the title Discharge-Mode for goodwe-hybrid make selectable in yaml and ui Goodwe-Hybrid: make discharge-mode selectable in yaml and ui Oct 8, 2025
@naltatis naltatis added the devices Specific device support label Oct 8, 2025
@andig andig marked this pull request as ready for review October 9, 2025 11:21
"no": "nein",
"yes": "ja"
},
"dischargemode": {
Copy link
Member

Choose a reason for hiding this comment

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

please remove, these are not managed via Weblate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if i do that it shows.. config.options.dischargemode.1 and config.options.dischargemode.1 same as it does for the Battery mode... not really nice...UX ( just left those 2 alone to have the PR about whats actually done

Bildschirmfoto 2025-10-09 um 13 25 15

the construct with having "choice: [2, 8]" in the Template and Strings in the json file makes them more user friendly and translatable... and afaik Weblate is mostly reading the english version of the json file... but the german version is also kept uptodate in the code base...

@andig andig marked this pull request as draft October 9, 2025 11:59
@github-actions github-actions bot added the stale Outdated and ready to close label Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devices Specific device support stale Outdated and ready to close

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants