Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolarEdge Photovoltaik Production and Consumption as Daily Graph #427

Open
FFoXXaNN55 opened this issue Jul 4, 2024 Discussed in #320 · 2 comments
Open

SolarEdge Photovoltaik Production and Consumption as Daily Graph #427

FFoXXaNN55 opened this issue Jul 4, 2024 Discussed in #320 · 2 comments

Comments

@FFoXXaNN55
Copy link

Discussed in #320

Originally posted by citoki October 23, 2023
This is an implementation of Home Assistant Plotly graph library, to show a daily graph in a very similar way like the vendor iOS app is doing it.

Original Vendor App Plotly Graph Card
solaredge original app picture show graph of production and consumption Plotly Custom Graph implementation
type: custom:plotly-graph
hours_to_show: 12
refresh_interval: 30
entities:
  - entity: sensor.pv_ac_power_combined_integral
    name: PV Production
    statistic: state
    period: auto
    legendgroup: 1
    filters:
      - derivate
      - store_var: pv_ac_power
    line:
      width: 1
      color: palegreen
      shape: spline
    fill: tonexty
  - entity: sensor.solaredge_m1_exported_kwh
    name: Self Consumption
    statistic: state
    legendgroup: 2
    period: auto
    fill: tozeroy
    filters:
      - derivate: h
      - map_y: parseFloat(vars.pv_ac_power.ys[i]) - parseFloat(ys[i])
      - store_var: selfcons
    line:
      width: 1
      color: dodgerblue
      shape: spline
  - entity: sensor.solaredge_m1_imported_kwh
    name: Import
    statistic: state
    legendgroup: 3
    period: auto
    filters:
      - derivate
      - map_y: '(parseFloat(y[i-1]) === parseFloat(ys[i])) ? 0 : parseFloat(vars.selfconsys[i]) + parseFloat(ys[i])'
    line:
      width: 0
      color: lightsalmon
      shape: spline
    fill: tonexty

Some remarks:

  • I used standard CSS colours and didn't go for specific RGBA numbers
  • I use (SolarEdge Modbus Multi)[https://github.com/WillCodeForCats/solaredge-modbus-multi] integration to get SolarEdge data directly from the inverters every 10 seconds. It's needed to add RJ45 cable to the inverters, as Modbus isn't available via Wifi anymore
  • since I've got two inverters running I combine the photovoltaik production with an template
  • the data aggregation for the Solar Edge output API (iOS app) is 15 minutes and cannot be changed, therefore you'll see slightly different graph values

Edit: updated configuration after discussion here with some improvements

@FFoXXaNN55
Copy link
Author

Good morning to you,

Love you solaredge plotly, but i got a problem: the entity do not match my entities (see picture)
I only have 1 Solaredge inverter. WHich sensors should i pick from my list in order to have nice graph like you have?
solaredge1
i thought:

  • sensor.solaredge_ac_energy_kwh
  • sensor.solaredge_ac_power
  • sensor.solaredge_dc_power

But that didn't work

Is there something i am missing (something in configuation.yaml?) i have to add or ...

I am a newbie

@Saentist
Copy link

Saentist commented Jul 5, 2024

@FFoXXaNN55
why not put under self consumption

  - entity: sensor.solaredge_m1_exported_kwh
    name: Self Consumption
    filters:
      - multiply: -1

with will make negative values on graph /aka under zero graph/
It is more detailed and logical to be seen as negative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants