Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Home Assistant Sunsynk Power Flow Card and Dashboard

Featured Replies

  • Author

Updates

  • Card can now be installed via HACS
  • Card configuration attributes have been updated and entities moved to own section.
  • Automatic card resize when show_solar: no and cardstyle: lite
  • Changes to svg path elements and layout

See updates on the the first post.

  • Replies 591
  • Views 127.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • thank you @slipx, I've been using the power flow card for a while now but didn't know about the animations. now thanks your examples I've implemented the animations. I use a generator on my AUX port

  • I've made  a small update to the Dashboard. The load shedding card shows remaining time based on battery SOC and battery power. You will need to create some template sensors as discussed here and prov

  • Here's a slight contribution to the goodness on this thread which lives on my main HA screen: type: custom:bar-card entities: - entity: sensor.load_shedding_area_eskde_4_sandownext10cityofj

Posted Images

3 hours ago, slipx said:

Updates

  • Card can now be installed via HACS
  • Card configuration attributes have been updated and entities moved to own section.
  • Automatic card resize when show_solar: no and cardstyle: lite
  • Changes to svg path elements and layout

Brilliant. I am busy building a solar monitoring "bootstrap" for home assistant and I am definitely including this card.

My idea is to setup a basic system and then make a HA Backup.

The idea is to help new users to simply restore a backup that includes all the plugins and resources to get a fully functional monitoring desktop up and running, complete with graphs,charts, config screens etc.

After that people can modify and tweak the contents to work for them.

 

 

 

  • Author

More Updates

  • Add panel_mode attribute: yes/no. Removes any card height restrictions for better card scaling. For use with Panel(1 card) view types or grid layouts.
  • Update grid_status_194 attribute. Now accepts 1/0 or `on/off`

Example of panel_mode: yes and grid card

image.thumb.png.3fc98baf41414735244183ede2a930b7.png

15 hours ago, slipx said:

Card can now be installed via HACS

How do you install it from HACS? I searched on Hacs and I do not find it. I have a manual install but would like to switch to HACS so I can do upgrades in the future without manually copying and changing everything

  • Author
2 hours ago, iiznh said:

How do you install it from HACS? I searched on Hacs and I do not find it. I have a manual install but would like to switch to HACS so I can do upgrades in the future without manually copying and changing everything

I'm still waiting for it to be added to the store. For now you can add it as a custom repository, under Frontend. Click the 3 dots on the right and select custom repositories. Add the github link and the category is lovelace.

  • Author

New release v1.1.0

  • 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.

image.thumb.png.57db07c7a81a96aaacdb22ab879cab91.png

  • Author

New Version 1.1.3
Updates

  • Improve text displayed when batteries are charging
  • Merge pull request 14. Refactor inverter state logic. Thanks @Sparkz0629
  • Merge pull request 12. Add card configuration example to README. Thanks @Sparkz0629
  • Author

New Release v1.2.0

NOTE: This release changes the card configuration. Please see the README

Updates:
 

  • Choose between two inverter images (modern or Sunsynk)
  • Colour options for all card objects
  • Supports inverted battery power i.e. -discharge, +charge

 

image.png.72e2aef1538e9af0dd85c5b8d54a41b4.png

  • Author

New Release v1.2.1
NOTE: The card configuration has changed from release v1.2.0. Please see the README

Updates:
 

  • Daily totals can now be toggled independently.
  • Option to hide "AUX" from the full card
  • Realign PV data to avoid overlap
  • Daily load is displayed on the full card if "AUX" is hidden and the load show_daily attribute is set to yes
  • Add more verbose inverter status message i.e Normal, Fault etc

 

image.thumb.png.787db8ab4808645cb4cf6721ebe6f471.png

  • Author

New Release v1.2.2
NOTE: The card configuration has changed from release v1.2.0. Please see the README

Updates:

 

  • Grid Connected /Grid Disconnected status now displayed with separate icons ( "mdi-powerline" / "mdi-powerline-off")
  • Grid Disconnected dot removed and instead the "grid disconnected" icon colour can be configured through the card config to match your colour scheme

image.png.2d447b0bc9e4c40182e7b828a7746af2.png

 

Edited by slipx

  • Author

New Release

This release contains breaking changes. See the README for additional required card attributes
v1.3.0 Updates

  • Display up to four mppts through new solar configuration attribute mppts (one, two, three, four).
  • Add option to hide non-essential from full card and reposition daily grid when enabled.
  • The simple card has been removed. This view can be created using the full card and setting show_aux: no and show_nonessential: no.
  • Add option to invert AUX power. Set to yes if your sensor provides a positive number for AUX input and negative number for AUX output.

image.png.7b332d8146531958b3a6114d502d2773.png

 

  • Author

Please note card configuration changes for this release. Refer to the README

v1.3.3 Updates

  • New card options for grid - show_daily_buy: 'yes' and show_daily_sell: 'yes'. These replace the old show_daily attribute
  • New sensor entity added - grid_sell_day_77
  • Daily Grid Sell Total displayed on the card
  • Ability to toggle on/off "Daily Grid Buy" and "Daily Grid Sell" independently

image.thumb.png.dcfcae2b2abb56c542a80e14b507593d.png

  • Author

v1.3.5 - NOTE: This update renames the ess_power: to essential_power and introduces a new nonessential_power attribute. Please update your card configuration

Updates
Internal calculations for essential and non-essential power will be ignored if sensors are specified e.g. Solar Assistant provides sensors for these two attributes. Setting the attribute values to none will use the internal card logic to calculate.

v1.4.1 
Updates

  • Improve AUX flow
  • Nearly all card entities are clickable if associated with a valid Home Assistant entityID

Hi,

Thanks for this amazing card.

I have very limited HA experience and I'm using the sensors for my Sunsynk in HA pulled from the e-linter dongle using Gary Waterworth's integration.

I use the export to essential load feature, but I cannot find the right sensor or attribute that will help me calculate the inverter_load_grid_169 entity. Is this not possible with the wifi data logger, or is there some way to get that info from the inverter via the logger?

 

thanks again!

Edited by HardeHout

  • Author

Hi.

Best would be to ask Gary in this thread. I don't know if its exposed through his integration. Here is the extract from the documentation for the description of that modbus register.

167

L1

Grid side L1 power

R

 

1W

int Signed int

168

L2

Grid side L2 power

R

 

1W

int Signed int

169

L1L2

Total power of grid side L1L2

 

R

 

1W

int 00

Signed int

> 0 BUY

< 0 SELL

 

 

  • Author

v1.4.3
Update - Please note the breaking change, show_solar has been moved to the root config.

  • Optimizes the card configuration and includes smarter attribute error checking.
  • README updated to show required/optional attributes and their default values.
  • Card configuration examples have been updated

v1.4.4

Updates

  • Adds sensor for battery current
  • Adjustments to battery layout to accommodate battery current

image.png.f1454a243c9b565261243bc1b5e14549.png

Edited by slipx

  • Author

v1.4.6
Add new card option large_font: to increase the size of the displayed sensor data. Default is no. Set to yes to enable. See README and example card config for more information

image.thumb.gif.683f1b11d81571283fd843f0d02bd72d.gif

hello, i wonder if this will work with the solarman integration for Deye inverters. can anyone tell me if it can be configured to use the solarman entities to  be the sensors for this energy card?

would anyone be willing to help me remotely set this up on my HA with the solarman entities? im not so good with coding and making changes like this. so im willing to pay for such service :)

thanks for any help or info.

  • Author

Yes it does work with Solarman. Have a look at the github WIKI. There are some videos to help guide you with installing the card. You need to create two template sensors and you can also use the card config below. Also have a look here

 

sensors:
  sunsynkcard_gridstatus:
    friendly_name: Gridstatus
    value_template: |
      {% if is_state('sensor.solarman_grid_connected_status', 'On-Grid') %}
        1
      {% else %}
        0
      {% endif %}
  sunsynkcard_inverterstatus:
    friendly_name: InverterStatus
    value_template: |
      {% if is_state('sensor.solarman_running_status', 'Stand-by') %}
        0
      {% elif is_state('sensor.solarman_running_status', 'Self-Checking') %}
        1
      {% elif is_state('sensor.solarman_running_status', 'Normal') %}
        2
      {% elif is_state('sensor.solarman_running_status', 'Fault') %}
        4
      {% endif %}

and here is the card config

 

type: custom:sunsynk-power-flow-card
cardstyle: lite
panel_mode: 'no'
show_solar: 'yes'
battery:
  energy: 15960
  shutdown_soc: 20
  show_daily: 'yes'
solar:
  show_daily: 'yes'
  mppts: two
load:
  show_daily: 'yes'
  show_aux: 'no'
grid:
  show_daily_buy: 'yes'
entities:
  batchargeday_70: sensor.solarman_daily_battery_charge
  batdischargeday_71: sensor.solarman_daily_battery_discharge
  loadday_84: sensor.solarman_daily_load_consumption
  grid_buy_day_76: sensor.solarman_daily_energy_bought
  grid_sell_day_77: sensor.solarman_daily_energy_sold
  solarday_108: sensor.solarman_daily_production
  inverter_grid_voltage_154: sensor.solarman_grid_voltage_l1
  inverter_load_freq_192: sensor.solarman_load_frequency
  inverter_out_164: sensor.solarman_current_l1
  inverter_out_175: sensor.solarman_total_power
  inverter_load_grid_169: sensor.solarman_total_load_power
  pv1_power_186: sensor.solarman_pv1_power
  pv2_power_187: sensor.solarman_pv2_power
  pv3_power_188: none
  pv4_power_189: none
  battery_voltage_183: sensor.solarman_battery_voltage
  battery_soc_184: sensor.solarman_battery_soc
  battery_out_190: sensor.solarman_battery_power
  essential_power: sensor.solarman_total_load_power
  battery_current_191: sensor.solarman_battery_current
  grid_external_power_172: sensor.solarman_total_grid_power
  pv1_v_109: sensor.solarman_pv1_voltage
  pv1_i_110: sensor.solarman_pv1_current
  pv2_v_111: sensor.solarman_pv2_voltage
  pv2_i_112: sensor.solarman_pv2_current
  pv3_v_113: none
  pv3_i_114: none
  pv4_v_115: none
  pv4_i_116: none
  grid_status_194: sensor.sunsynkcard_gridstatus
  inverter_status_59: sensor.solarman_running_status
  aux_power_166: sensor.aux_output_power

 

Edited by slipx

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.