Here are sensors I use from Fronius:
-
platform: template
sensors:
fronius_consumo_total:
friendly_name: ‘Consumo Total’
unit_of_measurement: “W”
value_template: >-
{{ ((float(states.sensor.fronius_p_grid.state) + float(states.sensor.fronius_p_pv.state)) ) | float | round(0) }} -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Fronius Energia Producida Hoy”
value_template: ‘{{ value_json.Body.Data.DAY_ENERGY.Value /1000 | int }}’
unit_of_measurement: kWh -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Fronius Energia Producida Año”
value_template: ‘{{ value_json.Body.Data.YEAR_ENERGY.Value /1000 | int }}’
unit_of_measurement: kWh -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Fronius Energia Producida Total”
value_template: ‘{{ value_json.Body.Data.TOTAL_ENERGY.Value /1000 | int }}’
unit_of_measurement: kWh -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0
name: “Fronius Energia Exportada Total”
value_template: ‘{{ value_json.Body.Data.EnergyReal_WAC_Sum_Produced /1000 | int }}’
unit_of_measurement: kWh -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0
name: “Fronius Energia Consumida Total SM”
value_template: ‘{{ value_json.Body.Data.EnergyReal_WAC_Sum_Consumed /1000 | int }}’
unit_of_measurement: kWh -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0
name: “Fronius Potencia SM”
value_template: ‘{{ value_json.Body.Data.PowerReal_P_Sum | int }}’
unit_of_measurement: W -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0
name: “Fronius Voltaje SM”
value_template: ‘{{ value_json.Body.Data.Voltage_AC_Phase_1 | int }}’
unit_of_measurement: V -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0
name: “Fronius Voltaje SM”
value_template: ‘{{ value_json.Body.Data.Voltage_AC_Phase_1 | int }}’
unit_of_measurement: V -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Fronius Voltaje DC”
value_template: ‘{{ value_json.Body.Data.UDC.Value }}’
unit_of_measurement: “V” -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Fronius Intensidad DC”
value_template: ‘{{ value_json.Body.Data.IDC.Value }}’
unit_of_measurement: “A” -
platform: rest
resource: http://192.168.0.5/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Fronius Intensidad AC”
value_template: ‘{{ value_json.Body.Data.IAC.Value }}’
unit_of_measurement: “A”