Witam serdecznie. O to jak poradziłem sobie z podłączeniem Solplanet ASW_10K-LT-G2 do HA. Chcę w ten sposób pomóc. Trzeba zmienić swoje ip falownika i nr SZXXXXXXXXXXXX.
- platform: rest
resource: http://192.168.33.111:8484/getdevdata.cgi?device=2&sn=SZXXXXXXXXXXX
scan_interval: "00:00:10"
name: SP10KW Moc
value_template: "{{ value_json.pac | float / 1000 | round(2) }}"
unit_of_measurement: "kW"
- platform: rest
resource: http://192.168.33.111:8484/getdevdata.cgi?device=2&sn=SZXXXXXXXXXXX
scan_interval: "00:01:00"
name: SP10KW Suma
device_class: energy
state_class: total_increasing
value_template: "{{ value_json.eto | float / 10}}"
unit_of_measurement: "kWh"
- platform: rest
resource: http://192.168.33.111:8484/getdevdata.cgi?device=2&sn=SZXXXXXXXXXXX
scan_interval: "00:01:00"
name: SP10KW Dziś
device_class: energy
state_class: total_increasing
value_template: "{{ value_json.etd | float / 10}}"
unit_of_measurement: "kWh"
- platform: rest
resource: http://192.168.33.111:8484/getdevdata.cgi?device=2&sn=SZXXXXXXXXXXX
scan_interval: "00:01:00"
name: SP10KW Temp
value_template: "{{ value_json.tmp | float / 10}}"
unit_of_measurement: "°C"
- platform: rest
resource: http://192.168.33.111:8484/getdevdata.cgi?device=2&sn=SZXXXXXXXXXXX
scan_interval: "00:00:10"
name: SP10KW
json_attributes:
- flg
- tim
- pac
- etd
- hto
- eto
- vac
- tmp
- iac
- vpv
- ipv
- fac
- err
value_template: "{{ value_json.flg}}"
- platform: template
sensors:
falownik_vac3:
friendly_name: "SP10KW ACF3-V"
value_template: "{{ (state_attr('sensor.sp10kw', 'vac')[0] | float(0) / 10)}}"
unit_of_measurement: "V"
falownik_vac1:
friendly_name: "SP10KW ACF1-V"
value_template: "{{ (state_attr('sensor.sp10kw', 'vac')[1] | float(0) / 10)}}"
unit_of_measurement: "V"
falownik_vac2:
friendly_name: "SP10KW ACF2-V"
value_template: "{{ (state_attr('sensor.sp10kw', 'vac')[2] | float(0) / 10)}}"
unit_of_measurement: "V"
falownik_iac3:
friendly_name: "SP10KW ACF3-A"
value_template: "{{ (state_attr('sensor.sp10kw', 'iac')[0] | float(0) / 10)}}"
unit_of_measurement: "A"
falownik_iac1:
friendly_name: "SP10KW ACF1-A"
value_template: "{{ (state_attr('sensor.sp10kw', 'iac')[1] | float(0) / 10)}}"
unit_of_measurement: "A"
falownik_iac2:
friendly_name: "SP10KW ACF2-A"
value_template: "{{ (state_attr('sensor.sp10kw', 'iac')[2] | float(0) / 10)}}"
unit_of_measurement: "A"
falownik_vpv1:
friendly_name: "SP10KW PV1-V"
value_template: "{{ (state_attr('sensor.sp10kw', 'vpv')[0] | float(0) / 10)}}"
unit_of_measurement: "V"
falownik_vpv2:
friendly_name: "SP10KW PV2-V"
value_template: "{{ (state_attr('sensor.sp10kw', 'vpv')[1] | float(0) / 10)}}"
unit_of_measurement: "V"
falownik_ipv1:
friendly_name: "SP10KW PV1-A"
value_template: "{{ (state_attr('sensor.sp10kw', 'ipv')[0] | float(0) / 100)}}"
unit_of_measurement: "A"
falownik_ipv2:
friendly_name: "SP10KW PV2-A"
value_template: "{{ (state_attr('sensor.sp10kw', 'ipv')[1] | float(0) / 100)}}"
unit_of_measurement: "A"
falownik_hto:
friendly_name: "SP10KW Czas Pracy"
value_template: "{{ (state_attr('sensor.sp10kw', 'hto') | float(0) / 10)}}"
unit_of_measurement: "h"
falownik_err:
friendly_name: "SP10KW Awaria"
value_template: "{{ state_attr('sensor.sp10kw', 'err') }}"
unit_of_measurement: ""