Skip to content

Conversation

@jwiesel
Copy link

@jwiesel jwiesel commented May 7, 2025

Breaking change

No breaking change

Proposed change

Replace register names by wording used in Venus OS and enable multi-language support for Victron devices, entities and their states.

  • Translations have been taken from Venus OS 3.5 as far as possible (GUI v2). Missing ones have been named/translated based on best guess. Source: https://github.com/victronenergy/gui-v2/blob/main/i18n/venus-gui-v2_de.ts
  • Major entity types which I could test in my setup have been translated to EN (default for everyone) and DE.
  • For those which are not yet translated the former application logic still applies (using the register names with blanks instead of underscores)

Observations independant of this PR (will check/create separate tickets):

--> Translations have already been created for all entity types and duplicates (translations in type sensor) can be removed when the observations above are fixed.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • The code has been formatted using Ruff (ruff format custom_components/victron)

@@ -1,32 +0,0 @@
{
"config": {
Copy link
Owner

Choose a reason for hiding this comment

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

Why remove the config flow structure?

Copy link
Author

Choose a reason for hiding this comment

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

Hi @sfstar , thanks for reviewing and testing!
To my understanding the strings.json is not needed in custom integrations, as it is only a duplicate of translations/en.json. Therefore I removed it and did all updates in en.json.

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for your reply,

Based on the documentation and my vague recollection the strings.json was required to define the overall structure of the translations while the translations en.json / de.json etc contain the language specific values for those strings.
Have you seen any issues with the translations for the config flow / setup flow?

@sfstar
Copy link
Owner

sfstar commented May 25, 2025

Thank you for opening this PR and contributing your time to this project.
I will run your changes on my instance for a couple of days and if no issues arise (and feedback is processed) this PR can be merged.
I've enabled the actions to run, please resolve the validation / ruff findings so that this pr can be merged.

@sfstar sfstar added the new-feature New features or options. label May 25, 2025
@jwiesel jwiesel mentioned this pull request May 26, 2025
@jwiesel
Copy link
Author

jwiesel commented May 26, 2025

Thanks for testing!
If you are missing entity types (e.g. charger, inverter, temperature sensor), please let me know. I can add these translations for review as well.

…rcase. Fix findings of ruff validator: cast without quotes
@jwiesel
Copy link
Author

jwiesel commented May 26, 2025

@sfstar : I just fixed the findings of hassfest and ruff. I can have another look after your next approval. :-)

@sfstar
Copy link
Owner

sfstar commented Jun 1, 2025

Great I've approved the worklows to run so that all findings can be verified.

@sfstar
Copy link
Owner

sfstar commented Jun 1, 2025

Regarding the hassfest finding.
I believe you copied the naming for the translation keys from the const.py.
the actual entity id that are registered show up as lower case.
For example:
victron_grid_l1_current_30
instead of
victron_grid_L1_current (from const.py).
Could your resolve this finding? (by renaming the entity keys in the en/de json files to lower case)

I will be able to further look at this PR coming wednesday.
Since it's otherwise an relatively long time to wait for an review (from sunday to sunday).
No hurries, just information so you know what you can expect regarding review follow-up ;)

@github-actions
Copy link

github-actions bot commented Aug 1, 2025

This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Aug 1, 2025
@sfstar sfstar removed the stale There has not been activity on this issue or PR for quite some time. label Aug 26, 2025
@github-actions
Copy link

This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Oct 26, 2025
@github-actions github-actions bot closed this Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New features or options. stale There has not been activity on this issue or PR for quite some time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants