June 5, 20233 yr 17 minutes ago, JayMc said: Hi! Having a look at this integration. Is there any way to speed up the data and make it real-time? If you are refering to the data logger, the default update rate of the sunsynk app data is 5min. From what I could gather of a facebook Sunsynk group, If your installer have the admin privilages they can perhaps change it as to my knowledge it is a setting under the gateway settings but end users don't have access to this. Again this is second hand info.
June 6, 20233 yr On 2023/06/04 at 7:30 PM, -cK- said: Okay think I've got it all setup so for ease of setup here is all the sensors: Bindings: 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 Sensors: ##### ##### ##### Sunsynk-Power-Flow-Card: Add-On v1.6 ##### Sensors ##### ##### - sensor: - name: "SS Prog1 Capacity" state: > {{ state_attr('sensor.sunsynk_settings', 'cap1') | float }} - sensor: - name: "SS Prog2 Capacity" state: > {{ state_attr('sensor.sunsynk_settings', 'cap2') | float }} - sensor: - name: "SS Prog3 Capacity" state: > {{ state_attr('sensor.sunsynk_settings', 'cap3') | float }} - sensor: - name: "SS Prog4 Capacity" state: > {{ state_attr('sensor.sunsynk_settings', 'cap4') | float }} - sensor: - name: "SS Prog5 Capacity" state: > {{ state_attr('sensor.sunsynk_settings', 'cap5') | float }} - sensor: - name: "SS Prog6 Capacity" state: > {{ state_attr('sensor.sunsynk_settings', 'cap6') | float }} Template Sensors: ##### ##### ##### Sunsynk-Power-Flow-Card: Add-On v1.6 ##### Sensors Template ##### ##### ss_prog1_time: friendly_name: "SS Prog1 Time" value_template: > {% set sellTime1 = state_attr('sensor.sunsynk_settings', 'sellTime1') %} {% if sellTime1 %} {{ strptime(sellTime1, '%H:%M').strftime('%H:%M') }} {% endif %} ss_prog1_charge: friendly_name: "SS Prog1 Charge" value_template: > {% set time1on = state_attr('sensor.sunsynk_settings', 'time1on') %} {{ 0 if time1on == 'false' else 1 }} ss_prog2_time: friendly_name: "SS Prog2 Time" value_template: > {% set sellTime2 = state_attr('sensor.sunsynk_settings', 'sellTime2') %} {% if sellTime2 %} {{ strptime(sellTime2, '%H:%M').strftime('%H:%M') }} {% endif %} ss_prog2_charge: friendly_name: "SS Prog2 Charge" value_template: > {% set time2on = state_attr('sensor.sunsynk_settings', 'time2on') %} {{ 0 if time2on == 'false' else 1 }} ss_prog3_time: friendly_name: "SS Prog3 Time" value_template: > {% set sellTime3 = state_attr('sensor.sunsynk_settings', 'sellTime3') %} {% if sellTime3 %} {{ strptime(sellTime3, '%H:%M').strftime('%H:%M') }} {% endif %} ss_prog3_charge: friendly_name: "SS Prog3 Charge" value_template: > {% set time3on = state_attr('sensor.sunsynk_settings', 'time3on') %} {{ 0 if time3on == 'false' else 1 }} ss_prog4_time: friendly_name: "SS Prog4 Time" value_template: > {% set sellTime4 = state_attr('sensor.sunsynk_settings', 'sellTime4') %} {% if sellTime4 %} {{ strptime(sellTime4, '%H:%M').strftime('%H:%M') }} {% endif %} ss_prog4_charge: friendly_name: "SS Prog4 Charge" value_template: > {% set time4on = state_attr('sensor.sunsynk_settings', 'time4on') %} {{ 0 if time4on == 'false' else 1 }} ss_prog5_time: friendly_name: "SS Prog5 Time" value_template: > {% set sellTime5 = state_attr('sensor.sunsynk_settings', 'sellTime5') %} {% if sellTime5 %} {{ strptime(sellTime5, '%H:%M').strftime('%H:%M') }} {% endif %} ss_prog5_charge: friendly_name: "SS Prog5 Charge" value_template: > {% set time5on = state_attr('sensor.sunsynk_settings', 'time5on') %} {{ 0 if time5on == 'false' else 1 }} ss_prog6_time: friendly_name: "SS Prog6 Time" value_template: > {% set sellTime6 = state_attr('sensor.sunsynk_settings', 'sellTime6') %} {% if sellTime6 %} {{ strptime(sellTime6, '%H:%M').strftime('%H:%M') }} {% endif %} ss_prog6_charge: friendly_name: "SS Prog6 Charge" value_template: > {% set time6on = state_attr('sensor.sunsynk_settings', 'time6on') %} {{ 0 if time6on == 'false' else 1 }} I've created one file that can be copied into configuration.yaml and includes all the template sensors as well plus temperature sensors. Its on the WIKI but included here for ease of use as well ##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: "Sunsynk Daily PV 108" state: > {{state_attr('sensor.sunsynk_input', 'etoday')|float(0)|round(1)}} unit_of_measurement: kWh - name: "Sunsynk PV1 186" state: > {{state_attr('sensor.sunsynk_input', 'pv1')|float(0)|round(0)}} unit_of_measurement: W - name: "Sunsynk PV2 187" state: > {{state_attr('sensor.sunsynk_input', 'pv2')|float(0)|round(0)}} unit_of_measurement: W - name: "Sunsynk PV1 Voltage 109" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_0_vpv')|float(0)|round(1)}} unit_of_measurement: V - name: "Sunsynk PV1 Current 110" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_0_ipv')|float(0)|round(1)}} unit_of_measurement: A - name: "Sunsynk PV2 Voltage 111" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_1_vpv')|float(0)|round(1)}} unit_of_measurement: V - name: "Sunsynk PV2 Current 112" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_2_ipv')|float(0)|round(1)}} unit_of_measurement: A ####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: "Sunsynk Battery Daily Charge 70" state: > {{state_attr('sensor.sunsynk_battery', 'etodayChg')|float(0)|round(1)}} unit_of_measurement: kWh - name: "Sunsynk Battery Daily Discharge 71" state: > {{state_attr('sensor.sunsynk_battery', 'etodayDischg')|float(0)|round(1)}} unit_of_measurement: kWh - name: "Sunsynk Battery Voltage 183" state: > {{state_attr('sensor.sunsynk_battery', 'voltage')|float(0)}} unit_of_measurement: V - name: "Sunsynk Battery Soc 184" state: > {{state_attr('sensor.sunsynk_battery', 'soc')|float(0)|round(0)}} unit_of_measurement: "%" - name: "Sunsynk Battery Power 190" state: > {{state_attr('sensor.sunsynk_battery', 'power')|float(0)|round(0)}} unit_of_measurement: W - name: "Sunsynk 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: "Sunsynk Grid Power 169" state: > {{state_attr('sensor.sunsynk_grid', 'power')|float(0)|round(0)}} unit_of_measurement: W - name: "Sunsynk Grid Power 172" state: > {{state_attr('sensor.sunsynk_grid', 'limiterTotalPower')|float(0)|round(0)}} unit_of_measurement: W - name: "Sunsynk Daily Grid Buy 76" state: > {{state_attr('sensor.sunsynk_grid', 'etodayFrom')|float(0)|round(1)}} unit_of_measurement: kWh - name: "Sunsynk Daily Grid Sell 77" state: > {{state_attr('sensor.sunsynk_grid', 'etodayTo')|float(0)|round(1)}} unit_of_measurement: kWh ####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: "Sunsynk Daily Load 84" state: > {{state_attr('sensor.sunsynk_load', 'dailyUsed')|float(0)|round(1)}} unit_of_measurement: kWh - name: "Sunsynk Load Power Ess" state: > {{state_attr('sensor.sunsynk_load', 'totalpower')|float(0)|round(0)}} unit_of_measurement: W - name: "Sunsynk 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: "Current Use Timer 248" state: > {% if (state_attr('sensor.sunsynk_settings', 'peakAndVallery') |float ) == 1 %} on {% else %} off {% endif %} - name: "Energy Mode 243" state: > {% if (state_attr('sensor.sunsynk_settings', 'energyMode') | float) == 1 %} on {% else %} off {% endif %} - name: "Sunsynk Output Voltage 154" state: > {{state_attr('sensor.sunsynk_output', 'vip_0_volt')|float(0)|round(1)}} unit_of_measurement: V - name: "Sunsynk Output current 164" state: > {{state_attr('sensor.sunsynk_output', 'vip_0_current')|float(0)|round(1)}} unit_of_measurement: A - name: "Sunsynk Output Frequency 192" state: > {{state_attr('sensor.sunsynk_output', 'fac')|float(0)|round(1)}} unit_of_measurement: Hz - name: "Sunsynk Output Total Power 175" state: > {{state_attr('sensor.sunsynk_output', 'totalpower')|float(0)|round(0)}} unit_of_measurement: W - name: "SunSynk Inverter Status 59" state: > {{ state_attr("sensor.sunsynk_invertor_list", "infos_0_gatewayVO_status") }} - name: "Sunsynk 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: "Sunsynk Battery Temperature" state: > {{state_attr('sensor.sunsynk_battery', 'temp')|float(0)}} unit_of_measurement: ℃ Card 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 Edited June 6, 20233 yr by slipx
June 6, 20233 yr 18 hours ago, -cK- said: If you are refering to the data logger, the default update rate of the sunsynk app data is 5min. From what I could gather of a facebook Sunsynk group, If your installer have the admin privilages they can perhaps change it as to my knowledge it is a setting under the gateway settings but end users don't have access to this. Again this is second hand info. My installer changed mine to 60 seconds but told me that Sunsynk does not allow them to change that setting anymore. Can anyone else confirm if this is the case for new installs. (Maybe related to the migration to the new Region). The integration also limits 1 request every 60 seconds. Edited June 6, 20233 yr by slipx
June 6, 20233 yr 8 minutes ago, slipx said: My installer changed mine to 60 seconds but told me that Sunsynk does not allow them to change that setting anymore. Can anyone else confirm if this is the case for new installs. (Maybe related to the migration to the new Region). The integration also limits 1 request every 60 seconds. Can confirm that I am still able to change.
June 7, 20233 yr On 2023/06/03 at 7:56 AM, Jacques Jambo said: Still only seing the volts and amps on pv3 not sure where the issue lies. I did try input 2 but then I lose everything on pv 3 Here are my yaml settings if it helps? ##### Put in your Plant Index for your Plant. 0 should work - sensor: - name: "Sunsynk plant index" state: "0" unique_id: "sensor.sunsynk_plant_index" ##### Put in your Invertor Index for your 1st Invertor. 0 should work - sensor: - name: "Sunsynk Invertor 1 index" state: "0" unique_id: "sensor.sunsynk_invertor_1_index" ##### Put in your Invertor Index for your 2nd Invertor. Only Change if you have 2 Invertors - sensor: - name: "Sunsynk Invertor 2 index" state: "DONOTEDIT" unique_id: "sensor.sunsynk_invertor_2_index" ##### Number of Items to return in queries. Default 10 - sensor: - name: "Sunsynk Return Items" state: 10 unique_id: "sensor.sunsynk_return_items" ##### Source for Invertor List - P;ant based - sensor: - name: "Sunsynk Inverter URL" state: true unique_id: "sensor.sunsynk_inverter_url" ##### ##### ##### DO NOT EDIT ANYTHING UNDER HERE ##### ##### ##### Plant Information - sensor: - name: "Sunsynk Invertor List" state: "DONOTEDIT" unique_id: "sensor.sunsynk_invertor_list" - sensor: - name: "Sunsynk Plant List" state: "DONOTEDIT" unique_id: "sensor.sunsynk_plant_list" - sensor: - name: "Sunsynk Notifications" state: "" unique_id: "sensor.sunsynk_notifications" ##### Core Sensors Invertor 1 - sensor: - name: "Sunsynk Flow" state: "" unique_id: "sensor.sunsynk_flow" - sensor: - name: "Sunsynk Output" state: "" unique_id: "sensor.sunsynk_output" - sensor: - name: "Sunsynk Battery" state: "" unique_id: "sensor.sunsynk_battery" - sensor: - name: "Sunsynk Input" state: "" unique_id: "sensor.sunsynk_input" - sensor: - name: "Sunsynk Grid" state: "" unique_id: "sensor.sunsynk_grid" - sensor: - name: "Sunsynk Load" state: "" unique_id: "sensor.sunsynk_load" - sensor: - name: "Sunsynk Settings" state: "" unique_id: "sensor.sunsynk_settings" - sensor: - name: "Sunsynk Events 1" state: "" unique_id: "sensor.sunsynk_events_1" - sensor: - name: "Sunsynk Events 2" state: "" unique_id: "sensor.sunsynk_events_2" - sensor: - name: "Sunsynk Events 3" state: "" unique_id: "sensor.sunsynk_events_3" - sensor: - name: "Sunsynk Temp Data" state: "" unique_id: "sensor.sunsynk_temp_data" ##### Core Sensors Invertor 2 - sensor: - name: "Sunsynk Flow 2" state: "" unique_id: "sensor.sunsynk_flow_2" - sensor: - name: "Sunsynk Output 2" state: "" unique_id: "sensor.sunsynk_output_2" - sensor: - name: "Sunsynk Battery 2" state: "" unique_id: "sensor.sunsynk_battery_2" - sensor: - name: "Sunsynk Input 2" state: "" unique_id: "sensor.sunsynk_input_2" - sensor: - name: "Sunsynk Grid 2" state: "" unique_id: "sensor.sunsynk_grid_2" - sensor: - name: "Sunsynk Load 2" state: "" unique_id: "sensor.sunsynk_load_2" - sensor: - name: "Sunsynk Settings 2" state: "" unique_id: "sensor.sunsynk_settings_2" - sensor: - name: "Sunsynk Events 1 2" state: "" unique_id: "sensor.sunsynk_events_1_2" - sensor: - name: "Sunsynk Events 2 2" state: "" unique_id: "sensor.sunsynk_events_2_2" - sensor: - name: "Sunsynk Events 3 2" state: "" unique_id: "sensor.sunsynk_events_3_2" - sensor: - name: "Sunsynk Temp Data 2" state: "" unique_id: "sensor.sunsynk_temp_data_2" ##### Misc Sensors for Energy - sensor: - name: "Sunsynk Battery etotalchg" state_class: total_increasing unique_id: "sensor.sunsynk_battery_etotalchg" device_class: energy unit_of_measurement: kWh state: > {{state_attr('sensor.sunsynk_battery', 'etotalchg')|float}} - sensor: - name: "Sunsynk Battery etotaldischg" state_class: total_increasing unique_id: "sensor.sunsynk_battery_etotaldischg" device_class: energy unit_of_measurement: kWh state: > {{state_attr('sensor.sunsynk_battery', 'etotaldischg')|float}} - sensor: - name: "Sunsynk PV Total" state_class: total_increasing unique_id: "sensor.sunsynk_pv_total" device_class: energy unit_of_measurement: kWh state: > {{state_attr('sensor.sunsynk_input', 'pvtotal')|float}} - sensor: - name: "Sunsynk Grid Total" state_class: total_increasing unique_id: "sensor.sunsynk_grid_total" device_class: energy unit_of_measurement: kWh state: > {{state_attr('sensor.sunsynk_grid', 'total')|float}} - sensor: - name: "Sunsynk Load Total" state_class: total_increasing unique_id: "sensor.sunsynk_load_total" device_class: energy unit_of_measurement: kWh state: > {{state_attr('sensor.sunsynk_load', 'total')|float}} ##### Other Sensors - sensor: - name: "Current Use Timer" state: > {% if is_state_attr('sensor.sunsynk_settings', 'peakAndVallery', '1' ) %} Use Timer Enabled {% else %} Use Timer Disabled {% endif %} - sensor: - name: "Sunsynk Battery Temp" state: > {{state_attr('sensor.sunsynk_battery', 'temp')|float}} - sensor: - name: "Sunsynk AC Temp" state: > {{state_attr('sensor.sunsynk_temp_data', 'actemp')|float}} - sensor: - name: "Sunsynk DC Temp" state: > {{state_attr('sensor.sunsynk_temp_data', 'dctemp')|float}} - sensor: - name: "Sunsynk Battery Soc" state: > {{state_attr('sensor.sunsynk_battery', 'soc')|float}} - sensor: - name: "Sunsynk Battery Power" state: > {{state_attr('sensor.sunsynk_battery', 'power')|float}} - sensor: - name: "Sunsynk PV1" state: > {{state_attr('sensor.sunsynk_input', 'pv1')|float}} - sensor: - name: "Sunsynk PV2" state: > {{state_attr('sensor.sunsynk_input', 'pv2')|float}} - sensor: - name: "Sunsynk PV3" state: > {{state_attr('sensor.sunsynk_input', 'pv3')|float}} - sensor: - name: "Sunsynk Grid Power" state: > {{state_attr('sensor.sunsynk_grid', 'power')|float}} - sensor: - name: "Sunsynk Grid Online" state: > {{state_attr('sensor.sunsynk_grid', 'gridonline')|float}} - sensor: - name: "Sunsynk Load Power" state: > {{state_attr('sensor.sunsynk_load', 'totalpower')|float}} - sensor: - name: "SunSynk Logger Status" state: > {% if state_attr("sensor.sunsynk_invertor_list", "infos_0_status") == 0 -%} Offline {%- elif state_attr("sensor.sunsynk_invertor_list", "infos_0_status") == 1 -%} Online {%- elif state_attr("sensor.sunsynk_invertor_list", "infos_0_status") == 2 -%} Warning {%- elif state_attr("sensor.sunsynk_invertor_list", "infos_0_status") == 3 -%} Fault {%- elif state_attr("sensor.sunsynk_invertor_list", "infos_0_status") == 4 -%} Upgrading {%- else -%} {{state_attr("sensor.sunsynk_invertor_list", "infos_0_status")}} {%- endif %} - sensor: - name: "SunSynk Logger Last Update" device_class: timestamp state: > {{ state_attr("sensor.sunsynk_invertor_list", "infos_0_updateAt") }} - sensor: - name: "Weather Forecast Calc Result" state: "" unique_id: "sensor.weather_forecast_calc_result" - sensor: - name: "New Minutes To Load Shedding" state: 99999 unique_id: "sensor.new_minutes_to_load_shedding" - sensor: - name: "New SunSynk Override Result" state: " " unique_id: "sensor.new_sunsynk_override_result" - sensor: - name: "New Length Load Shedding" state: " " unique_id: "sensor.new_length_load_shedding" - sensor: - name: "New SunSynk Update Status" state: "Not Been Called Yet" unique_id: "sensor.new_sunsynk_update_status" - sensor: - name: "Calculated Current Solar Pred" unique_id: "sensor.calculated.current.solar.pred" state: > {{ ((float(states('sensor.power_production_now_2')) * 1 ) + (float(states('sensor.power_production_now')) * 1 ))|float }} - sensor: - name: "Sunsynk Stats Last Update" device_class: timestamp state: 0 unique_id: "sensor.sunsynk_stats_last_update" - sensor: - name: "Sunsynk Battery Depletion" state: 0 unique_id: "sensor.sunsynk_battery_depletion" - sensor: - name: "Sunsynk Battery Depletion Load" state: 0 unique_id: "sensor.sunsynk_battery_depletion_load" ####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: sensor.sunsynk_pv1_188 ####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: sensor.sunsynk_pv3_voltage_113 ####pv3_i_114: sensor.sunsynk_pv3_current_114 ####pv4_v_115: none ####pv4_i_116: none - sensor: - name: "Sunsynk Daily PV 108" state: > {{state_attr('sensor.sunsynk_input', 'etoday')|float(0)|round(1)}} - sensor: - name: "Sunsynk PV1 186" state: > {{state_attr('sensor.sunsynk_input', 'pv1')|float(0)|round(0)}} - sensor: - name: "Sunsynk PV2 187" state: > {{state_attr('sensor.sunsynk_input', 'pv2')|float(0)|round(0)}} - sensor: - name: "Sunsynk PV3 188" state: > {{state_attr('sensor.sunsynk_input', 'pv3')|float(0)|round(0)}} - sensor: - name: "Sunsynk PV1 Voltage 109" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_0_vpv')|float(0)|round(1)}} - sensor: - name: "Sunsynk PV1 Current 110" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_0_ipv')|float(0)|round(1)}} - sensor: - name: "Sunsynk PV2 Voltage 111" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_1_vpv')|float(0)|round(1)}} - sensor: - name: "Sunsynk PV2 Current 112" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_1_ipv')|float(0)|round(1)}} - sensor: - name: "Sunsynk PV3 Voltage 113" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_2_vpv')|float(0)|round(1)}} - sensor: - name: "Sunsynk PV3 Current 114" state: > {{state_attr('sensor.sunsynk_input', 'pvIV_2_ipv')|float(0)|round(1)}} ####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 - sensor: - name: "Sunsynk Battery Daily Charge 70" state: > {{state_attr('sensor.sunsynk_battery', 'etodayChg')|float(0)|round(1)}} - sensor: - name: "Sunsynk Battery Daily Discharge 71" state: > {{state_attr('sensor.sunsynk_battery', 'etodayDischg')|float(0)|round(1)}} - sensor: - name: "Sunsynk Battery Voltage 183" state: > {{state_attr('sensor.sunsynk_battery', 'voltage')|float(0)}} - sensor: - name: "Sunsynk Battery Soc 184" state: > {{state_attr('sensor.sunsynk_battery', 'soc')|float(0)|round(0)}} - sensor: - name: "Sunsynk Battery Power 190" state: > {{state_attr('sensor.sunsynk_battery', 'power')|float(0)|round(0)}} - sensor: - name: "Sunsynk Battery Current 191" state: > {{state_attr('sensor.sunsynk_battery', 'current')|float(0)}} ####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: "Sunsynk Grid Power 169" state: > {{state_attr('sensor.sunsynk_grid', 'power')|float(0)|round(0)}} - sensor: - name: "Sunsynk Grid Power 172" state: > {{state_attr('sensor.sunsynk_grid', 'limiterTotalPower')|float(0)|round(0)}} - sensor: - name: "Sunsynk Daily Grid Buy 76" state: > {{state_attr('sensor.sunsynk_grid', 'etodayFrom')|float(0)|round(1)}} - sensor: - name: "Sunsynk Daily Grid Sell 77" state: > {{state_attr('sensor.sunsynk_grid', 'etodayTo')|float(0)|round(1)}} ####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: "Sunsynk Daily Load 84" state: > {{state_attr('sensor.sunsynk_load', 'dailyUsed')|float(0)|round(1)}} - sensor: - name: "Sunsynk Load Power Ess" state: > {{state_attr('sensor.sunsynk_load', 'totalpower')|float(0)|round(0)}} - sensor: - name: "Sunsynk Output Aux Power 166" state: > {{state_attr('sensor.sunsynk_output', 'poweraux')|float(0)|round(0)}} ####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: "Current Use Timer 248" state: > {% if (state_attr('sensor.sunsynk_settings', 'peakAndVallery') | float) == 1 %} on {% else %} off {% endif %} - sensor: - name: "Energy Mode 243" state: > {% if (state_attr('sensor.sunsynk_settings', 'energyMode') | float) == 1 %} on {% else %} off {% endif %} - sensor: - name: "Sunsynk Output Voltage 154" state: > {{state_attr('sensor.sunsynk_output', 'vip_0_volt')|float(0)|round(1)}} - sensor: - name: "Sunsynk Output current 164" state: > {{state_attr('sensor.sunsynk_output', 'vip_0_current')|float(0)|round(1)}} - sensor: - name: "Sunsynk Output Frequency 192" state: > {{state_attr('sensor.sunsynk_output', 'fac')|float(0)|round(1)}} - sensor: - name: "Sunsynk Output Total Power 175" state: > {{state_attr('sensor.sunsynk_output', 'totalpower')|float(0)|round(0)}} - sensor: - name: "SunSynk Inverter Status 59" state: > {{ state_attr("sensor.sunsynk_invertor_list", "infos_0_gatewayVO_status") }} - sensor: - name: "Sunsynk Grid Online 194" state: > {{state_attr('sensor.sunsynk_grid', 'gridonline')|float|round(0)}} checking if you have pv3 specified in nodered flow?
June 13, 20233 yr Hi Gary Thank you so much for getting this up and running, I am however having an issue with node red not pulling any data from my Sunsynk account. I have tried on 2 different systems and get the same error both times. I saw another user had issues with the way the installer had setup the system and i wonder if mine is a similair issue. I struggled to insert the screenshot, so the link below should show the details. https://drive.google.com/file/d/1k-Dl2MCngzsngYxtxl69JqVkfRdXTBBJ/view?usp=drive_link Many thanks Neil
June 21, 20233 yr Hi @Gary Waterworth and @slipx, I am new to the HA and NodeRed but thanks to @Sc00bs I managed to get HAos running on a VirtualBox VM with NodeReed, Sunsynk Data Logger and the power flow card working. I just have one problem, ever since NodeRed connected to my inverter the SOC is stuck at 60% and it is not charging or discharging the inverter. Any idea what could be the problem? thanks
June 22, 20233 yr Author 6 hours ago, Muchachos said: Hi @Gary Waterworth and @slipx, I am new to the HA and NodeRed but thanks to @Sc00bs I managed to get HAos running on a VirtualBox VM with NodeReed, Sunsynk Data Logger and the power flow card working. I just have one problem, ever since NodeRed connected to my inverter the SOC is stuck at 60% and it is not charging or discharging the inverter. Any idea what could be the problem? thanks The only way changes would have been done is if you implemented the automation flow, which is NOT recommended for someone new to node red of home assistant. There are a large number of dependencies for that to work properly and impossible to fault find on a forumn basis. I suggest removing the automation flows and manually going and setting your timer and soc values on your invertor It is impossible for teh gather flows to do as you suggest. Edited June 22, 20233 yr by Gary Waterworth
June 22, 20233 yr Thanks @Gary Waterworth, 13 hours ago, Gary Waterworth said: I suggest removing the automation flows and manually going and setting your timer and soc values on your invertor I thought I did not implement the automations as my automations.yaml is empty. How do I check if the automations are enable so that I can disable them? Edited June 22, 20233 yr by Muchachos
June 23, 20233 yr 18 hours ago, Muchachos said: Thanks @Gary Waterworth, I thought I did not implement the automations as my automations.yaml is empty. How do I check if the automations are enable so that I can disable them? @MuchachosCheck that you only have the gather flow enabled in Node Red and not the Sunsynk Automation Flow.
June 24, 20233 yr On 2023/06/23 at 8:18 AM, Sc00bs said: @MuchachosCheck that you only have the gather flow enabled in Node Red and not the Sunsynk Automation Flow. Thanks @Sc00bs, checked and I only have the gather flow enabled. Will get my installer to check the battery.
June 24, 20233 yr @Gary Waterworth, I have my inverter configured with AUX output. I noticed that the entity for aux_power is using the ouput value for the MPPTs. - name: "Sunsynk Output Aux Power 166" state: > {{state_attr('sensor.sunsynk_output', 'poweraux')|float(0)|round(0)}} unit_of_measurement: W This is the Power Card and Inverter display looks. What do you recommend for a fix? Edited June 24, 20233 yr by Muchachos
June 24, 20233 yr @Muchachos I also noticed this. I could not find an AUX sensor on the web portal either so I don't think we can read this data. I thought it might be reported under these parameters but could not find anything that matched. Start by trying to find it on the portal first Edited June 24, 20233 yr by slipx
June 25, 20233 yr @slipx, there is a UPS_Load_Power variable in the load parameters section on the portal. Because I run all my loads except the gas stove as UPS, this variable and load are the same. I have access to a Three Phase 12K inverter and this has a smart load parameter section. It just that this is not being used. Not sure why Sunsynk think it’s best to have the Smart Load parameter for the Three Phase inverters and not the Single Phase. Not even the 16KW Single Phase has the smart load parameter.
June 25, 20233 yr The 5kW doesn't even have the UPS parameters under load, which as I understand is essential load
June 26, 20233 yr 19 hours ago, slipx said: The 5kW doesn't even have the UPS parameters under load, which as I understand is essential load You would expect the smaller inverters to have the additional parameters since there is many people wanting to get the most value out of smaller inverters. 🤦♂️
June 26, 20233 yr Author I have had a suspicion for a long time that what is reported depends on the systems configuration and features and setup and it is not a case of one shoe fits all. The best may be to use the _flow extracts and then build in the logic from what is reported there. From what I can see that is what is used in the main display on the app. Someone wants to donate me a invertors/few panels and a battery then I will happily setup a lab and experiment. Not going to be changing my current system as what is there works for me. Edited June 26, 20233 yr by Gary Waterworth
June 26, 20233 yr Hi all , i currently have the below issue with a Deye 5kw inverter showing my daily discharge as a total. How do i change this to daily?
June 26, 20233 yr 2 hours ago, Gary Waterworth said: The best may be to use the _flow extracts and then build in the logic from what is reported there. @Gary Waterworth, how do I get the UPS_Load_Power from the Gather Flows? What logic would I need to add? 2 hours ago, Gary Waterworth said: Someone wants to donate me a invertors/few panels and a battery then I will happily setup a lab and experiment. Would visitor accees to an 8K and a 12K system help?
June 26, 20233 yr Author 5 minutes ago, Muchachos said: @Gary Waterworth, how do I get the UPS_Load_Power from the Gather Flows? What logic would I need to add? Would visitor accees to an 8K and a 12K system help? You can try give me visitor access. My time is very limitted atm due to work. Also busy on my own rewrite of the automation side. I also dont have a seperate dev environment that I can plug into your plant atm. The documentation is crappy at best. Which region are you on? Edited June 26, 20233 yr by Gary Waterworth
June 26, 20233 yr I am in Region 1 but could arrange for access to Region 2 as well. Which region will work best for you?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.