Repository navigation
feat(settings): UI to edit the installation topology - #42
Merged
Merged
Conversation
Admin-only editor in Ajustes that loads the resolved topology from GET /api/install and saves it as install_config.topology via PUT /api/config. Backend validates topology with a new zod schema (shared/schemas.js) and re-resolves the in-memory topology after saving so the API reflects the change; subscriptions still need a restart (restartNeeded).
Dialog goes from max-w-2xl to max-w-4xl on desktop and inverter fields use a 3-column grid so the wider layout is put to use.
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.
Closes #41
Adds an admin-only editor in Settings ("Editar topología") that lets you configure the whole installation from the UI instead of writing
install_config.topologyby hand.topologySchemainshared/schemas.js;PUT /api/configvalidatestopology(400 on invalid), re-resolves the in-memory topology soGET /api/installreflects the change, and returnsrestartNeeded(entity subscriptions are fixed at boot).TopologyEditordialog opened from the Installation section (admin only) with add/remove inverters (name, model, kWp, panels, power/energy sensors, unit, accumulator, deep-history sources), battery (enabled, sensors, charge/discharge states), grid source (attrsvssensor+ inverter status sensor), consumption, daily-energy history and sun/weather entities.Out of scope: multi-installation (Phase 4) and HAOS entity existence validation.