How reptilex/tesla-style-solar-power-card works
This is a Home Assistant Lovelace solar-power visualization card. Home Assistant supplies configured sensor states to the card; the card computes grid, generation, house, battery, and optional appliance values, then renders bubbles and energy-flow paths, with animation and responsive resizing. The editor and localization support configuration and presentation. Relationships involving unsampled implementation details are omitted or marked unverified; the graph does not treat build or test tooling as product components.
Main entry points: TeslaStyleSolarPowerCard.ts Solar Power Card · editor.ts Card Editor · TeslaStyleSolarPowerCardConfig.ts Card Configuration · SensorElement.ts Sensor State
Components 10
Card Runtime
- Solar Power Card
src/TeslaStyleSolarPowerCard.ts - Card Configuration
src/models/TeslaStyleSolarPowerCardConfig.ts - Sensor State
src/models/SensorElement.ts - Bubble Values
src/models/BubbleData.ts
Visualization
- Bubble and Line Writer
src/services/htmlWriterForPowerCard.ts - Responsive Layout
src/services/HtmlResizeForPowerCard.ts
Configuration
- Card Editor
src/components/editor.ts - Localization
src/localize/localize.ts
Other components
- Home Assistant
- Configured Sensors
Connections 9
- Home Assistant → Solar Power Card: hosts card
README.md - Configured Sensors → Solar Power Card: provides flows
README.md - Solar Power Card → Sensor State: tracks sensors
src/TeslaStyleSolarPowerCard.ts - Solar Power Card → Bubble Values: calculates bubbles
src/TeslaStyleSolarPowerCard.ts - Solar Power Card → Bubble and Line Writer: renders visualization
src/services/htmlWriterForPowerCard.ts - Solar Power Card → Responsive Layout: resizes layout
src/services/HtmlResizeForPowerCard.ts - Card Editor → Card Configuration: edits settings
src/components/editor.ts - Home Assistant → Card Editor: configures card
src/components/editor.ts - Solar Power Card → Localization: uses translations
src/TeslaStyleSolarPowerCard.ts