Hi Michal,
I have both the IoTaWatt and a Fronius inverter as well.You donāt need the Fronius Smart Meter since the inverter will give you all the solar data and the rest you can get with the IoTaWatt.
Integration is super easy for both of them.
Fronius:
Use the custom_component
by SafePay. Itās in HACS. It is better than the core HA integration.
IoTaWatt:
This is also really easy. There is an integration in the making which I believe you can install as a custom_component
as well but I just use rest sensors.
sensor:
- platform: rest
name: IoTaWatt
json_attributes:
- inputs
- outputs
resource: http://192.168.0.16/status?inputs=yes&outputs=yes
value_template: '{{ value_json.inputs[0].Vrms }}v'
scan_interval: 5
- platform: template
sensors:
iotawatt_channel_1:
friendly_name: 'Grid Red Phase Power'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][1].Watts }}'
iotawatt_channel_2:
friendly_name: 'Grid White Phase Power'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][2].Watts }}'
iotawatt_channel_3:
friendly_name: 'Grid Blue Phase Power'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][3].Watts }}'
iotawatt_channel_4:
friendly_name: 'Light Circuits Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][4].Watts }}'
iotawatt_channel_5:
friendly_name: 'Power Circuit 1 Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][5].Watts }}'
iotawatt_channel_6:
friendly_name: 'Power Circuit 2 Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][6].Watts }}'
iotawatt_channel_7:
friendly_name: 'Power Circuit 3 Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][7].Watts }}'
iotawatt_channel_8:
friendly_name: 'Power Circuit 4 Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][8].Watts }}'
iotawatt_channel_9:
friendly_name: 'Oven Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][9].Watts }}'
iotawatt_channel_10:
friendly_name: 'Air Con Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][10].Watts }}'
iotawatt_channel_11:
friendly_name: 'Shed Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][11].Watts }}'
iotawatt_channel_12:
friendly_name: 'Bore Red Phase Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][12].Watts }}'
iotawatt_channel_13:
friendly_name: 'Bore White Phase Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][13].Watts }}'
iotawatt_channel_14:
friendly_name: 'Bore Blue Phase Power Consumption'
unit_of_measurement: 'W'
value_template: '{{ states.sensor.iotawatt.attributes["inputs"][14].Watts }}'
Using similar code to above you can pull the āoutputā data from the IoTaWatt as well. I donāt currently have any setup but all you need to do is add extra template sensors as per above but replacing āinputā with āoutputā.
Ignore the bad figures in the below as I need to adjust the settings in my IoTaWatt when I get a chance. I think some inputs are set to the wrong phase so totals arenāt lining up as they should.