Configuration
+The card can be configured through the following attributes:
+Attribute |
+Requirement |
+Default |
+Description |
+
---|---|---|---|
type: |
+Required |
+
|
+The custom card |
+
cardstyle: |
+Required |
+
|
+Selects the card layout that is used |
+
panel_mode: |
+Optional |
+
|
+Toggles panel mode setting card height to |
+
large_font: |
+Optional |
+
|
+Increases font size of sensor data |
+
title: |
+Optional |
++ | Set the card title i.e. Inverter One |
+
title_colour: |
+Optional |
++ | Sets the colour of the card title. ( |
+
title_size: |
+Optional |
+
|
+Set the font size for the card title i.e. |
+
show_solar: |
+Optional |
+
|
+Toggle display of solar information |
+
show_battery: |
+Optional |
+
|
+Toggle display of battery information |
+
show_grid: |
+Optional |
+
|
+Toggle display of grid information |
+
card_height: |
+Optional |
+
|
+Only used when |
+
card_width: |
+Optional |
+
|
+Only used when |
+
decimal_places: |
+Optional |
+
|
+Sets the number of decimal places to display when using the |
+
dynamic_line_width: |
+Optional |
+
|
+Adjusts the width of the lines and animated dot based on the ratio of current power to |
+
max_line_width: |
+Optional |
+
|
+Sets the maximum line width when |
+
min_line_width: |
+Optional |
+
|
+Sets the minimum or default line width on the card. Values greater the |
+
inverter: |
+Optional |
+See optional Inverter attributes below |
+List of inverter attributes. |
+
battery: |
+Optional |
+See required Battery attributes below |
+List of battery attributes. Required if |
+
solar: |
+Optional |
+See optional Solar attributes below |
+List of solar attributes. |
+
load: |
+Optional |
+See optional Load attributes below |
+List of load attributes. |
+
grid: |
+Optional |
+See optional Grid attributes below |
+List of grid attributes. |
+
entities: |
+Required |
+See required Entities attributes below |
+List of sensor entities. |
+
Inverter
+Attribute |
+Requirement |
+Default |
+Description |
+
---|---|---|---|
modern: |
+Optional |
+
|
+Display the inverter using the modern image. Set to |
+
colour: |
+Optional |
+
|
+Sets the colour of the inverter and data. Hex codes ( |
+
autarky: |
+Optional |
+
|
+Display autarky and ratio as a percentage using either realtime power or daily energy values. Set to
|
+
model: |
+Optional |
+
|
+Selects which inverter image and status codes to use. Options are |
+
auto_scale: |
+Optional |
+
|
+If set to |
+
three_phase: |
+Optional |
+
|
+If set to |
+
Battery
+To display battery power and current as absolute values set show_absolute: true
. This is set to false by default and
+will return your sensor value. The animated dot will change direction depending on the charging or discharging state.
+The invert_power
attribute can be used to reverse direction if needed by your sensor.
Attribute |
+Requirement |
+Default |
+Description |
+
---|---|---|---|
energy: |
+Required |
+
|
+Total battery energy in Wh (e.g. 3 x 5.32kWh = 15960). If set to |
+
shutdown_soc: |
+Required |
+
|
+The battery shutdown percentage used to calculate remaining runtime. Numeric value or sensor i.e. |
+
shutdown_soc_offgrid: |
+Optional |
++ | Only applies for Goodwe and Huawei inverters. The offgrid battery shutdown percentage used to calculate remaining runtime. Numeric value or sensor i.e. |
+
invert_power: |
+Optional |
+
|
+Set to |
+
colour: |
+Optional |
+
|
+Sets the colour of all the battery card objects. Hex codes ( |
+
charge_colour: |
+Optional |
++ | Sets the colour of all the battery card objects when charging. Hex codes ( |
+
dynamic_colour: |
+Optional |
+
|
+The battery icon colour will change based on the % contribution of the power source (grid, solar) supplying the battery. Set to |
+
linear_gradient: |
+Optional |
+
|
+The blocks inside the battery icon that represent SOC will be coloured using a linear gradient that ranges from red to green |
+
show_daily: |
+Optional |
+
|
+Toggles the daily total |
+
animation_speed: |
+Optional |
+
|
+Set slowest animation speed in seconds, depending on power draw |
+
max_power: |
+Optional |
+
|
+Maximum power draw to calculate animation speed. Numeric value or sensor i.e. |
+
show_absolute: |
+Optional |
+
|
+set to |
+
auto_scale: |
+Optional |
+
|
+If set to |
+
hide_soc: |
+Optional |
+
|
+If set to |
+
show_remaining_energy: |
+Optional |
+
|
+Set to |
+
Solar
+These attributes are only needed if show_solar
is set to true
Attribute |
+Requirement |
+Default |
+Description |
+
---|---|---|---|
colour: |
+Optional |
+
|
+Sets the colour of all the solar card objects. Hex codes ( |
+
show_daily: |
+Optional |
+
|
+Toggles the daily total |
+
display_mode: |
+Optional |
+
|
+
|
+
dynamic_colour: |
+Optional |
+
|
+The solar elements on the card will be greyed out if total solar power < 10W. |
+
mppts: |
+Required |
+
|
+Specify the number of MPPT’s in use |
+
animation_speed: |
+Optional |
+
|
+Set slowest animation speed in seconds, depending on Power produced |
+
max_power: |
+Optional |
+
|
+Maximum power draw to calculate animation speed |
+
pv1_name: |
+Optional |
+
|
+Set the disaply name for MPPT1 |
+
pv2_name: |
+Optional |
+
|
+Set the disaply name for MPPT2 |
+
pv3_name: |
+Optional |
+
|
+Set the disaply name for MPPT3 |
+
pv4_name: |
+Optional |
+
|
+Set the disaply name for MPPT4 |
+
auto_scale: |
+Optional |
+
|
+If set to |
+
Load
+Attribute |
+Requirement |
+Default |
+Description |
+
---|---|---|---|
colour: |
+Optional |
+
|
+Setss the colour of all the load card objects. Hex codes ( |
+
dynamic_colour: |
+Optional |
+
|
+The essential icon colour will change based on the % contribution of the power source (battery, grid, solar) supplying the load. Set to |
+
dynamic_icon: |
+Optional |
+
|
+The essential icon will change when there is 100% contribution from a single power source (battery, grid, solar). Set to |
+
invert_load: |
+Optional |
+
|
+Set to |
+
show_daily: |
+Optional |
+
|
+Toggles the daily total. |
+
show_daily_aux: |
+Optional |
+
|
+Toggles the daily AUX total. Only displayed if |
+
show_aux: |
+Optional |
+
|
+Toggles the display of AUX |
+
invert_aux: |
+Optional |
+
|
+Set to |
+
show_absolute_aux: |
+Optional |
+
|
+set to |
+
animation_speed: |
+Optional |
+
|
+Set slowest animation speed in seconds, depending on Power draw |
+
max_power: |
+Optional |
+
|
+Maximum power draw to calculate animation speed |
+
aux_name: |
+Optional |
+
|
+Set the display name for the AUX Load |
+
aux_type: |
+Optional |
+
|
+Sets the AUX image using preset or any mdi icon e.g. |
+
aux_colour: |
+Optional |
+
|
+Sets the colour of all the AUX card objects. Hex codes ( |
+
aux_off_colour: |
+Optional |
+
|
+Sets the colour of the AUX icon and label when disconnected. Hex codes ( |
+
aux_loads: |
+Optional |
+
|
+Display additional loads on the AUX side ( |
+
aux_load1_name: |
+Optional |
++ | Set the display name for the AUX load 1 |
+
aux_load2_name: |
+Optional |
++ | Set the display name for the AUX load 2 |
+
aux_load1_icon: |
+Optional |
++ | Set the AUX load 1 image using any mdi icon e.g. |
+
aux_load2_icon: |
+Optional |
++ | Set the AUX load 2 image using any mdi icon e.g. |
+
essential_name: |
+Optional |
+
|
+Set the display name for the essential load |
+
additional_loads: |
+Optional |
+
|
+Display additional loads on the essential side ( |
+
load1_name: |
+Optional |
++ | Set the display name for the essential load 1 |
+
load2_name: |
+Optional |
++ | Set the display name for the essential load 2 |
+
load3_name: |
+Optional |
++ | Set the display name for the essential load 3 (Lite card only) |
+
load4_name: |
+Optional |
++ | Set the display name for the essential load 4 (Lite card only) |
+
load1_icon: |
+Optional |
+none |
+Set the essential load 1 image using preset or any mdi icon e.g. |
+
load2_icon: |
+Optional |
+none |
+Set the essential load 2 image using preset or any mdi icon e.g. |
+
load3_icon: |
+Optional |
+none |
+Set the essential load 3 image using any mdi icon e.g. |
+
load4_icon: |
+Optional |
+none |
+Set the essential load 4 image using any mdi icon e.g. |
+
auto_scale: |
+Optional |
+
|
+If set to |
+
Grid
+Attribute |
+Requirement |
+Default |
+Description |
+
---|---|---|---|
colour: |
+Optional |
+
|
+Sets the colour of all the grid card objects. Hex codes ( |
+
grid_name: |
+Optional |
++ | Set the display name for the grid |
+
export_colour: |
+Optional |
++ | Sets the colour of all the grid card objects when exporting (selling) energy. Hex codes ( |
+
no_grid_colour: |
+Optional |
++ | Sets the colour of all the grid card objects when there is no grid power. Hex codes ( |
+
grid_off_colour: |
+Optional |
++ | Sets the colour of the grid icon when the grid is disconnected. |
+
show_daily_buy: |
+Optional |
+
|
+Toggles the daily buy total |
+
show_daily_sell: |
+Optional |
+
|
+Toggles the daily sell total |
+
show_nonessential: |
+Optional |
+
|
+Toggles the display of non-essential |
+
nonessential_icon: |
+Optional |
+
|
+Change the non-essential image using presets or any mdi icon e.g. |
+
nonessential_name: |
+Optional |
+
|
+Set the display name for the non-essential load |
+
additional_loads: |
+Optional |
+
|
+Toggle the display of additional loads on the non-essential side ( |
+
load1_name: |
+Optional |
++ | Set the display name for the non-essential load 1 |
+
load2_name: |
+Optional |
++ | Set the display name for the non-essential load 2 |
+
load3_name: |
+Optional |
++ | Set the display name for the non-essential load 3 |
+
load1_icon: |
+Optional |
+
|
+Change the non-essential load 1 image using presets or any mdi icon e.g. |
+
load2_icon: |
+Optional |
+
|
+Change the non-essential load 2 image using presets or any mdi icon e.g. |
+
load3_icon: |
+Optional |
+none |
+Change the non-essential load 3 image using any mdi icon e.g. |
+
invert_grid: |
+Optional |
+
|
+Set to |
+
show_absolute: |
+Optional |
+
|
+set to |
+
animation_speed: |
+Optional |
+
|
+Set slowest animation speed in seconds, depending on power draw |
+
max_power: |
+Optional |
+
|
+Maximum power draw to calculate animation speed |
+
auto_scale: |
+Optional |
+
|
+If set to |
+
energy_cost_decimals: |
+Optional |
+
|
+Sets the number of decimal places to display the buy and sell energy costs |
+
Entities
+Entity attributes below have been appended with the modbus register # e.g. pv2_power_187
to indicate which Sunsynk
+register should be read when configuring your sensors. Replace the default sensors with your own specific sensor names.
+It is important that your sensors read the expected modbus register value. If you have missing sensors for any attribute
+set it to none i.e. day_pv_energy_108: none
. This will hide the sensor data from the card. To display a placeholder
+with a default value of 0 set it to zero
or any other value i.e. solarday_108: zero
.
See the WIKI for more information on sensor +mappings if using other integration methods.
+Attribute |
+Requirement |
+Default |
+Description |
+
---|---|---|---|
use_timer_248: |
+Optional |
+
|
+Displays “Use timer” status as an icon next to the inverter. Set to |
+
priority_load_243: |
+Optional |
+
|
+Shows if energy pattern is set to priority load or priority battery as an icon next to the inverter. Set to |
+
day_battery_discharge_71: |
+Optional |
+
|
+Daily battery usage (kWh) |
+
day_battery_charge_70: |
+Optional |
+
|
+Daily battery charge (kWh) |
+
day_load_energy_84: |
+Optional |
+
|
+Daily load (kWh) |
+
day_grid_import_76: |
+Optional |
+
|
+Daily grid import (kWh) |
+
day_grid_export_77: |
+Optional |
+
|
+Daily grid export (kWh) |
+
day_pv_energy_108: |
+Optional |
+
|
+Daily solar usage (kWh) |
+
day_aux_energy: |
+Optional |
++ | Sensor that provides the daily AUX energy (kWh) |
+
inverter_voltage_154: |
+Optional |
+
|
+Inverter L1 voltage (V) |
+
inverter_voltage_L2: |
+Optional |
++ | Inverter L2 voltage (V) |
+
inverter_voltage_L3: |
+Optional |
++ | Inverter L3 voltage (V) |
+
load_frequency_192: |
+Optional |
+
|
+Load frequency (Hz) |
+
inverter_current_164: |
+Optional |
+
|
+Inverter L1 current (A) |
+
inverter_current_L2: |
+Optional |
++ | Inverter L2 current (A) |
+
inverter_current_L3: |
+Optional |
++ | Inverter L3 current (A) |
+
inverter_power_175: |
+Optional |
+
|
+Inverter power (W). Required if the essential_power attribute is set to |
+
grid_power_169: |
+Optional |
+
|
+Grid power (W) See NOTE below. Use 167 (Grid LD Power) if non-essential and essential readings are wrong. Required if the nonessential_power attribute is set to |
+
pv1_power_186: |
+Optional |
+
|
+PV string 1 power (W) |
+
pv2_power_187: |
+Optional |
+
|
+PV string 2 power (W) |
+
pv3_power_188: |
+Optional |
+
|
+PV string 3 power (W) |
+
pv4_power_189: |
+Optional |
+
|
+PV string 4 power (W) |
+
pv_total: |
+Optional |
+
|
+Provide a sensor for total pv power. If omitted the card uses internal logic to calculate this based on the pv1-4 power (W) |
+
battery_voltage_183: |
+Optional |
+
|
+Battery voltage (V) |
+
battery_soc_184: |
+Required |
+
|
+Battery state of charge (%) |
+
battery_power_190: |
+Required |
+
|
+Battery power (W). Requires a negative number for battery charging and a positive number for battery discharging. Set the |
+
battery_current_191: |
+Required |
+
|
+Battery current (A) |
+
battery_temp_182: |
+Optional |
+
|
+Battery temperature (℃) |
+
battery_rated_capacity |
+Optional |
++ | Battery rated capacity (Ah). If provided this sensor will be used to calculate battery energy. The |
+
essential_power: |
+Optional |
+
|
+The card will automatically calculate this sensor based on the formula below if the attribute is set to |
+
essential_load1: |
+Optional |
++ | Sensor that contains the power of your essential load 1 (W). Can also be used to display any sensor data i.e. temp, energy etc if |
+
essential_load2: |
+Optional |
++ | Sensor that contains the power of your essential load 2 (W). Can also be used to display any sensor data i.e. temp, energy etc if |
+
essential_load3: |
+Optional |
++ | Sensor that contains the power of your essential load 3 (W). Can also be used to display any sensor data i.e. temp, energy etc if |
+
essential_load4: |
+Optional |
++ | Sensor that contains the power of your essential load 4 (W). Can also be used to display any sensor data i.e. temp, energy etc if |
+
essential_load1_extra: |
+Optional |
++ | Sensor that contains additional information you want displayed for your essential load 1 e.g. Daily kWh, Temperature etc |
+
essential_load2_extra: |
+Optional |
++ | Sensor that contains additional information you want displayed for your essential load 2 e.g. Daily kWh, Temperature etc |
+
load_power_L1: |
+Optional |
++ | Load L1 Power (W) |
+
load_power_L2: |
+Optional |
++ | Load L2 Power (W) |
+
load_power_L3: |
+Optional |
++ | Load L3 Power (W) |
+
nonessential_power |
+Optional |
+
|
+The card will automatically calculate this sensor based on the formula below if the attribute is set to |
+
non_essential_load1: |
+Optional |
++ | Sensor that contains the power of your non-essential load 1 (W) |
+
non_essential_load2: |
+Optional |
++ | Sensor that contains the power of your non-essential load 2 (W) |
+
non_essential_load3: |
+Optional |
++ | Sensor that contains the power of your non-essential load 3 (W) |
+
non_essential_load1_extra: |
+Optional |
++ | Sensor that contains additional information you want displayed for your nonessential load 1 e.g. Daily kWh, Temperature etc |
+
non_essential_load2_extra: |
+Optional |
++ | Sensor that contains additional information you want displayed for your nonessential load 2 e.g. Daily kWh, Temperature etc |
+
grid_ct_power_total: |
+Optional |
++ | For three phase systems. The card will automatically calculate this based on (Grid CT L1 power + Grid CT L2 power + Grid CT L3 power) You can optionally provide your own sensor for total grid power. (W) |
+
grid_ct_power_172: |
+Required |
+
|
+Grid CT L1 power (W) |
+
grid_ct_power_L2: |
+Optional |
+
|
+Grid CT L2 power (W) |
+
grid_ct_power_L3: |
+Optional |
+
|
+Grid CT L3 power (W) |
+
pv1_voltage_109: |
+Optional |
+
|
+PV string 1 voltage (V) |
+
pv1_current_110: |
+Optional |
+
|
+PV string 1 current (A) |
+
pv2_voltage_111: |
+Optional |
+
|
+PV string 2 voltage (V) |
+
pv2_current_112: |
+Optional |
+
|
+PV string 2 current (A) |
+
pv3_voltage_113: |
+Optional |
+
|
+PV string 3 voltage (V) |
+
pv3_current_114: |
+Optional |
+
|
+PV string 3 current (A) |
+
pv4_voltage_115: |
+Optional |
+
|
+PV string 4 voltage (V) |
+
pv4_current_116: |
+Optional |
+
|
+PV string 4 current (A) |
+
grid_connected_status_194: |
+Optional |
+
|
+Grid connected status (case insensitive) |
+
inverter_status_59: |
+Optional |
+
|
+Expects a sensor that contains inverter status represented as a string or number. For Sunsynk |
+
battery_status: |
+Optional |
+
|
+Used only when inverter model is set to |
+
aux_power_166: |
+Optional |
+
|
+Auxilary power (W) |
+
aux_load1: |
+Optional |
++ | Sensor that contains the power of your AUX load 1 (W) |
+
aux_load2: |
+Optional |
++ | Sensor that contains the power of your AUX load 2 (W) |
+
aux_load1_extra: |
+Optional |
++ | Sensor that contains additional information you want displayed for your aux load 1 e.g. Daily kWh, Temperature etc |
+
aux_load2_extra: |
+Optional |
++ | SSensor that contains additional information you want displayed for your aux load 2 e.g. Daily kWh, Temperature etc |
+
aux_connected_status: |
+Optional |
++ | AUX Connected Status |
+
remaining_solar: |
+Optional |
+
|
+The remaining solar forecast for the day (kWh). Use with solar |
+
total_pv_generation: |
+Optional |
++ | Total Solar generation (Lifetime or forecast for the day) (kWh). Use with solar |
+
radiator_temp_91: |
+Optional |
+
|
+Inverter AC temperature (℃) |
+
environment_temp: |
+Optional |
++ | Display outside temperature or other environment temperature below the sun icon |
+
dc_transformer_temp_90: |
+Optional |
+
|
+Inverter DC temperature (℃) |
+
prog1_time: |
+Optional |
+
|
+Program 1 start time ( |
+
prog1_capacity: |
+Optional |
+
|
+Program 1 capacity (SOC) setting |
+
prog1_charge: |
+Optional |
+
|
+Program 1 charge options ( |
+
prog2_time: |
+Optional |
+
|
+Program 2 start time ( |
+
prog2_capacity: |
+Optional |
+
|
+Program 2 capacity (SOC) setting |
+
prog2_charge: |
+Optional |
+
|
+Program 2 charge options ( |
+
prog3_time: |
+Optional |
+
|
+Program 3 start time ( |
+
prog3_capacity: |
+Optional |
+
|
+Program 3 capacity (SOC) setting |
+
prog3_charge: |
+Optional |
+
|
+Program 3 charge options ( |
+
prog4_time: |
+Optional |
+
|
+Program 4 start time ( |
+
prog4_capacity: |
+Optional |
+
|
+Program 4 capacity (SOC) setting |
+
prog4_charge: |
+Optional |
+
|
+Program 4 charge options ( |
+
prog5_time: |
+Optional |
+
|
+Program 5 start time ( |
+
prog5_capacity: |
+Optional |
+
|
+Program 5 capacity (SOC) setting |
+
prog5_charge: |
+Optional |
+
|
+Program 5 charge options ( |
+
prog6_time: |
+Optional |
+
|
+Program 6 start time ( |
+
prog6_capacity: |
+Optional |
+
|
+Program 6 capacity (SOC) setting |
+
prog6_charge: |
+Optional |
+
|
+Program 6 charge options ( |
+
energy_cost_buy: |
+Optional |
++ | Sensor that provides current buy energy cost per kWh |
+
energy_cost_sell: |
+Optional |
++ | Sensor that provides current sell energy cost per kWh |
+
solar_sell_247: |
+Optional |
+
|
+Displays icons to indicate if sell solar is active or not. The switch can be toggled by clicking on the icon ( |
+
grid_voltage: |
+Optional |
+
|
+Sensor providing grid voltage (v). Used only when inverter model is set to |
+
battery_current_direction: |
+Optional |
+
|
+Used only when inverter model is set to |
+
prepaid_units: |
+Optional |
++ | Account balance of prepaid electricity units |
+
The card calculates the sensors below based on supplied attributes in the config so you dont need to define them in Home +Assistant. NOTE if your essential and non-essential readings are innacurate replace sensor 169 with 167. Alternatively +provide the card with sensors that calculate this data i.e essential_power: and nonessential_power:
+If three_phase:false
totalsolar = pv1_power_186 + pv2_power_187 + pv3_power_188 + pv4_power_189
+nonessential = grid_ct_power_172 - grid_power_169
+essential = inverter_power_175 + grid_power_169 - aux_power_166
+
If three_phase:true
totalsolar = pv1_power_186 + pv2_power_187 + pv3_power_188 + pv4_power_189
+ nonessential = grid_ct_power_172 + grid_ct_power_L2 + grid_ct_power_L3 - grid_power_169
+ essential = load_power_L1 + load_power_L2 + load_power_L3
+
The modbus registers can be visualised on the full
card below: