Koad
Members
-
Joined
-
Last visited
Reputation Activity
-
Koad reacted to slipx in My Sunsynk 8Kw & data collection setupIf you want to try this card in home assistant follow these steps.
1. Create a new directory under www/community/ and name it sunsynk-card. If you don't have HACS installed you can create directory directly under www and reference in step 3 below.
2. Copy the attached sunsynkcard.js into the directory
3. Add the resource to your Dashboard
4. Add the Custom: Sunsynk Card to your Dashboard view. Select Show Code editor
5. Replace all the code with the contents from the card configuration file card configuration.txt
6. Scroll down to bindings and replace the sensors with your own
bindings: - bind: return hass.states["sensor.pv1_power"].state + ' W' selector: '#pv1_power_186' type: html - bind: return hass.states["sensor.pv2_power"].state + ' W' selector: '#pv2_power_187' type: html - bind: return hass.states["sensor.sunsynk_totalsolar"].state + ' W' selector: '#pvtotal_power' type: html - bind: return hass.states["sensor.battery_voltage"].state + ' V' selector: '#battery_voltage_183' type: html - bind: return hass.states["sensor.battery_soc"].state + ' %' selector: '#battery_soc_184' type: html - bind: return hass.states["sensor.battery_output_power"].state + ' W' selector: '#battery_out_190' type: html - bind: return hass.states["sensor.inverter_output_power"].state + ' W' selector: '#inverter_out_175' type: html - bind: return hass.states["sensor.inverter_output_current"].state + ' A' selector: '#inverter_out_164' type: html - bind: return hass.states["sensor.aux_output_power"].state + ' W' selector: '#aux_power_166' type: html - bind: return hass.states["sensor.sunsynk_essential_load"].state + ' W' selector: '#ess_power' type: html - bind: return hass.states["sensor.grid_inverter_voltage"].state + ' V' selector: '#inverter_grid_voltage_154' type: html - bind: return hass.states["sensor.load_frequency"].state + ' Hz' selector: '#inverter_load_freq_192' type: html - bind: return hass.states["sensor.grid_inverter_load"].state + ' W' selector: '#inverter_load_grid_167' type: html - bind: return hass.states["sensor.grid_external_power"].state + ' W' selector: '#grid_external_power_172' type: html - bind: >- return parseInt(hass.states["sensor.grid_external_power"].state) - parseInt(hass.states["sensor.grid_inverter_load"].state) + ' W' selector: '#non_ess_power' type: html Maybe someone smart can package this as a proper HACS frontend resource