In your inverter settings you can change the Night Mode setting which keeps the data connection online even when the inverter is not inverting. You will need to capture the solar generation value and modify the Unknown to be 0 so that the graphs and data look nicer and probably work better for any triggers\notifications you might want to run
- platform: rest
resource: http://SOLARINVERTER/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
name: "Raw Current Solar Power"
value_template: '{{ value_json.Body.Data.PAC.Value }}'
scan_interval: 10
I could probably do the data input validation in one statement but this works as a starting point.
I already had this up and running a long time before the Fronius integration came out so I haven’t implimented it yet. If I get a battery system then I may consider the module to see what it can do but the datamanager built into the system seems to be very very feature plenty
The latest updates have better error and connection handling to minimise night time logs and avoid having to change the inverter setting to be always reporting.
Invalid config for [sensor.fronius]: invalid url for dictionary value @ data['resource']. Got '192.168.0.196'. (See ?, line ?). Please check the docs at https://home-assistant.io/integrations/fronius/
Please help. I have tried with quotes and different indentations to no avail.
I notice the ‘Fronius Day Energy’ reports in MWh - how can I change that to KWh?
Is there also an entity available for Daily Energy Used (from the power meter)?
The “resource” is wrong. It should be like this (the documentation is confusing on this part):
resource: http://192.168.0.196
And the core integration does work…I tried it a few days ago just to see how it compares to the other integration by @safepay, which I am running 24/7 without major issues. And they have also changed the core integration so that it now publishes all readings as individual sensors and not as attributes.
@nilrog Thanks for clearing that up. If that’s the case though then the documentation needs to be updated as it is definitely unclear the way it is now. Fronius - Home Assistant
@nilrog. Thanks for the advice on prefixing http:// It was about the only thing I didn’t try!
I have it working now - however all of the measurements are in Watts. Do you know how I can display results in kW and kWh? The following commands don’t pass the config test.
power_units: W
units: kWh
Also some of the results have 10+ decimal points. How do you round them off?
@Delbz The core fronius integration is not as customisable as @safepay custom component at the moment. You could modify the sensors using template sensors
I’ve been working on enhancing the GUI.
Here’s my current energy screen.
Does anyone know how I can display the ‘rel_Autonomy’ field from the fronius API?
Hi, looks really nice, would you share that screen with me?
I am interested in the card for Grid Usage, don’t know how to do that and which kind of card you are using.
Hi Marcus, thanks for your quick response.
I have added the tod platform in configuration.yaml, so that part is ok, but for the manual card I have issues when I try to add it, I get just errors, I am quite new to home assistant, I guess I am doing something wrong. Tried to copy and past the color_tresholds: part to the manual card config but that doesn’t really work…
Maybe you can give me a hint.
thanks