Skip to content

Example Card Configurations

slipx06 edited this page Jul 29, 2023 · 8 revisions

The following configurations are shared by the community

Solarman

If you are using Solarman you can configure your card using the following sensors. You will also need to create the template sensors below for grid_status_194 and inverter_status_59.

Template Sensors

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

Configuration (Solarman Sensors)

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

Deye 8KW using Solar Assistant from StevenSterzik

Configuration

type: custom:sunsynk-power-flow-card
cardstyle: full
show_solar: 'yes'
battery:
  energy: 9600
  shutdown_soc: 15
  show_daily: 'yes'
solar:
  show_daily: 'yes'
  mppts: one
load:
  show_daily: 'yes'
grid:
  show_daily_buy: 'yes'
  show_daily_sell: 'no'
  show_nonessential: 'yes'
entities:
  use_timer_248: switch.use_timer
  priority_load_243: switch.prioritize_load
  inverter_grid_voltage_154: sensor.grid_voltage
  inverter_load_freq_192: sensor.ac_output_frequency
  inverter_out_164: sensor.inverter_output_current
  inverter_out_175: sensor.load_power
  grid_status_194: switch.grid_charge_point_1
  inverter_status_59: sensor.overall_state
  batchargeday_70: sensor.battery_energy_in
  batdischargeday_71: sensor.battery_energy_out
  battery_voltage_183: sensor.battery_voltage
  battery_soc_184: sensor.battery_state_of_charge
  battery_out_190: sensor.battery_power
  battery_current_191: sensor.battery_current
  inverter_load_grid_169: sensor.grid_power
  grid_buy_day_76: sensor.grid_energy_in
  grid_sell_day_77: sensor.grid_energy_out
  grid_external_power_172: sensor.grid_power_ct
  loadday_84: sensor.load_energy
  essential_power: sensor.load_power_essential
  nonessential_power: sensor.load_power_non_essential
  aux_power_166: sensor.aux_output_power
  solarday_108: sensor.pv_energy
  pv1_power_186: sensor.pv_power_1
  pv2_power_187: sensor.pv_power_2
  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

Config I was not able to figure out were

inverter_out_164
inverter_status_59
aux_power_166
grid_status_194

Sunsynk 8KW using Solar E-Linter (Sunsynk Dongle)

Template Sensors

##Paste this under the template section in your configuration.yaml. If you already have a template section defined you can omit the line below
template:

  ####These templates are needed for the Sunsynk Power Flow Card https://github.com/slipx06/sunsynk-power-flow-card
  ####Solar Sensors
  ####solarday_108: sensor.sunsynk_daily_pv_108
  ####pv1_power_186: sensor.sunsynk_pv1_186
  ####pv2_power_187: sensor.sunsynk_pv1_187
  ####pv3_power_188: none
  ####pv4_power_189: none
  ####pv1_v_109: sensor.sunsynk_pv1_voltage_109
  ####pv1_i_110: sensor.sunsynk_pv1_current_110
  ####pv2_v_111: sensor.sunsynk_pv2_voltage_111
  ####pv2_i_112: sensor.sunsynk_pv2_current_112
  ####pv3_v_113: none
  ####pv3_i_114: none
  ####pv4_v_115: none
  ####pv4_i_116: none

  - sensor:
      - name: "SS Daily PV 108"
        state_class: total_increasing
        state: >
          {{state_attr('sensor.sunsynk_input', 'etoday')|float(0)|round(1)}}
        unit_of_measurement: kWh
        unique_id: "sensor.sunsynk_daily_epv"
        device_class: energy
      - name: "SS PV1 186"
        state: >
          {{state_attr('sensor.sunsynk_input', 'pv1')|float(0)|round(0)}}
        unit_of_measurement: W
      - name: "SS PV2 187"
        state: >
          {{state_attr('sensor.sunsynk_input', 'pv2')|float(0)|round(0)}}
        unit_of_measurement: W
      - name: "SS PV1 Voltage 109"
        state: >
          {{state_attr('sensor.sunsynk_input', 'pvIV_0_vpv')|float(0)|round(1)}}
        unit_of_measurement: V
      - name: "SS PV1 Current 110"
        state: >
          {{state_attr('sensor.sunsynk_input', 'pvIV_0_ipv')|float(0)|round(1)}}
        unit_of_measurement: A
      - name: "SS PV2 Voltage 111"
        state: >
          {{state_attr('sensor.sunsynk_input', 'pvIV_1_vpv')|float(0)|round(1)}}
        unit_of_measurement: V
      - name: "SS PV2 Current 112"
        state: >
          {{state_attr('sensor.sunsynk_input', 'pvIV_1_ipv')|float(0)|round(1)}}
        unit_of_measurement: A
      - name: "SS PV"
        state: >
            {{state_attr('sensor.sunsynk_input', 'pv')|float(0)|round(1)}}
        unit_of_measurement: W

  ####Battery Sensors
  ####batchargeday_70: sensor.sunsynk_battery_daily_charge_70
  ####batdischargeday_71: sensor.sunsynk_battery_daily_discharge_71
  ####battery_voltage_183: sensor.sunsynk_battery_voltage_183
  ####battery_soc_184: sensor.sunsynk_battery_soc_184
  ####battery_out_190: sensor.sunsynk_battery_power_190
  ####battery_current_191: sensor.sunsynk_battery_current_191
  ####battery_temp: sensor.sunsynk_battery_temperature

  - sensor:
      - name: "SS Battery Daily Charge 70"
        state_class: total_increasing
        state: >
          {{state_attr('sensor.sunsynk_battery', 'etodayChg')|float(0)|round(1)}}
        unit_of_measurement: kWh
        unique_id: "sensor.sunsynk_daily_ebatcharge"
        device_class: energy
      - name: "SS Battery Daily Discharge 71"
        state_class: total_increasing
        state: >
          {{state_attr('sensor.sunsynk_battery', 'etodayDischg')|float(0)|round(1)}}
        unit_of_measurement: kWh
        unique_id: "sensor.sunsynk_daily_ebatdischarge"
        device_class: energy
      - name: "SS Battery Voltage 183"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'voltage')|float(0)}}
        unit_of_measurement: V
      - name: "SS Battery Soc 184"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'soc')|float(0)|round(0)}}
        unit_of_measurement: "%"
      - name: "SS Battery Power 190"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'power')|float(0)|round(0)}}
        unit_of_measurement: W
      - name: "SS Battery Current 191"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'current')|float(0)}}
        unit_of_measurement: A

  ####Grid Sensors
  ####grid_buy_day_76: sensor.sunsynk_daily_grid_buy_76
  ####grid_sell_day_77: sensor.sunsynk_daily_grid_sell_77
  ####grid_external_power_172: sensor.sunsynk_grid_power_172
  ####inverter_load_grid_169: sensor.sunsynk_grid_power_169

  - sensor:
      - name: "SS Grid Power 169"
        state: >
          {{state_attr('sensor.sunsynk_grid', 'power')|float(0)|round(0)}}
        unit_of_measurement: W
      - name: "SS Grid Power 172"
        state: >
          {{state_attr('sensor.sunsynk_grid', 'limiterTotalPower')|float(0)|round(0)}}
        unit_of_measurement: W
      - name: "SS Daily Grid Buy 76"
        state_class: total_increasing
        state: >
          {{state_attr('sensor.sunsynk_grid', 'etodayFrom')|float(0)|round(1)}}
        unit_of_measurement: kWh
        unique_id: "sensor.sunsynk_daily_egridbuy"
        device_class: energy
      - name: "SS Daily Grid Sell 77"
        state_class: total_increasing
        state: >
          {{state_attr('sensor.sunsynk_grid', 'etodayTo')|float(0)|round(1)}}
        unit_of_measurement: kWh
        unique_id: "sensor.sunsynk_daily_egridsell"
        device_class: energy


  ####Load Sensors
  ####loadday_84: sensor.sunsynk_daily_load_84
  ####essential_power: sensor.sunsynk_load_power_ess
  ####aux_power_166: sensor.sunsynk_output_aux_power_166

  - sensor:
      - name: "SS Daily Load 84"
        state_class: total_increasing
        state: >
          {{state_attr('sensor.sunsynk_load', 'dailyUsed')|float(0)|round(1)}}
        unit_of_measurement: kWh
        unique_id: "sensor.sunsynk_daily_eload"
        device_class: energy
      - name: "SS Load Power Ess"
        state: >
          {{state_attr('sensor.sunsynk_load', 'totalpower')|float(0)|round(0)}}
        unit_of_measurement: W
      - name: "SS Output Aux Power 166"
        state: >
          {{state_attr('sensor.sunsynk_output', 'poweraux')|float(0)|round(0)}}
        unit_of_measurement: W

  ####Inverter Sensors
  ####use_timer_248: sensor.current_use_timer_248
  ####priority_load_243: sensor.energy_mode_243
  ####inverter_grid_voltage_154: sensor.sunsynk_output_voltage_154
  ####inverter_load_freq_192: sensor.sunsynk_output_frequency_192
  ####inverter_out_164: sensor.sunsynk_output_current_164
  ####inverter_out_175: sensor.sunsynk_output_total_power_175
  ####grid_status_194: sensor.sunsynk_grid_online_194
  ####inverter_status_59: sensor.sunsynk_inverter_status_59

  - sensor:
      - name: "SS Current Use Timer 248"
        state: >
          {% if (state_attr('sensor.sunsynk_settings', 'peakAndVallery') |float ) == 1 %}
            on
          {% else %}
            off
          {% endif %}
      - name: "SS Energy Mode 243"
        state: >
          {% if (state_attr('sensor.sunsynk_settings', 'energyMode') | float) == 1 %}
            on
          {% else %}
            off
          {% endif %}
      - name: "SS Output Voltage 154"
        state: >
          {{state_attr('sensor.sunsynk_output', 'vip_0_volt')|float(0)|round(1)}}
        unit_of_measurement: V
      - name: "SS Output current 164"
        state: >
          {{state_attr('sensor.sunsynk_output', 'vip_0_current')|float(0)|round(1)}}
        unit_of_measurement: A
      - name: "SS Output Frequency 192"
        state: >
          {{state_attr('sensor.sunsynk_output', 'fac')|float(0)|round(1)}}
        unit_of_measurement: Hz
      - name: "SS Output Total Power 175"
        state: >
          {{state_attr('sensor.sunsynk_output', 'totalpower')|float(0)|round(0)}}
        unit_of_measurement: W
      - name: "SS Inverter Status 59"
        state: >
          {{ state_attr("sensor.sunsynk_invertor_list", "infos_0_gatewayVO_status") }}
      - name: "SS Grid Online 194"
        state: >
          {{state_attr('sensor.sunsynk_grid', 'gridonline')|float|round(0)}}

  ##### Time of Use Sensors
  ## prog1_time: select.ss_prog1_time
  ## prog1_capacity: number.ss_prog1_capacity
  ## prog1_charge: select.ss_prog1_charge
  ## prog2_time: select.ss_prog2_time
  ## prog2_capacity: number.ss_prog2_capacity
  ## prog2_charge: select.ss_prog2_charge
  ## prog3_time: select.ss_prog3_time
  ## prog3_capacity: number.ss_prog3_capacity
  ## prog3_charge: select.ss_prog3_charge
  ## prog4_time: select.ss_prog4_time
  ## prog4_capacity: number.ss_prog4_capacity
  ## prog4_charge: select.ss_prog4_charge
  ## prog5_time: select.ss_prog5_time
  ## prog5_capacity: number.ss_prog5_capacity
  ## prog5_charge: select.ss_prog5_charge
  ## prog6_time: select.ss_prog6_time
  ## prog6_capacity: number.ss_prog6_capacity
  ## prog6_charge: select.ss_prog6_charge

  - sensor:
      - name: "SS Prog1 Capacity"
        state: >
          {{ state_attr('sensor.sunsynk_settings', 'cap1') | float }}
      - name: "SS Prog1 Time"
        state: >
          {% set sellTime1 = state_attr('sensor.sunsynk_settings', 'sellTime1') %}
          {% if sellTime1 %}
            {{ strptime(sellTime1, '%H:%M').strftime('%H:%M') }}
          {% endif %}
      - name: "SS Prog1 Charge"
        state: >
          {% set time1on = state_attr('sensor.sunsynk_settings', 'time1on') %}
          {{ 0 if time1on == false else 1 }}
      - name: "SS Prog2 Capacity"
        state: >
          {{ state_attr('sensor.sunsynk_settings', 'cap2') | float }}
      - name: "SS Prog2 Time"
        state: >
          {% set sellTime2 = state_attr('sensor.sunsynk_settings', 'sellTime2') %}
          {% if sellTime2 %}
            {{ strptime(sellTime2, '%H:%M').strftime('%H:%M') }}
          {% endif %}
      - name: "SS Prog2 Charge"
        state: >
          {% set time2on = state_attr('sensor.sunsynk_settings', 'time2on') %}
          {{ 0 if time2on == false else 1 }}
      - name: "SS Prog3 Capacity"
        state: >
          {{ state_attr('sensor.sunsynk_settings', 'cap3') | float }}
      - name: "SS Prog3 Time"
        state: >
          {% set sellTime3 = state_attr('sensor.sunsynk_settings', 'sellTime3') %}
          {% if sellTime3 %}
            {{ strptime(sellTime3, '%H:%M').strftime('%H:%M') }}
          {% endif %}
      - name: "SS Prog3 Charge"
        state: >
          {% set time3on = state_attr('sensor.sunsynk_settings', 'time3on') %}
          {{ 0 if time3on == false else 1 }}
      - name: "SS Prog4 Capacity"
        state: >
          {{ state_attr('sensor.sunsynk_settings', 'cap4') | float }}
      - name: "SS Prog4 Time"
        state: >
          {% set sellTime4 = state_attr('sensor.sunsynk_settings', 'sellTime4') %}
          {% if sellTime4 %}
            {{ strptime(sellTime4, '%H:%M').strftime('%H:%M') }}
          {% endif %}
      - name: "SS Prog4 Charge"
        state: >
          {% set time4on = state_attr('sensor.sunsynk_settings', 'time4on') %}
          {{ 0 if time4on == false else 1 }}
      - name: "SS Prog5 Capacity"
        state: >
          {{ state_attr('sensor.sunsynk_settings', 'cap5') | float }}
      - name: "SS Prog5 Time"
        state: >
          {% set sellTime5 = state_attr('sensor.sunsynk_settings', 'sellTime5') %}
          {% if sellTime5 %}
            {{ strptime(sellTime5, '%H:%M').strftime('%H:%M') }}
          {% endif %}
      - name: "SS Prog5 Charge"
        state: >
          {% set time5on = state_attr('sensor.sunsynk_settings', 'time5on') %}
          {{ 0 if time5on == false else 1 }}
      - name: "SS Prog6 Capacity"
        state: >
          {{ state_attr('sensor.sunsynk_settings', 'cap6') | float }}
      - name: "SS Prog6 Time"
        state: >
          {% set sellTime6 = state_attr('sensor.sunsynk_settings', 'sellTime6') %}
          {% if sellTime6 %}
            {{ strptime(sellTime6, '%H:%M').strftime('%H:%M') }}
          {% endif %}
      - name: "SS Prog6 Charge"
        state: >
          {% set time6on = state_attr('sensor.sunsynk_settings', 'time6on') %}
          {{ 0 if time6on == false else 1 }}

  #####Temperature Sensors
  #####battery_temp: sensor.ss_battery_temperature
  #####inverter_ac_temp: sensor.ss_dc_radiator_temperature
  #####inverter_dc_temp: sensor.ss_dc_transformer_temperature
  #####
  #####

  - sensor:
      - name: "SS DCTemp"
        state: >
          {{ state_attr('sensor.sunsynk_temp_data', 'dctemp') | float(0) }}
        unit_of_measurement: 
      - name: "SS ACTemp"
        state: >
          {{ state_attr('sensor.sunsynk_temp_data', 'actemp') | float(0) }}
        unit_of_measurement: 
      - name: "SS Battery Temperature"
        state: >
          {{state_attr('sensor.sunsynk_battery', 'temp')|float(0)}}
        unit_of_measurement: 

Configuration

type: custom:sunsynk-power-flow-card
cardstyle: lite
show_solar: 'yes'
large_font: 'yes'
battery:
  energy: 5320
  shutdown_soc: 20
  show_daily: 'yes'
solar:
  show_daily: 'yes'
  mppts: one
load:
  show_daily: 'yes'
  show_aux: 'no'
grid:
  show_daily_buy: 'yes'
  show_daily_sell: 'no'
  show_nonessential: 'no'
entities:
  use_timer_248: sensor.current_use_timer_248
  priority_load_243: sensor.energy_mode_243
  inverter_grid_voltage_154: sensor.sunsynk_output_voltage_154
  inverter_load_freq_192: sensor.sunsynk_output_frequency_192
  inverter_out_164: sensor.sunsynk_output_current_164
  inverter_out_175: sensor.sunsynk_output_total_power_175
  grid_status_194: sensor.sunsynk_grid_online_194
  inverter_status_59: sensor.sunsynk_inverter_status_59
  batchargeday_70: sensor.sunsynk_battery_daily_charge_70
  batdischargeday_71: sensor.sunsynk_battery_daily_discharge_71
  battery_voltage_183: sensor.sunsynk_battery_voltage_183
  battery_soc_184: sensor.sunsynk_battery_soc_184
  battery_out_190: sensor.sunsynk_battery_power_190
  battery_current_191: sensor.sunsynk_battery_current_191
  battery_temp: sensor.sunsynk_battery_temperature
  inverter_load_grid_169: sensor.sunsynk_grid_power_169
  grid_buy_day_76: sensor.sunsynk_daily_grid_buy_76
  grid_sell_day_77: sensor.sunsynk_daily_grid_sell_77
  grid_external_power_172: sensor.sunsynk_grid_power_172
  loadday_84: sensor.sunsynk_daily_load_84
  essential_power: sensor.sunsynk_load_power_ess
  nonessential_power: none
  aux_power_166: none
  solarday_108: sensor.sunsynk_daily_pv_108
  pv1_power_186: sensor.sunsynk_pv1_186
  pv2_power_187: none
  pv1_v_109: sensor.sunsynk_pv1_voltage_109
  pv1_i_110: sensor.sunsynk_pv1_current_110
  pv2_v_111: none
  pv2_i_112: none
  prog1_time: sensor.ss_prog1_time
  prog1_capacity: sensor.ss_prog1_capacity
  prog1_charge: sensor.ss_prog1_charge
  prog2_time: sensor.ss_prog2_time
  prog2_capacity: sensor.ss_prog2_capacity
  prog2_charge: sensor.ss_prog2_charge
  prog3_time: sensor.ss_prog3_time
  prog3_capacity: sensor.ss_prog3_capacity
  prog3_charge: sensor.ss_prog3_charge
  prog4_time: sensor.ss_prog4_time
  prog4_capacity: sensor.ss_prog4_capacity
  prog4_charge: sensor.ss_prog4_charge
  prog5_time: sensor.ss_prog5_time
  prog5_capacity: sensor.ss_prog5_capacity
  prog5_charge: sensor.ss_prog5_charge
  prog6_time: sensor.ss_prog6_time
  prog6_capacity: sensor.ss_prog6_capacity
  prog6_charge: sensor.ss_prog6_charge
  inverter_ac_temp: sensor.ss_actemp
  inverter_dc_temp: sensor.ss_dctemp

Luxpower Tek Inverter

Configuration

type: custom:sunsynk-power-flow-card
cardstyle: lite
show_solar: 'yes'
battery:
  energy: 6400
  shutdown_soc: 10
  show_daily: 'yes'
  invert_power: 'yes'
solar:
  show_daily: 'yes'
  mppts: two
  pv1_name: Back
  pv2_name: Front
load:
  show_daily: 'yes'
grid:
  show_daily_buy: 'yes'
  show_daily_sell: 'yes'
  show_nonessential: 'no'
  invert_grid: 'yes'
entities:
  day_pv_energy_108: sensor.lux_solar_output_daily
  inverter_voltage_154: sensor.lux_grid_voltage_live
  load_frequency_192: sensor.lux_grid_frequency_live
  inverter_current_164: none
  inverter_power_175: sensor.lux_battery_flow_live
  grid_connected_status_194: binary_sensor.binary_on_grid
  inverter_status_59: none
  day_battery_charge_70: sensor.lux_battery_charge_daily
  day_battery_discharge_71: sensor.lux_battery_discharge_daily
  battery_voltage_183: sensor.lux_battery_voltage_live
  battery_soc_184: sensor.lux_battery
  battery_power_190: sensor.lux_battery_flow_live
  battery_current_191: none
  grid_power_169: sensor.grid_power
  day_grid_import_76: sensor.lux_power_from_grid_daily
  day_grid_export_77: sensor.lux_power_to_grid_daily
  grid_ct_power_172: sensor.lux_grid_flow_live
  day_load_energy_84: sensor.lux_power_from_inverter_to_home_daily
  essential_power: sensor.lux_home_consumption_live
  nonessential_power: none
  aux_power_166: none
  pv1_power_186: sensor.lux_solar_output_array_1_live
  pv2_power_187: sensor.lux_solar_output_array_2_live
  pv1_voltage_109: none
  pv1_current_110: none
  pv2_voltage_111: none
  pv2_current_112: none
  inverter_ac_temp: sensor.lux_radiator_1_temperature_live
  inverter_dc_temp: sensor.lux_radiator_2_temperature_live
  remaining_solar: sensor.solcast_forecast_remaining_today