Lux Inverter

Is it possible for this site to pull data from my inverter. It is a lux hybrid inverter.
I read a bit on the site but it is all a bit confusing for me.

So is this possible or not ?

Probably not possible unless they have an API to access your site data.

Depending on the model of inverter that you have you could take a look at https://github.com/celsworth/lxp-bridge

Your other option would be to install some sort of energy monitoring solution which is more open to extracting / exporting data to third-parties.

did you manage to get this working?

I did it with Home assisstnat.

@tomaki Could you give a bit more detail about how you got this working? I found this YAML and used it as the basis for my LuxPowerTek.Any help would be appreciated.

rest_command:
  update_pvoutput:
  url: https://pvoutput.org/service/r2/addstatus.jsp
  method: post
  content_type: "application/x-www-form-urlencoded"
  headers:
         X-Pvoutput-Apikey: 
         X-Pvoutput-SystemId: 
  payload: >-
        d={{now().strftime("%Y%m%d")}}
        &t={{now().strftime("%H:%M")}}
        &c1=2
        &v1={{(states('sensor.lux_solar_output_live'))|round(0) }}
        &v3={{(states('sensor.lux_home_consumption_live'))|round(0) }}
        &v7={{(states('sensor.lux_solar_output_array_1_live'))|round(0) }}
        &v8={{(states('sensor.lux_solar_output_array_2_live'))|round(0) }}

https://github.com/guybw/LuxPython_DEV.git

Write to you more later

@tomaki I am already using Guy’s Integration. It is fantastic. It is the PVOutput side I am struggling with.

My site is 97627

You have to create rest command with all your sensors. Like it was above. My looks like this

pvoutput_generation:
method: POST
url: https://pvoutput.org/service/r2/addstatus.jsp
headers:
  X-Pvoutput-Apikey: !secret pvoutput_api_key
  X-Pvoutput-SystemId: !secret pvoutput_system_id
payload: 'd={{now().strftime("%Y%m%d")}}&t={{now().strftime("%H:%M")}}&v1={{states.sensor.powermon_totalsolar.state|round(1)*(1000)}}&v2={{states.sensor.sum_two_inverters.state|round(0)}}&v4={{states.sensor.used_pvoutput.state}}&v5={{states.sensor.dom_temperature.state}}&v6={{states.sensor.voltage_mean.state}}&v10={{states.sensor.lux_battery_discharge_live.state}}&v9={{states.sensor.lux_battery_charge_live.state}}&v11={{states.sensor.lux_battery.state}}'
content_type: "application/x-www-form-urlencoded"

In v1,v2,v3… put states of your sensors. You can check it in homeassistant → developer tools

All the information of this parametrs you have in documentation of pvoputput api

And then set automation:

alias: PVOutput Uploader (rest_command)

description: Uploads values to PVOutput
trigger:

  • platform: time_pattern
    minutes: /5
    seconds: “0”
    condition: []
    action:
  • service: rest_command.pvoutput_generation
    data: {}
    mode: single

Thanks for the info. Can you get your extended values on the same graph? If you look at mine, I can only get one. I can’t see what I am missing. It is being uploaded, I get a 200. It will only show the first one I upload.

My extended graph

I think I will upload my battery as well.