This How-to describes the integration process to upload your data from Home Assistant to PVoutput. PVOutput is an online platform for monitoring and sharing solar power generation data. It allows users to upload their solar system data, track performance, and compare it with others worldwide.
- Open an account at https://pvoutput.org
- Go to settings and write down your API Key and Secret
- Go to your configuration.yaml and add the code provided
- Make sure you add your API KEY and SECRET
- Edit the sensor names in the bottom line under "payload" to your sensor names
- Restart Home Assistant
- Create an automation to upload frequently
⬆️ It will upload your data for:
- ☀️ Production
- ⚡ PV Power
- 🌡️ Outdoor Temperature
- 🔌 Grid Voltage
Add this code to your configuration.yaml
#############################################
# PVoutput | Upload to https://pvoutput.org #
#############################################
rest_command:
pvoutput_upload:
url: https://pvoutput.org/service/r2/addstatus.jsp
method: post
content_type: "application/x-www-form-urlencoded"
headers:
X-Pvoutput-Apikey: KEY
X-Pvoutput-SystemId: SECRET
payload: "d={{now().strftime('%Y%m%d')}}&t={{now().strftime('%H:%M')}}&v1={{(states('sensor.inverter_today_production')|float*1000)}}&v5={{(states('sensor.outdoor_temperature'))|round(0)}}&v6={{(states('sensor.inverter_grid_l1_voltage'))|round(0)}}&v2={{(states('sensor.inverter_pv_power'))|round(0)}}"
- This YAML code uploads your data every 10 minutes
- If you wish to upload a lower interval edit to max. 5 minutes
alias: PVOutput Uploader
description: Uploads values to PVOutput
triggers:
- minutes: /10
trigger: time_pattern
conditions: []
actions:
- data: {}
action: rest_command.pvoutput_upload
mode: single
If you would like to integrate PVupload to Home Assistant to read the data and create sensors, download the official integration from here:
Hope this helps someone.