Skip to content

jchaager/solar-bar-card

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โ˜€๏ธ Solar Bar Card for Home Assistant

Visualize your solar power distribution with an intuitive, real-time bar chart. Perfect for monitoring production, consumption, exports, and EV charging at a glance!

HACS Badge Version GitHub Issues GitHub Stars

1759611909382.png

1761360830828.png


โœจ Features

๐Ÿ”‹ Battery Integration (NEW in v2.0.0!)

  • Adjacent bars layout - Battery and solar bars side-by-side with proportional widths
  • Proportional sizing - Bar widths based on battery capacity vs inverter size
  • Visual SOC indicator - Battery bar fills from left showing state of charge
  • Flexible configuration - Single sensor or dual charge/discharge sensors
  • Animated flow lines - Shows charging/discharging direction with particles
  • Smart stats tiles - Maximum 4 tiles with single-line headers
  • Compact legend - Short labels to prevent wrapping

๐Ÿ“Š Net Import/Export History (NEW in v2.1.0!)

  • Daily energy tracking - Connect your daily import/export energy sensors
  • Net position indicator - Green dot = net exporter, red dot = net importer for the day
  • Second line on tiles - Shows daily kWh totals on import/export tiles
  • Perfect for template sensors - Works with Utility Meter helpers or custom templates

๐Ÿ“ Header Sensors (NEW in v2.1.0!)

  • Up to 2 additional sensors - Add custom sensors to the header bar
  • Spread layout - Title, sensors, and weather evenly distributed across header
  • Flexible formatting - Custom icons (emoji or MDI), labels, and units
  • Click for history - All header sensors are clickable to show entity history

๐ŸŽจ Visual Power Distribution

  • Color-coded bar showing real-time power allocation
  • Green for solar self-consumption
  • Orange for EV charging (solar + grid split)
  • Red/Coral for grid import
  • Grey dashed for potential EV charging capacity
  • Semi-transparent for unused inverter capacity
  • Yellow dotted line for solar forecast
  • Grid icon dynamically changes ๐ŸŸข green when exporting, ๐ŸŸ  orange when importing

๐ŸŽจ Customizable Color Palettes

  • 6 beautiful preset palettes with soft pastel colors:
    • ๐ŸŒž Classic Solar - Bright, traditional solar colors
    • ๐ŸŒธ Soft Meadow - Gentle pastels with spring vibes
    • ๐ŸŒŠ Ocean Sunset - Warm sunset meets cool ocean
    • ๐ŸŒฟ Garden Fresh - Natural greens and soft tones
    • ๐Ÿ‘ Peachy Keen - Warm peach and lavender blend
    • โ˜๏ธ Cloudy Day - Soft, cloudy sky palette
  • Custom color overrides - Override any individual color while keeping the palette
  • Color picker integration in the UI editor

โš™๏ธ Organized Configuration UI

  • Well-organized sections with emoji visual grouping:
    • โš™๏ธ Basic Settings - Inverter capacity
    • ๐Ÿ”Œ Entity Configuration - Power sensors
    • ๐Ÿš— EV Charger - EV-related settings
    • ๐Ÿ”ฎ Forecast - Solcast and custom forecast
    • ๐ŸŽจ Appearance & Colors - Palette, header, weather
    • ๐Ÿ‘๏ธ Display Options - Stats, legend, bar options
  • Visual palette selector with emoji icons
  • Clear section headers in helper text for easy navigation

๐ŸŒ™ Smart Idle Detection

  • Automatically detects when solar system is in standby mode
  • Shows "Solar system in standby mode" message
  • Prevents displaying stale data overnight

๐Ÿš— Intelligent EV Charger Support

  • Smart power flow visualization - Automatically splits EV charging into solar (green) vs grid (orange)
  • EV Ready Indicator - Shows โšก๐Ÿš— icon when excess solar can power your charger (half/full charge detection)
  • Potential capacity display - Shows additional charging capacity available (grey dashed bar)
  • Active charging detection - Displays actual charging power with proper color coding

๐ŸŒค๏ธ Weather Integration

  • Dynamic weather icons (โ˜€๏ธ sunny, ๐ŸŒง๏ธ rainy, โ›ˆ๏ธ stormy, etc.)
  • Supports both weather entities and temperature sensors
  • Displays in top-right corner

๐Ÿ“Š Solar Forecast

  • Integration with Solcast (auto-detection)
  • Support for custom forecast sensors
  • Visual lightning bolt indicator on bar

๐ŸŽ›๏ธ Flexible Display

Toggle any component on/off:

  • Header with title
  • Individual power statistics (4 tiles)
  • Power distribution label
  • Color-coded legend with values
  • Weather/temperature display
  • Bar segment values
  • Tick marks with scale labels

๐Ÿ“ฑ Responsive Design

  • Adapts to Sections view
  • Works in Masonry view
  • Dynamic card sizing
  • Mobile-friendly

๐Ÿš€ Installation

Method 1: HACS (Recommended)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  1. Open HACS in your Home Assistant instance
  2. Click on Frontend
  3. Click the โ‹ฎ menu and select Custom repositories
  4. Add repository URL: https://github.com/0xAHA/solar-bar-card
  5. Category: Lovelace
  6. Click Install
  7. Restart Home Assistant

Method 2: Manual Installation

  1. Download solar-bar-card.js and solar-bar-card-palettes.js from latest release
  2. Copy both files to <config>/www/
  3. Add resource to dashboard:
    resources:  - url: /local/solar-bar-card.js    type: module
  4. Restart Home Assistant

Note: Both .js files are required as of v1.0.8 for the color palette system.


๐ŸŽฏ Quick Start

Basic Setup

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
import_entity: sensor.grid_import_power

With Color Palette

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
import_entity: sensor.grid_import_power
color_palette: ocean-sunset
show_legend: true

Full Featured Setup

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
import_entity: sensor.grid_import_power
color_palette: garden-fresh
show_header: true
header_title: "Solar Power"
show_weather: true
weather_entity: weather.home
show_stats: true
show_legend: true
show_legend_values: true
show_bar_values: true
ev_charger_sensor: sensor.ev_charger_power
car_charger_load: 7.4
use_solcast: true

โš™๏ธ Configuration Options

Option Type Default Description
inverter_size number 10 ๐Ÿ”‹ Maximum solar system capacity (kW)
production_entity string null โ˜€๏ธ Solar production power sensor (required)
self_consumption_entity string null ๐Ÿ  Home power consumption sensor (required)
grid_power_entity string null โšก Combined grid sensor (positive=export, negative=import) - overrides separate import/export sensors. (optional/alternative)
invert_grid_power boolean false โšก Inverts grid_power_entity sensor import/export value. (optional)
export_entity string null โšก Grid export power sensor (optional/alternative)
import_entity string null ๐Ÿ“ฅ Grid import power sensor (optional/alternative)
ev_charger_sensor string null ๐Ÿ”Œ Active EV charger power sensor (optional)
car_charger_load number 0 ๐Ÿš— EV charger capacity in kW (for potential display)
use_solcast boolean false โ˜๏ธ Auto-detect Solcast forecast sensor
forecast_entity string null ๐Ÿ“ˆ Solar forecast power sensor
color_palette string "classic-solar" ๐ŸŽจ Preset color scheme (see Color Palettes section)
custom_colors object {} ๐ŸŽจ Override individual colors (see Color Palettes section)
show_header boolean false ๐Ÿ“ Display card title
header_title string "Solar Power" ๐Ÿท๏ธ Custom title text
show_weather boolean false ๐ŸŒก๏ธ Display current temperature
weather_entity string null ๐ŸŒค๏ธ Weather or temperature sensor
header_sensor_1 object null ๐Ÿ“ First header sensor {entity, name, icon, icon_color, unit}
header_sensor_2 object null ๐Ÿ“ Second header sensor {entity, name, icon, icon_color, unit}
import_history_entity string null ๐Ÿ“Š Daily grid import energy sensor (kWh)
export_history_entity string null ๐Ÿ“Š Daily grid export energy sensor (kWh)
show_net_indicator boolean true ๐Ÿ”ด๐ŸŸข Show net import/export indicator on tiles
show_stats boolean false ๐Ÿ“Š Display power statistics tiles
show_legend boolean true ๐ŸŽจ Display color-coded legend
show_legend_values boolean true ๐Ÿ”ข Show kW values in legend
show_bar_label boolean true ๐Ÿท๏ธ Show power distribution label above bar
show_bar_values boolean true ๐Ÿ“Š Show kW values on bar segments

๐ŸŽจ Color Palettes

Available Palettes

The card includes 6 carefully designed soft pastel color palettes:

Palette Icon Description Best For
classic-solar ๐ŸŒž Bright, traditional solar colors Clear, professional dashboards
soft-meadow ๐ŸŒธ Gentle pastels with spring vibes Light, airy themes
ocean-sunset ๐ŸŒŠ Warm sunset meets cool ocean Balanced, harmonious displays
garden-fresh ๐ŸŒฟ Natural greens and soft tones Eco-friendly, natural aesthetics
peachy-keen ๐Ÿ‘ Warm peach and lavender blend Warm, inviting interfaces
cloudy-day โ˜๏ธ Soft, cloudy sky palette Subtle, minimal designs
custom ๐ŸŽจ Define your own colors Complete customization

Using Presets

Simply specify the palette key:

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
color_palette: ocean-sunset

Custom Color Overrides

Override specific colors while keeping the palette base:

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
color_palette: classic-solar
custom_colors:
  solar: '#FFA500'      # Override just solar to orange
  ev_charge: '#FF6347'  # Override just EV to tomato red

Fully Custom Colors

Use the custom palette and define all colors:

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
color_palette: custom
custom_colors:
  solar: '#FFE082'
  export: '#A5D6A7'
  import: '#FFAB91'
  self_usage: '#B39DDB'
  ev_charge: '#81D4FA'

Color Mappings

Color Key Used For Example Hex
solar Solar production, forecast indicator #FFE082
export Grid export (blue bar) #A5D6A7
import Grid import (coral/red bar) #FFAB91
self_usage Solar self-consumption (green bar), EV ready icon #B39DDB
ev_charge EV charging (orange bar), EV ready icon half-power #81D4FA

Using the Visual Editor

In the Home Assistant UI editor:

  1. Add or edit the Solar Bar Card
  2. Expand the ๐ŸŽจ Appearance & Colors section
  3. Select a palette from the dropdown (shows emoji + name)
  4. Optionally expand Custom Color Overrides to tweak individual colors
  5. Use the color picker for visual selection

๐ŸŽจ Understanding the Bar

Segments

Color Meaning When Shown
๐ŸŸขGreen Solar self-consumption Solar power used by your home (excluding EV)
๐ŸŸ Orange EV charging EV power from solar (bright) or grid (darker)
๐Ÿ”ดCoral/Red Grid import Power imported from grid (home usage)
๐Ÿ”ตBlue Grid export Power sent to the grid
โฌœLight Grey Dashed EV potential Additional charger capacity available
๐Ÿ”ณSemi-transparent Unused capacity Available inverter capacity
โšกYellow dotted line Solar forecast Predicted solar production
โšก๐Ÿš—EV Ready Icon Excess solar ready Appears when excess solar can power EV (green/orange glow)

v2.0.1 Solar Bar Visualization:

  • When solar output < consumption: Dashed outline shows total demand, solid shaded section shows actual solar contribution
  • Grid import no longer appears on solar bar (keeps it focused on solar performance)
  • Grid icon dynamically changes: ๐ŸŸข green when exporting, ๐ŸŸ  orange when importing

Power Flow Logic

The card intelligently splits power consumption to show you exactly where your energy is coming from:

  • Home consumption from solar (green) - Your house running on sunshine
  • Home consumption from grid (coral) - Grid power for your house
  • EV consumption from solar (bright orange) - Your car charging on sunshine
  • EV consumption from grid (darker orange) - Grid power for your car

This gives you instant visibility into how much of your consumption (home + EV) is solar-powered vs grid-powered!


๐ŸŒค๏ธ Weather Integration

Weather Entity (Dynamic Icons)

show_weather: true
weather_entity: weather.home

Supported weather states:

  • โ˜€๏ธ Sunny
  • โ›… Partly cloudy
  • โ˜๏ธ Cloudy
  • ๐ŸŒฆ๏ธ Rainy
  • ๐ŸŒง๏ธ Pouring
  • โ›ˆ๏ธ Thunderstorm
  • ๐ŸŒจ๏ธ Snowy
  • ๐ŸŒซ๏ธ Fog
  • ๐Ÿ’จ Windy
  • ๐ŸŒ™ Clear night

Temperature Sensor (Thermometer Icon)

show_weather: true
weather_entity: sensor.outdoor_temperature

๐Ÿš— EV Charger Integration

Smart Power Flow Visualization

When you have an active EV charger sensor, the card automatically splits the EV charging power into solar vs grid:

ev_charger_sensor: sensor.ev_charger_power
car_charger_load: 7.4

What you see:

  • Bright orange segment - EV power coming from solar
  • Darker orange segment - EV power coming from grid
  • Green segment - Home consumption from solar (excluding EV)
  • Coral segment - Home consumption from grid (excluding EV)

This gives you instant visibility into whether your EV is charging on sunshine or grid power!

EV Ready Indicator

When excess solar is available and you're not currently charging:

  • Orange โšก๐Ÿš— - Excess solar can cover 50%+ of your EV charger capacity
  • Green โšก๐Ÿš— - Excess solar can fully power your EV charger

Perfect for knowing when to plug in!

Potential Capacity (Grey Dashed Bar)

Shows additional charging capacity available beyond current export:

car_charger_load: 7.4

The grey dashed bar intelligently shows only the additional power needed. For example:

  • Currently exporting 2kW
  • Charger capacity is 7.4kW
  • Grey bar shows: 5.4kW (the extra power needed)

๐Ÿ“ˆ Solar Forecast Integration

Solcast (Auto-Detection)

use_solcast: true

Automatically finds Solcast forecast sensors like:

  • sensor.solcast_pv_forecast_power_now
  • sensor.solcast_forecast_power_now
  • sensor.solcast_power_now

Note: The forecast indicator only appears when the forecasted power exceeds your current production.

Custom Forecast

forecast_entity: sensor.your_forecast_power_sensor

The forecast appears as a yellow vertical dotted line with lightning bolt (โšก) showing predicted solar production.


๐Ÿ”ง Troubleshooting

๐Ÿ’ฅ Card Not Appearing

  1. Clear browser cache: Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac)
  2. Verify resource: Developer Tools โ†’ Resources
  3. Check console: F12 โ†’ Console tab for errors
  4. Ensure both files are present: Both solar-bar-card.js and solar-bar-card-palettes.js must be in /config/www/

๐ŸŽจ Colors Not Changing

  1. Clear browser cache - Color changes require a hard refresh
  2. Verify both files are installed - The palette system needs both .js files
  3. Check palette name - Must match exactly (e.g., ocean-sunset not ocean_sunset)
  4. Inspect custom_colors format - Must use hex format #RRGGBB

โš™๏ธ Expandable Sections Not Showing

  • Check Home Assistant version - Requires HA 2023.9 or later
  • The visual editor needs the type: "expandable" fields to render properly
  • You can still configure via YAML without the UI sections

โŒ Wrong Values Displayed

  • โœ… Ensure sensors report in W or kW units
  • โœ… Card automatically converts W โ†’ kW
  • โœ… Verify entity IDs are correct
  • โœ… Check that production_entity is a power sensor (not energy/kWh)
  • โœ… Import sensor is optional but recommended for accurate grid import display

๐Ÿ“Š Using Cumulative Sensors (kWh)

If your inverter only provides total energy sensors, create derivative helpers:

  1. Settings โ†’ Devices & Services โ†’ Helpers
  2. Create Helper โ†’ Derivative
  3. Configure:
    • Input sensor: Your cumulative sensor
    • Time window: 5 minutes
    • Unit time: Hours
  4. Use the derivative sensor in your card config

This converts kWh accumulation โ†’ instantaneous kW power!


๐ŸŽฏ Example Configurations

Minimalist

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
color_palette: cloudy-day
show_legend: false
show_bar_label: false
show_bar_values: false

Dashboard Hero

type: custom:solar-bar-card
inverter_size: 13.2
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
import_entity: sensor.grid_import_power
color_palette: garden-fresh
show_header: true
header_title: "๐Ÿก Home Solar"
show_weather: true
weather_entity: weather.forecast_home
show_stats: true
show_legend: true
show_legend_values: true
show_bar_values: true
ev_charger_sensor: sensor.wallbox_power
car_charger_load: 11
use_solcast: true

EV Focus

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_load
export_entity: sensor.grid_export
import_entity: sensor.grid_import
color_palette: peachy-keen
show_header: true
header_title: "โšก Solar + EV"
ev_charger_sensor: sensor.ev_charger_power
car_charger_load: 7.4
show_legend: true
show_stats: true
show_bar_values: true
custom_colors:
  ev_charge: '#FF6B35'  # Make EV charging stand out

Ocean Theme

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
color_palette: ocean-sunset
show_header: true
header_title: "โ˜€๏ธ Ocean Power"
show_weather: true
weather_entity: weather.home
show_legend: true
show_bar_label: true

With Net Import/Export History

Track your daily energy balance with net position indicator:

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
grid_power_entity: sensor.grid_power
show_stats: true
show_legend: true
# Daily energy sensors (create with Utility Meter helper)
import_history_entity: sensor.daily_grid_import
export_history_entity: sensor.daily_grid_export
show_net_indicator: true

Result: Import/Export tiles show:

  • Current power (e.g., "1.2 kW")
  • Daily total (e.g., "+4.2 kWh" or "-3.1 kWh")
  • Green/red indicator showing net position

With Header Sensors

Add custom sensors like electricity price or forecast to the header:

type: custom:solar-bar-card
inverter_size: 10
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
export_entity: sensor.grid_export_power
show_header: true
header_title: "Solar"
show_weather: true
weather_entity: weather.home
header_sensor_1:
  entity: sensor.solcast_forecast_today
  name: "Forecast"
  icon: "mdi:solar-power"  # MDI icon
  unit: "kWh"
header_sensor_2:
  entity: sensor.electricity_price
  name: "Rate"
  icon: "๐Ÿ’ฐ"  # Emoji also works
  unit: "ยข/kWh"

Result: Header shows spread layout with both MDI icons and emoji:

โ˜€๏ธ Solar     ๐Ÿ”† Forecast: 12.5kWh     ๐Ÿ’ฐ Rate: 8.5ยข/kWh     โ˜๏ธ 72ยฐF

Icon Options:

  • Emoji: Use any emoji like "โšก", "๐Ÿ’ฐ", "๐Ÿ”‹", etc.
  • MDI Icons: Use Material Design Icons like "mdi:solar-power", "mdi:car-electric", "mdi:cash", etc.

Icon Color Options:

  • Direct color: icon_color: "#ff5722" or icon_color: "red"
  • Entity state: icon_color: "state" (uses the entity's state value as the color)
  • Entity attribute: icon_color: "attributes.rgb_color" (uses an attribute from the entity)
    • For RGB arrays like [255, 87, 34], it automatically converts to rgb(255, 87, 34)

Advanced Examples:

# Static color
header_sensor_1:
  entity: sensor.solar_power
  name: "Solar"
  icon: "mdi:solar-power"
  icon_color: "#ff9800"  # Orange
  unit: "kW"

# Dynamic color from entity state
header_sensor_1:
  entity: sensor.dynamic_color  # Entity state is "#ff5722"
  name: "Status"
  icon: "mdi:information"
  icon_color: "state"  # Uses the entity's state as color

# Color from entity attribute (like RGB lights)
header_sensor_1:
  entity: light.rgb_light
  name: "Light"
  icon: "mdi:lightbulb"
  icon_color: "attributes.rgb_color"  # Uses light's RGB attribute
  unit: ""

# Using template sensor for dynamic colors
header_sensor_1:
  entity: sensor.electricity_price
  name: "Price"
  icon: "mdi:cash"
  icon_color: "attributes.icon_color"  # Template sensor sets color based on price
  unit: "ยข/kWh"

Create a template sensor for dynamic colors:

template:
  - sensor:
      - name: "Electricity Price with Color"
        state: "{{ states('sensor.electricity_price') }}"
        unit_of_measurement: "ยข/kWh"
        attributes:
          icon_color: >
            {% set price = states('sensor.electricity_price') | float %}
            {% if price < 10 %}
              #4caf50
            {% elif price < 20 %}
              #ff9800
            {% else %}
              #f44336
            {% endif %}

Full Featured with Everything

type: custom:solar-bar-card
inverter_size: 13.2
production_entity: sensor.solar_production_power
self_consumption_entity: sensor.home_consumption
grid_power_entity: sensor.grid_power
color_palette: garden-fresh
show_header: true
header_title: "๐Ÿก Solar"
show_weather: true
weather_entity: weather.home
header_sensor_1:
  entity: sensor.daily_solar_yield
  name: "Today"
  icon: "โ˜€๏ธ"
  unit: "kWh"
show_stats: true
show_legend: true
show_legend_values: true
show_bar_values: true
import_history_entity: sensor.daily_grid_import
export_history_entity: sensor.daily_grid_export
show_net_indicator: true
ev_charger_sensor: sensor.wallbox_power
car_charger_load: 11
use_solcast: true

๐Ÿค Contributing

Contributions welcome! Feel free to:

  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest features
  • ๐ŸŽจ Submit new color palettes
  • ๐Ÿ”ง Submit pull requests

Please open an issue for discussion first.

Adding Your Own Palette

Want to contribute a new color palette? Edit solar-bar-card-palettes.js:

export const COLOR_PALETTES = {
  'my-awesome-palette': {
    name: 'My Awesome Palette',
    icon: 'โœจ',
    description: 'Your amazing color scheme',
    colors: {
      solar: '#XXXXXX',
      export: '#XXXXXX',
      import: '#XXXXXX',
      self_usage: '#XXXXXX',
      ev_charge: '#XXXXXX'
    }
  },
  // ... existing palettes
};

Submit a PR with your palette for consideration!


๐Ÿ“ License

MIT License - see LICENSE file for details


๐Ÿ™ Credits

  • Inspired by the pool-monitor-card
  • Built for the Home Assistant community
  • Maintained by @0xAHA

๐Ÿ“Š Version History

v2.1.1 (Current)

  • ๐Ÿ› Card Transparency Fix - Fixed issue where card would become transparent when using Home Assistant themes
  • ๐ŸŽจ Theme Compatibility - Card now properly respects theme background colors

v2.1.0

  • ๐Ÿ“Š Net Import/Export History - Track daily energy with import/export history sensors
  • ๐Ÿ”ด๐ŸŸข Net Position Indicator - Green/red dot on tiles showing if you're a net exporter or importer
  • ๐Ÿ“ˆ Daily Totals on Tiles - Second line showing daily kWh on import/export tiles
  • ๐Ÿ“ Header Sensors - Add up to 2 custom sensors to the header bar
  • ๐ŸŽฏ Spread Layout - Header items evenly distributed (title, sensors, weather)
  • ๐Ÿ–ฑ๏ธ Clickable Sensors - Header sensors open entity history on click

v2.0.8

  • โš–๏ธ Bar Width - Fixed bar width when battery bar hidden
  • ๐ŸŽจ More Colours! - Added more diverse profiles to the colour palette

v2.0.6

  • โš–๏ธ Decimal Precision - Added configurable decimal places (1, 2 or 3 decimal places)

v2.0.5

  • ๐Ÿ› Battery Flow Animation - Fixed misaligned flow animation between battery and solar bars
  • ๐ŸŽฏ Smoother Animation - Improved flow animation with bigger particles and better overlap for mobile visibility
  • ๐Ÿท๏ธ Solar Text Overlap - Fixed "Solar" label overlapping with kW values when bar values are shown

v2.0.4

  • ๐Ÿ› Battery SoC - Fixed battery SoC value showing too many decimal places - now just one!
  • ๐Ÿšฆ More-Info - Clicking any of the card elements now shows the more-info (history graph) for the related entity

v2.0.3

  • ๐Ÿ› Grid Power display Bugfix - Fixed incorrect grid import display when battery is charging

v2.0.2

  • ๐Ÿ› Battery Display Bugfix - Battery showing on solar bar when charging from grid

v2.0.1

  • ๐Ÿ› Battery Discharge Bugfix - Fixed battery discharge incorrectly showing as solar import
  • ๐Ÿšฆ Smart Grid Icon - Separated import/export icons (๐ŸŸข green when exporting, ๐ŸŸ  orange when importing)
  • ๐Ÿ“Š Improved Solar Visualization - Dashed line shows full consumption demand, shaded portion shows actual solar output
  • โš–๏ธ Better Balance - Battery section capped at 30% card width to keep solar as the hero
  • ๐ŸŽจ Cleaner Grid Logic - Solar export shows on solar bar, grid import no longer clutters it

v2.0.0

  • ๐Ÿ”‹ Battery Integration - Side-by-side adjacent bars layout with proportional widths
  • ๐Ÿ“Š Proportional Bar Sizing - Battery and solar bars sized based on capacity ratios
  • ๐Ÿ”Œ Flexible Battery Configuration - Single sensor with optional invert OR dual charge/discharge sensors
  • โšก Animated Flow Lines - Visual charging/discharging indicators between bars
  • ๐Ÿ“‰ Optimized Stats Tiles - Limited to 4 tiles with single-line headers (Solar, Import/Export, Usage, Battery/EV)
  • ๐Ÿท๏ธ Compact Labels - Shortened legend labels to prevent wrapping (Solar, Import, Export, Usage, Batt, EV)
  • ๐ŸŽจ Battery Bar Color - Added to all 7 color palettes
  • ๐Ÿ“ฑ Mobile-Friendly - Battery label shows just percentage on small screens
  • ๐ŸŽจ Clean Config UI - Removed emojis, organized sections with clear separators

v1.0.9

  • โœจ Improved Configuration UI - Well-organized sections with emoji visual grouping
  • ๐ŸŽจ Fixed Color Palette Selector - Color palette is now clearly visible and accessible
  • ๐Ÿ“ Better Organization - Entity, EV Charger, Forecast, Appearance, and Display sections with emoji icons (โš™๏ธ ๐Ÿ”Œ ๐Ÿš— ๐Ÿ”ฎ ๐ŸŽจ ๐Ÿ‘๏ธ)
  • โœ… Universal Compatibility - Works across all Home Assistant versions
  • โœ… Full Backward Compatibility - Existing configs work without changes

v1.0.8

  • ๐ŸŽจ 6 Beautiful Color Palettes - Soft pastel themes with visual selector
  • ๐ŸŽจ Custom Color Overrides - Fine-tune individual colors while keeping palettes
  • ๐ŸŒˆ Color Picker Integration - Visual color selection in UI
  • ๐Ÿ“ฆ Separate Palette File - Clean architecture with solar-bar-card-palettes.js
  • โœ… Full Backward Compatibility - Existing configs work without changes

v1.0.7

  • โœจ Invert Grid Power Values - Enable if your grid sensor reports from meter perspective (positive=import, negative=export) - for Enphase, Powerly, etc.

v1.0.2

  • โœจ Manual entity configuration (removed Growatt auto-detection)
  • ๐Ÿ“ฅ Added grid import sensor support
  • ๐ŸŒ™ Idle/standby state detection
  • ๐ŸŽจ Softer color scheme (amber EV charging)
  • ๐Ÿ“Š Toggle for bar segment values
  • ๐Ÿงฎ Smart EV potential calculation (accounts for export)
  • โšก Improved Solcast integration (uses power_now sensor)
  • ๐Ÿ“ Tighter vertical spacing for better layout
  • ๐Ÿ”ง Refined stats tiles (shows either import OR export)

v1.0.0

  • โœจ Initial release
  • ๐Ÿš— EV charger support
  • ๐ŸŒค๏ธ Weather integration
  • ๐Ÿ“ˆ Solar forecast display
  • ๐ŸŽจ Fully customizable display

๐Ÿ“Š Known Issues

None currently! ๐ŸŽ‰

Report issues at: https://github.com/0xAHA/solar-bar-card/issues


Made with โ˜€๏ธ for the Home Assistant community

About

Home Assistant card for representing rooftop solar systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published