Sunsynk + Home Assistant

hey @Slip

Great addon budd.

One weird thing, when selecting the simple cardstyle, it looks like im getting two overlayed battery images...

1683270880021.png


All the other cardstyles look good.
 
Same issue here, seems like it might have been something on version 1.1.0. Wasn't like that before.
 
Sorry about that. Will take a look and see what I broke .

That's weird. I cant replicate this. Does anyone else experience this? @Sparkz0629 can you try clear your browser cache?

Found the problem
 
Last edited:
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.

1683277355354.png
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.
 
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
 
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

I am no export on this....

Here is how I would approach it.
Lite card: Move the pv1 to the left into empty space, increase the rectangle to fit wattage(big text), voltage and amp, keeping txt size for both as it is now in rectangle. Same with pv2, just move it to the right.
simple and full card, you can move the combined wattage down a bit, increase the rectangle to fit wattage(big text), voltage and amp, keeping txt size for both as it is now in rectangle.

Hope it makes sense and gives you some direction.
 
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.

Looks great

Thanks
 
For those using, https://github.com/kellerza/sunsynk, I have done the following to create the sensors for use_timer_248 and priority_load_243. The timer needs to be created with a custom sensor by folowing this https://kellerza.github.io/sunsynk/reference/mysensors.

Here is the contents of my "mysensors.py" file:
Python:
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"}
           )

Because both sensor are created as a select sensor, the used templates to create the switches

YAML:
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 %}

Might need to repalce "select.ss_priority_mode" and "select.ss_use_timer" with the ones you have.
 
@Slip , i hope you dont mind, i opened some contributions to your project. Feel free to reject if you dont like them
 
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

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.

Edit: Just fyi, I don't have anything on non-essential which is why I love this card's customisability so much

I haven't built helpers for the daily stats so switched those off in the meantime.

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'

1683293021534.png



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

1683292971437.png
 
Last edited:
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
 
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
:laugh: really noob question - where/how do I multiply it by -1
 
Top
Sign up to the MyBroadband newsletter
X