platform: template
sensors:
pv_01_voltage:
friendly_name: “String 1 napięcie”
unit_of_measurement: ‘V’
icon_template: mdi:flash-alert-outline
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘pv_string_01_voltage’) }}”
pv_02_voltage:
friendly_name: “String 2 napięcie”
unit_of_measurement: ‘V’
icon_template: mdi:flash-alert-outline
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘pv_string_02_voltage’) }}”
pv_01_current:
friendly_name: “String 1 natężenie”
unit_of_measurement: ‘A’
icon_template: mdi:current-dc
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘pv_string_01_current’) }}”
pv_02_current:
friendly_name: “String 2 natężenie”
unit_of_measurement: ‘A’
icon_template: mdi:current-dc
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘pv_string_02_current’) }}”
m_grid_a_voltage:
friendly_name: “Faza 1 V (m)”
unit_of_measurement: ‘V’
icon_template: mdi:flash-alert-outline
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘grid_A_voltage’) }}”
m_grid_b_voltage:
friendly_name: “Faza 2 V (m)”
unit_of_measurement: ‘V’
icon_template: mdi:flash-alert-outline
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘grid_B_voltage’) }}”
m_grid_c_voltage:
friendly_name: “Faza 3 V (m)”
unit_of_measurement: ‘V’
icon_template: mdi:flash-alert-outline
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘grid_C_voltage’) }}”
phase_a_current:
friendly_name: “Faza 1 A (f)”
unit_of_measurement: ‘A’
icon_template: mdi:current-ac
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘phase_A_current’) }}”
phase_b_current:
friendly_name: “Faza 2 A (f)”
unit_of_measurement: ‘A’
icon_template: mdi:current-ac
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘phase_B_current’) }}”
phase_c_current:
friendly_name: “Faza 3 A (f)”
unit_of_measurement: ‘A’
icon_template: mdi:current-ac
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘phase_C_current’) }}”
pv_input_power:
friendly_name: “Produkcja DC”
unit_of_measurement: ‘W’
icon_template: mdi:solar-power
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘input_power’) }}”
power_meter_active_power:
friendly_name: “Zużycie prądu”
unit_of_measurement: ‘W’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘power_meter_active_power’) }}”
active_grid_a_power:
friendly_name: “Zużycie A”
unit_of_measurement: ‘W’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘active_grid_A_power’) }}”
active_grid_b_power:
friendly_name: “Zużycie B”
unit_of_measurement: ‘W’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘active_grid_B_power’) }}”
active_grid_c_power:
friendly_name: “Zużycie C”
unit_of_measurement: ‘W’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘active_grid_C_power’) }}”
m_grid_exporterd_energy:
friendly_name: “Prąd oddany do sieci”
unit_of_measurement: ‘kWh’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘grid_exported_energy’) }}”
m_grid_accumulated_energy:
friendly_name: “Prąd pobrany z sieci”
unit_of_measurement: ‘kWh’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘grid_accumulated_energy’) }}”
daily_yield:
friendly_name: “Produkcja dziś”
unit_of_measurement: ‘kWh’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘daily_yield’) }}”
total_yield:
friendly_name: “Produkcja total”
unit_of_measurement: ‘kWh’
icon_template: mdi:transmission-tower
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘total_yield’) }}”
pv_temperatura:
friendly_name: “Temperatura falownika”
unit_of_measurement: ‘°C’
value_template: “{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘internal_temperature’) }}”
pv_efficiency:
friendly_name: “Efetywność Falownika”
unit_of_measurement: ‘%’
value_template: >
{% if state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘efficiency’)|float < 100 %}
{{ state_attr(‘sensor.sun2000_6ktl_m1_gin300_6ktl_m1’, ‘efficiency’) }}
{% else %}
0
{% endif %}
energy_used:
friendly_name: “Zużycie prądu dom”
unit_of_measurement: ‘kWh’
value_template: >
{{ ‘%0.2f’ | format(states(‘sensor.total_yield’) | float -
states(‘sensor.m_grid_exporterd_energy’) | float +
states(‘sensor.m_grid_accumulated_energy’) | float) }}