South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.

All sorted. Thank youNo it was a problem with the code. I've pushed another release which fixes it properly
There isn't much space there. I might need to decrease the size of those rectangles. Will also look at that Battery Charging suggestion.Seems to be something in the browser, chrome. Tried even with incognito mode. Even a browser that has never signed into home assistant. On phone it is displaying correct via app, but browser doing the same.
View attachment 1519379
lite, simple and full card.
Small suggestion, if possible, can the voltage and amps maybe moved into the box with wattage of each string of pv box ? Seems to overlap a bit on some cards.
There isn't much space there. I might need to decrease the size of those rectangles. Will also look at that Battery Charging suggestion.
Love the feedback. Keep it coming so we can make the card even better
We all need a bit of colour..![]()
Check out the new release v1.1.0
Updates
- Change the inverter image to create a more unified look and feel.
- Reposition some of the path elements
- Add inverter_colour: attribute to the card config. Customise the look of your card by choosing your own inverter colour.
from sunsynk import AMPS, CELSIUS, KWH, VOLT, WATT
from sunsynk.rwsensors import NumberRWSensor, SelectRWSensor, TimeRWSensor
from sunsynk.sensors import (
MathSensor,
Sensor,
SensorDefinitions,
TempSensor,
)
SENSORS = SensorDefinitions()
SENSORS += SelectRWSensor(
248, "Use timer", options={255: "On", 254: "Off"}
)
switch:
- platform: template
switches:
use_timer:
friendly_name: "Inverter timer"
value_template: "{{ is_state('select.ss_use_timer', 'On') }}"
turn_on:
service: select.select_option
target:
entity_id: select.ss_use_timer
data:
option: 'On'
turn_off:
service: select.select_option
target:
entity_id: select.ss_use_timer
data:
option: 'Off'
icon_template: >-
{% if is_state('select.ss_use_timer', 'On') %}
mdi:timer-outline
{% else %}
mdi:timer-off-outline
{% endif %}
priority_load:
friendly_name: "Inverter priority"
value_template: "{{ is_state('select.ss_priority_mode', 'Load first') }}"
turn_on:
service: select.select_option
target:
entity_id: select.ss_priority_mode
data:
option: 'Load first'
turn_off:
service: select.select_option
target:
entity_id: select.ss_priority_mode
data:
option: 'Battery first'
icon_template: >-
{% if is_state('select.ss_priority_mode', 'Load first') %}
mdi:home-lightning-bolt-outline
{% else %}
mdi:home-battery
{% endif %}
All sorted on both cardstyles (v1.1.2)! well done on the quick resolution.@w1tw0lf and @Sparkz0629 Please try v1.1.1 and let me know if it solved
I've updated the card to include a panel_mode. It removes any card height restrictions for better card scaling. For use with Panel(1 card) view types or grid layouts. @SauRoNZA might work better with your view now. Assuming you have a grid layout. @w1tw0lf I've also update grid_status_194 attribute. Now accepts 1/0 or `on/off`
Example of panel mode layout
YAML:type: custom:sunsynk-power-flow-card cardstyle: lite show_daily: 'no' battery_energy: 15960 battery_shutdown_soc: 20 show_solar: 'yes' panel_mode: 'yes' inverter_colour: grey entities: use_timer_248: 'no' priority_load_243: 'no' batchargeday_70: no batdischargeday_71: no loadday_84: 'no' gridday_76: 'no' solarday_108: no inverter_grid_voltage_154: sensor.grid_voltage inverter_load_freq_192: sensor.grid_frequency inverter_out_164: 'no' inverter_out_175: sensor.load_power inverter_load_grid_169: sensor.grid_inverter_load pv2_power_187: sensor.pv_power_2 pv1_power_186: sensor.pv_power_1 battery_voltage_183: sensor.battery_voltage battery_soc_184: sensor.battery_state_of_charge [B]battery_out_190: sensor.battery_power[/B] ess_power: sensor.load_power_essential grid_external_power_172: sensor.grid_power pv1_v_109: sensor.pv_voltage_1 pv1_i_110: sensor.pv_current_1 pv2_v_111: sensor.pv_voltage_2 pv2_i_112: sensor.pv_current_2 grid_status_194: switch.sonoff_1001898b6c inverter_status_59: no aux_power_166: 'no'


Such a cool card - Thanks
For the SolarAssistant+Deye people, I've mapped some of the entities I've been able to match to what HA receives via MQTT for a Deye 12k 3 Phase.
I haven't built helpers for the daily stats so switched those off in the meantime.
View attachment 1519521
One of the other things I need to figure out is the battery_out_190: sensor.battery_power sensor - I get a single number from SA/MQTT called "Battery Power and the 'power' dot flows in the 'wrong' direction but I can live with it in the meantime
View attachment 1519519
The battery flow going the wrong way is because it needs to be multiplied by -1 i think. My battery power shows as a positive value during loadshedding, and a negative value when we have grid power. The dot flows correctly on mine,
Also, epic idea to post the sample config. Thats actually one of the pull requests i have open on the project, to add a "sample" section that can be copied and pasted in
Add a pull request for this tooWould it be possible to while battery is charging, to only display "charging" and remove "battery runtime" that is below it ?
View attachment 1519217
lols, your guess is as good as mine. Best bet i think is to create a template sensor that takes your current sensor value and multiplies by -1.really noob question - where/how do I multiply it by -1
that's what I thought but hoped you had a lazier methodlols, your guess is as good as mine. Best bet i think is to create a template sensor that takes your current sensor value and multiplies by -1.
Then use this new sensor in the config for the card