Not sure if it depends on the datamanager card installed or the inverter user but this is how i got mine working
- platform: rest
resource: http://ip-of-inverter/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Day Total”
value_template: ‘{{ value_json.Body.Data.DAY_ENERGY.Value /1000 | int }}’
unit_of_measurement: “kWh” - platform: rest
resource: http://ip-of-inverter/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: “Year Total”
value_template: ‘{{ value_json.Body.Data.YEAR_ENERGY.Value /1000 | int }}’
unit_of_measurement: “kWh”
the /1000 in the value template brings the units into kWh but i cant seem to be able to round the figure to 2 decimal places (eg 1234.56), tried converting to an integer as above but that doesn’t seem to want to play nice either