Fronius inverter integration

yes I haev installed the mini-graph-card but had to restart the server, now it looks good. Do you know if I can set the timeinterval to update the figures so it will be shorter?

Sure.

And for house energy consumption (I think you need to be a paid donator to PVOutput for this to display)

Hi Delbz,

That’s a great view you have there.

I managed to setup the Energy and Grid Usage based on the codes you provided…

Are you able to provide the ‘Solar & Consumption’ and ‘Power’ cards as well?

Thank you in advance.

@Delbz, thanks for posting those inspirational views :slight_smile:
I started reworking my setup and used your views as base and so far ended up with this…still tweaking the setup.

Sure.

Solar and Consumption - Note I had to create a new sensor in configuration.yaml called ‘sensor.fronius_house_load_pos’ to display the ‘house load’ number as a positive - it’s negative by default.

sensor:
  - platform: template
      sensors:
        fronius_house_load_pos:
          value_template: "{{ (states('sensor.fronius_house_load') |float) | abs }}"
entities:
  - color: '#27ae60'
    entity: sensor.fronius_panel_status
    name: Solar Gen
  - color: '#e74c3c'
    entity: sensor.fronius_house_load_pos
    name: House Usage
    show_state: true
  - aggregate_func: min
    color: gray
    entity: binary_sensor.night
    name: Night Time
    show fill: true
    show legend: false
    show_line: false
    show_points: false
    show_state: true
    smoothing: false
    y_axis: secondary
hours_to_show: 72
name: Solar & Consumption
points_per_hour: 1
show:
  extrema: true
  labels: false
  labels_secondary: false
  smoothing: false
state_map:
  - label: Day
    value: 'off'
  - label: Night
    value: 'on'
type: 'custom:mini-graph-card'

and Power Card

inner:
  colors:
    - color: var(--label-badge-green)
      value: 4.5
    - color: var(--label-badge-yellow)
      value: 3
    - color: var(--label-badge-red)
      value: 0
  entity: sensor.fronius_panel_status
  label: Gen
max: 8
min: 0
outer:
  colors:
    - color: var(--label-badge-red)
      value: 5
    - color: var(--label-badge-yellow)
      value: 3
    - color: var(--label-badge-blue)
      value: 0
  entity: sensor.fronius_house_load_pos
  label: Using
title: Power (kW)
type: 'custom:dual-gauge-card'


Thanks mate. They all look great except for the sensor.energy_consumption which is constantly showing 0.0

Thank you so much for this, my pvoutput push is identical to yours but I can’t make sense of my pvoutput data. Does this look similar to yours?

This is todays data, I haven’t been home so my power usage certainly shouldn’t be 17kw

Solarweb:

PvOutput:

image

I really want to get that 13kWH export and 2.14 kWh import into HA so I can calculate power cost for the day. Does your solarweb data match pvoutput or am I reading this wrong? Thank you.

@dave122 Those figures look reasonable to me. Note that Solarweb Energy Balance chart only reports to the last hour so it’s often behind PVOutput. In summer my house uses 6-12 kWH from midnight to dawn depending on how much the AC has been running - so what you have makes sense. If you are importing your consumption into PVOutput you can easily calculate and see the daily costs.

Here’s mine from https://pvoutput.org/intraday.jsp?id=28907&sid=45948
$10.66 net cost for yesterday.

To see a daily report you select the “Show Generation/Export view” (The second square just above the word minimise in this screenshot).

Hi @safepay I have been using your Fronius custom_component since you released it, and its great, however I’m fairly sure the totals are incorrect. As you can see below, the values are huge given that they are set as MWh. I have had the system approximately one year
image

I’m thinking those values are actually supposed to be Wh, because dividing the total by 1M would give approximately 7.9MWh which works out to an average of 21kWh / day, which is what I see in the states:
image

Have you noticed this on your system?, or anyone else?

@sparkydave I just looked at this today as well and tried all kind of units and also believed that the integrations shows wrong. However if you look directly to your inverters api. In my case: http://192.168.0.3/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData

You will see that it reports in Wh- So the integration shows correct. It just changes the unit. I suppose you and me want it to recalculate the totals if you switch to MVh. I does not do this now.

@planet4 @sparkydave
I have my setup set to convert to kWh and my sensor in HA shows correct values in kWh, not just that the unit is in kWh.

image

image

That said, i’m running my own fork that has some more changes in it. But I don’t think I have touched anything in this part.

Oh, you are running the latest released version using HACS right? If so then I think this conversion is actually broken for you. I submitted some fixes that are in master. But since there has not been any new release you will not get those fixes, unless you manually download the integration from github.

I just saw that @safepay has updated the repo so I have updated (via HACS) and will restart HA to see how it goes.

EDIT: looking good so far :slight_smile:

EDIT 2: the daily energy production value is now also in MWh which I think for most of us is too large. My daily is normally about 30kWh on a sunny day. It would be best to have the daily in kWh rather than MWh.

@sparkydave Looks good for me so far. Did you change the settings like below? I did. It should be defaault with MWh for year but try to add this as well-

  units: MWh
  power_units: kW

MWh is good for yearly output but daily really needs to be kWh. The config doesn’t give the option to change one without the other. I can just create a template sensor for it

Agree. I noticed that now. Will now start to build some fancy Fronius smart meter and energy consumption lovelace cards. Share if you have something nice!

@Fredrik. will be happy if you can share your cards for Fronius Smartmeter and energy consumption. I really struggle a bit with my setup here. I am currently using iobroker and get all the data from my Fronius via Modbus, that is really fast and works well so far. Now I am trying to get data in homeassistant via Modbus, but that is a bit too tricky for me, so I will use the Fronius integtration for now.

Not sure how nice others might think it is but I created this with picture-elements, mini-graph and fold-entity-row.

which opens to this when you click the ‘status’ text below the inverter output

currently no output because its 0415 and dark. Unfortunately the energy generated this year doesn’t retain when there is no comms to the inverter

@sparkydave Nice! I like the idea. However I do not think the Fronius inverter itself is a masterpice of design.

@dietlman I am using modbus from Fronius to the SmartMeter. I think you must do this. Then I get all the data from ethernet and the inverter. Not sure why I should use only modbus.

I have not designed all things yet. I got some great inspiration from @Delbz. However it seems like the dual gauge is broken in 0.107.

I think I will use the bignumber card to display it like this:
fronius2

I have also sent all data to MQTT and I am displaying this omn my Magic Mirror so that the family can view consumption and production.

Very true. It was mainly just a way for me to experiment with picture-elements and I’ll likely change it at some point when I get time, probably to gauges or bar graphs