Fronius_Inverter_Datamanager_2 for Home Assistant
Home-Assistant reader for the Fronius Inverters Datamanager 2 card.
This components links to your Fronius Inverters Datamanager card, and it shows the values received from the Datamanager card.
The files needed, you find on my github: https://github.com/pesor/Fronius_Inverter_Datamanager_2
The following information is either retrieved or calculated:
- Timestamp for last retrival of data
- Production right now - in Watt
- Produced since last sunrise - in kWh, 3 decimals
- Produced this month - in kWh, 2 decimals
- Produced this year - in kWh, 0 decimals
- Produced since installation of card (start of inverter) - in kWh, 0 decimals
- AC voltage
- AC current - 2 decimals
- AC frequence - 2 decimals
- DC voltage
- DC current - 2 decimals.
When Inverter goes off-line, the following info is retained.
- Timestamp
- Produced since last sunrise
- Produced this month
- Produced this year
- Produced in total
Call the data manager
The data manager is called via its IP-address, with the following URL: http://{ip_address}/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataCollection=CommonInverterData
Usage of the data manager’s push function
As the data retrieved via the url above does not contain a valid ‘‘produced today’’ value, it is necessary to enable the ‘‘PUSH_SERVICE’’ of the Data Manager Card.
This require that you have a ftp site/posibility to ftp to the homeassistant configuration folder, to where you can push your data, and then call them via the build in function in this custom-components.
You enable the ‘‘PUSH_SERVICE’’ on the html function of the Data Manager, but using a browser and key in http://{ip_address} Go to settings, and choose ‘‘PUSH_SERVICE’’ and follow the instructions on the screen. You must use Dataformat: ''SolarAPI v1 - Logdata - Data, and choose the lowest interval, which is 1 hour.
You then fill in the ftp info, and user and password to your ftp account.
The daily production will then update approx. every hour from sunrise to sunset.
The daily production will be reset at every sunrise.
Installation
Copy the ‘‘fronius_inverter_data_mgt’’ into the custom_components directory of your Home Assistant configuration directory.
Configuration
Configuration.yaml entry: sensor: - platform: fronius_inverter_data_mgt ip_address: LOCAL IP FOR FRONIUS Data manager card file_name: fronius_push.json (suggestion)
In your Home-Assistant configuration directory, you should create the following files:
- fronius_month.txt (contains the calculated current month production in kWh)
- fronius_monthenergy.txt (contains the year production until end last month in kWh)
- fronius_yearenergy.txt (contains the year production to date in kWh)
- fronius_totalenergy.txt (contains the total amount of produced kWh since start of datalogger/inverter in kWh
You can edit the files as you like when you start the program, so that figures are shown correctly in Home-Assistant.
Presentation
At the moment numbers are formattet according to the standard used in most non English speaking countries, using dot as thousand separator, and comma as decimal point.
I will in a future release, implement the possibility to use the US/UK format.