ha-appliance-electromenager-cards

Solar house (energy flow)

Animated solar house: midday export, EV charger and water heater, night on battery and grid

custom:appliance-solar-house-card: an animated diagram of a photovoltaic installation: solar panels on the roof, the electrical panel / inverter in the house, a home battery, the grid (electricity poles) and, optionally, an EV charger and a water heater (solar diverter).

Option Description
entity_solar Solar production (W or kW)
entity_home House consumption (optional: otherwise computed = production + import + discharge − export − charge − EV − water heater). A negative value (for example a current clamp that swings around 0) is shown as 0, unless show_negative: true
entity_battery_power Battery power, + = charging, − = discharging (battery_invert: true if your sensor is the other way round)
entity_battery_charge, entity_battery_discharge Instead of entity_battery_power: two separate sensors, charge power and discharge power (both positive, many inverters give them like this). The card uses charge − discharge. Same for each battery with entity_battery_2_charge / entity_battery_2_discharge, entity_battery_3_…
entity_battery_soc Battery level (%)
entity_grid Grid power, + = import, − = export (grid_invert: true to invert); or entity_grid_import + entity_grid_export (two positive sensors)
entity_ev, entity_water_heater Optional: EV charger and water heater power (shown only if set)
battery_capacity Optional: total capacity of the battery(ies) in kWh (e.g. 10). With it, a tile shows the time left: Empty in while discharging (down to battery_min_soc) or Full in while charging (up to 100 %), computed from the charge level, the capacity and the current battery power (3 h 20, 42 min, > 48 h)
battery_min_soc Optional (default 0): the discharge floor in % that the battery should not go below; the Empty in time counts down to this level
entity_backup Optional: power (W) of the backup / EPS output of a hybrid inverter (Growatt, Deye, Huawei, Sungrow…). Adds a shield pill on the house (lit from 10 W) and a Backup tile
entity_offgrid Optional: off-grid status, a binary_sensor (on / true) or an inverter text state (off_grid, island, eps, backup, active). While active, the status badge shows Off-grid, the backup pill gets an orange outline and the tile says Off-grid
entity_car_soc Optional: the car’s battery level (%), shown with the EV charger power in the legend (74 % · 7.4 kW) and in the EV tile; orange below 20 %, red below 10 %
show_negative true shows negative values with their sign: the house consumption as it is (for example -8 W) and the grid with + import / - export (instead of the value without sign and the Import / Export label). Default false
max_power Power at which the dots reach full speed (W, default 6000)
show_tiles, show_status, animations, labels, illustration_size, transparent, language Usual options
type: custom:appliance-solar-house-card
name: Solar house
entity_solar: sensor.solar_power
entity_battery_power: sensor.battery_power      # + = charging
entity_battery_soc: sensor.battery_level
entity_grid: sensor.grid_power                  # + = import, − = export
entity_ev: sensor.wallbox_power                 # optional
entity_car_soc: sensor.car_battery_level        # optional: car level next to the charger
entity_water_heater: sensor.water_heater_power  # optional
entity_backup: sensor.inverter_eps_power          # optional (backup / EPS output)
entity_offgrid: binary_sensor.inverter_off_grid  # optional (off-grid status)

Add it to a dashboard: edit the dashboard → Add card → search for “Solar house” (or Appliance – Single card then pick the type), choose the entities in the visual editor. In YAML: Add card → Manual, paste the example above and replace the entity ids with yours.

Several batteries

Solar house with two home batteries side by side

Up to 3 batteries are drawn side by side:

type: custom:appliance-solar-house-card
entity_solar: sensor.pv_power
entity_battery_power: sensor.venus_1_battery_power
entity_battery_soc: sensor.venus_1_battery_soc
entity_battery_2_power: sensor.venus_2_battery_power
entity_battery_2_soc: sensor.venus_2_battery_soc

← All cards