The integration now serves solaredge-roof-card and loads it in every frontend session. The card shows the building in 3D with the current power in W and the Panel-Position on every panel; the colour runs from dark (0 W) to bright (Skalenmaximum, default 460 W). Failed panels are grey and hatched, a tap opens the more-info dialog. scripts/convert_portal_layout.py turns the SolarEdge portal's physical layout and site model into the card's layout once, so nothing depends on the portal at runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
411 B
TypeScript
20 lines
411 B
TypeScript
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: "src/solaredge-roof-card.ts",
|
|
formats: ["es"],
|
|
fileName: () => "solaredge-roof-card.js",
|
|
},
|
|
outDir: "../custom_components/solaredge_optimizers/frontend",
|
|
emptyOutDir: true,
|
|
target: "es2022",
|
|
minify: true,
|
|
sourcemap: false,
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
},
|
|
});
|