PVoutput extended values V7 to V12

Somebody knows how to integrate extended values v7 to V12 into home assistant. Standard values integration no problem, this works fine. Is there for the extended values V7 to V12 a special name?
Thanks

I’d be interested to know this as well.

I would have liked to know as well.

You need to have donated to pvoutput to activate them for 12 months.

https://www.pvoutput.org/help/api_specification.html#id2

Hi,

I have donated, so that part is checked. My query is to get it into Home Assistant as my battery charge, solar charge, battery SCC etc is all in the extended values.

Thanks in advance.

Ahh data in from the Integration.

Doesn’t look like data In is setup for extended data to me (not that I can read python very well)
Although part of that reason is probably because that data is user-defined, so someone would need to suggest some defaults for people to setup I think.

PVoutput Integration sensor.py

Probably worth asking on the issues of PVoutput

pvoutput issues

You will probably need to provide some data from the response to

https://pvoutput.org/service/r2/getstatus.jsp

success message

and what you defined as your user defined datasets




In the meantime you may be able to do to it as a rest sensor sensor. It may need to be restful api. I have never done it like that myself.

It should look something abit like below, but you will have to fiddle with it.

sensor:
  - platform_rest:
    download_pvoutput_extended: 
    resource: 'https://pvoutput.org/service/r2/getstatus.jsp'
    headers:
      X-Pvoutput-Apikey: !secret PVo_api
      X-Pvoutput-SystemId: !secret PVo_sysID
      accept: "application/json, text/html"
    method: get
    json_attributes:
         - "ext7"
         - "ext8"
    

logging for rest in configuration.yaml

logger:   ####  Need to view full HA core logs and can be filtered 
  default: info
  logs:
    #  homeassistant.components.rest_command: debug
    homeassistant.components.rest.data: debug

This is the old config for before PVoutput became UI config, it may be helpful.
I think this will give an error now, due to the UI integration, if you tried to do it this way for the extra data.

sensor:
  - platform: pvoutput
    system_id: 12345
    api_key: your2349023not23230fake23923api239key
  - platform: template
    sensors:
      power_consumption:
        value_template: "{% if is_state_attr('sensor.pvoutput', 'power_consumption', 'NaN') %}0{% else %}{{ state_attr('sensor.pvoutput', 'power_consumption') }}{% endif %}"
        friendly_name: "Using"
        unit_of_measurement: "Watt"
      energy_consumption:
        value_template: '{{ "%0.1f"|format(state_attr("sensor.pvoutput", "energy_consumption")|float/1000) }}'
        friendly_name: "Used"
        unit_of_measurement: "kWh"
      power_generation:
        value_template: '{% if is_state_attr("sensor.pvoutput", "power_generation", "NaN") %}0{% else %}{{ state_attr("sensor.pvoutput", "power_generation") }}{% endif %}'
        friendly_name: "Generating"
        unit_of_measurement: "Watt"
      energy_generation:
        value_template: '{% if is_state_attr("sensor.pvoutput", "energy_generation", "NaN") %}0{% else %}{{ "%0.2f"|format(state_attr("sensor.pvoutput", "energy_generation")|float/1000) }}{% endif %}'
        friendly_name: "Generated"
        unit_of_measurement: "kWh"

Thank you. Will try and let you know how it turns out.

1 Like

Hello!

Did anyone manage to make Extended data V7 - V12 appear in Home Assistant?