mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 22:18:38 +01:00
add migration page
This commit is contained in:
@@ -15,6 +15,38 @@
|
||||
background-color: #333333;
|
||||
}
|
||||
|
||||
/* Footer contrast fixes for Zensical/Material variants */
|
||||
:root {
|
||||
--md-footer-bg-color: #333333;
|
||||
--md-footer-bg-color--dark: #2b2b2b;
|
||||
--md-footer-fg-color: #f2f2f2;
|
||||
--md-footer-fg-color--light: #ffffff;
|
||||
--md-footer-fg-color--lighter: #ffffff;
|
||||
}
|
||||
|
||||
.md-footer,
|
||||
.md-footer-meta,
|
||||
.md-footer * {
|
||||
color: #f2f2f2;
|
||||
}
|
||||
|
||||
.md-footer a,
|
||||
.md-footer-meta a,
|
||||
.md-footer .md-footer__link {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.md-footer a:hover,
|
||||
.md-footer-meta a:hover,
|
||||
.md-footer .md-footer__link:hover {
|
||||
color: #d9e7ff;
|
||||
}
|
||||
|
||||
.md-footer .md-icon svg,
|
||||
.md-footer-meta .md-icon svg {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
/* Zensical keeps footer content in the inner/meta containers.
|
||||
Don't hide footer structure, only style it. */
|
||||
|
||||
|
||||
75
docs/config-migration-standalone.md
Normal file
75
docs/config-migration-standalone.md
Normal file
@@ -0,0 +1,75 @@
|
||||
# Migration to Standalone Rewrite Config
|
||||
|
||||
This page compares the legacy AppDaemon `apps.yaml` config with the standalone rewrite `panels.yaml` config.
|
||||
|
||||
For the full rewrite docs, including full key descriptions, see:
|
||||
|
||||
- [Standalone documentation](https://docs.nspanel.pky.eu/standalone/)
|
||||
- [Standalone migration page](https://docs.nspanel.pky.eu/standalone/migration-appdaemon/)
|
||||
|
||||
## High-level differences
|
||||
|
||||
Old AppDaemon version:
|
||||
|
||||
- panel config in `apps.yaml` with `module` / `class` / `config`
|
||||
- connectivity partly configured in AppDaemon plugin config (`appdaemon.yaml`)
|
||||
|
||||
Standalone rewrite:
|
||||
|
||||
- one runtime config file: `/config/panels.yaml`
|
||||
- panel definitions under `nspanels`
|
||||
- Home Assistant and MQTT connection values resolved directly by the rewrite runtime
|
||||
|
||||
## Minimal before/after example
|
||||
|
||||
Old (`apps.yaml`):
|
||||
|
||||
```yaml
|
||||
nspanel-1:
|
||||
module: nspanel-lovelace-ui
|
||||
class: NsPanelLovelaceUIManager
|
||||
config:
|
||||
panelRecvTopic: "tele/tasmota_panel/RESULT"
|
||||
panelSendTopic: "cmnd/tasmota_panel/CustomSend"
|
||||
model: eu
|
||||
```
|
||||
|
||||
New (`panels.yaml`):
|
||||
|
||||
```yaml
|
||||
home_assistant_address: "http://supervisor"
|
||||
home_assistant_token: "YOUR_TOKEN"
|
||||
|
||||
nspanels:
|
||||
panel-1:
|
||||
panelRecvTopic: "tele/tasmota_panel/RESULT"
|
||||
panelSendTopic: "cmnd/tasmota_panel/CustomSend"
|
||||
model: eu
|
||||
locale: en_US
|
||||
timeZone: "Europe/Berlin"
|
||||
timeFormat: "%H:%M"
|
||||
dateFormat: "full"
|
||||
screensaver:
|
||||
entities:
|
||||
- entity: weather.home
|
||||
cards:
|
||||
- type: cardEntities
|
||||
title: Main
|
||||
entities:
|
||||
- entity: light.kitchen
|
||||
```
|
||||
|
||||
## Important key changes
|
||||
|
||||
Legacy key/concept | Rewrite key/concept | Notes
|
||||
-- | -- | --
|
||||
`module`, `class`, `config` wrapper | removed | Rewrite uses `nspanels.<panel_name>` directly.
|
||||
`timezone` | `timeZone` | Casing changed.
|
||||
`dateFormatBabel` | `dateFormat` | Use `dateFormat` in rewrite.
|
||||
`temperatureUnit` (legacy card-level usage) | `temp_unit` (panel-level) | Rewrite reads `temp_unit` from panel settings.
|
||||
brightness schedule lists | not supported | Rewrite supports integer or entity id for brightness values.
|
||||
`updateMode` / OTA URL override keys | not supported | Legacy update behavior is not part of rewrite config.
|
||||
|
||||
If you are migrating now, use the standalone migration page for the complete mapping:
|
||||
|
||||
- [Complete mapping and checklist](https://docs.nspanel.pky.eu/standalone/migration-appdaemon/)
|
||||
Reference in New Issue
Block a user