evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Solar Forecast differs between front page and forecast page

Open picki72 opened this issue 1 year ago • 7 comments

Describe the bug

I've observed a difference between the remaining solar production displayed on the front page of the UI in comparison to the value displayed on the forecast page and the associated graphices.

Image Image

Steps to reproduce

This came up after replacing the direct solcast solar forecast by a json feed from Home Assistant. The feed should be OK as the details on the forecast page are consistent to the data provided via the HomeAssistant Sensor accessed by EVCC via a custom http access.

Configuration details

related section from the tariffs UI interface: 

solar: # list of pv generation forecast (additive)
- type: custom
  forecast:
    source: http
    uri: http://ip:8123/api/states/sensor.evcc_solcast_forecast
    headers:
      - Authorization: Bearer 123
      - Content-Type: application/json
    insecure: true
    jq: ".attributes.forecast | tostring"
    timeout: 2s


The output of the sensor used looks like follows: 
{"entity_id":"sensor.evcc_solcast_forecast","state":"69.91","attributes":{"forecast":[{"start":"2025-08-01T22:00:00Z","end":"2025-08-01T23:00:00Z","value":0.0},{"start":"2025-08-01T23:00:00Z","end":"2025-08-02T00:00:00Z","value":0.0},{"start":"2025-08-02T00:00:00Z","end":"2025-08-02T01:00:00Z","value":0.0},{"start":"2025-08-02T01:00:00Z","end":"2025-08-02T02:00:00Z","value":0.0},{"start":"2025-08-02T02:00:00Z","end":"2025-08-02T03:00:00Z","value":0.0},{"start":"2025-08-02T03:00:00Z","end":"2025-08-02T04:00:00Z","value":0.006},{"start":"2025-08-02T04:00:00Z","end":"2025-08-02T05:00:00Z","value":0.284},{"start":"2025-08-02T05:00:00Z","end":"2025-08-02T06:00:00Z","value":0.966},{"start":"2025-08-02T06:00:00Z","end":"2025-08-02T07:00:00Z","value":1.81},{"start":"2025-08-02T07:00:00Z","end":"2025-08-02T08:00:00Z","value":1.975},{"start":"2025-08-02T08:00:00Z","end":"2025-08-02T09:00:00Z","value":4.607},{"start":"2025-08-02T09:00:00Z","end":"2025-08-02T10:00:00Z","value":3.891},{"start":"2025-08-02T10:00:00Z","end":"2025-08-02T11:00:00Z","value":4.272},{"start":"2025-08-02T11:00:00Z","end":"2025-08-02T12:00:00Z","value":4.87},{"start":"2025-08-02T12:00:00Z","end":"2025-08-02T13:00:00Z","value":5.629},{"start":"2025-08-02T13:00:00Z","end":"2025-08-02T14:00:00Z","value":5.063},{"start":"2025-08-02T14:00:00Z","end":"2025-08-02T15:00:00Z","value":3.938},{"start":"2025-08-02T15:00:00Z","end":"2025-08-02T16:00:00Z","value":2.836},{"start":"2025-08-02T16:00:00Z","end":"2025-08-02T17:00:00Z","value":1.942},{"start":"2025-08-02T17:00:00Z","end":"2025-08-02T18:00:00Z","value":0.872},{"start":"2025-08-02T18:00:00Z","end":"2025-08-02T19:00:00Z","value":0.141},{"start":"2025-08-02T19:00:00Z","end":"2025-08-02T20:00:00Z","value":0.0},{"start":"2025-08-02T20:00:00Z","end":"2025-08-02T21:00:00Z","value":0.0},{"start":"2025-08-02T21:00:00Z","end":"2025-08-02T22:00:00Z","value":0.0},{"start":"2025-08-02T22:00:00Z","end":"2025-08-02T23:00:00Z","value":0.0},{"start":"2025-08-02T23:00:00Z","end":"2025-08-03T00:00:00Z","value":0.0},{"start":"2025-08-03T00:00:00Z","end":"2025-08-03T01:00:00Z","value":0.0},{"start":"2025-08-03T01:00:00Z","end":"2025-08-03T02:00:00Z","value":0.0},{"start":"2025-08-03T02:00:00Z","end":"2025-08-03T03:00:00Z","value":0.0},{"start":"2025-08-03T03:00:00Z","end":"2025-08-03T04:00:00Z","value":0.003},{"start":"2025-08-03T04:00:00Z","end":"2025-08-03T05:00:00Z","value":0.105},{"start":"2025-08-03T05:00:00Z","end":"2025-08-03T06:00:00Z","value":0.48},{"start":"2025-08-03T06:00:00Z","end":"2025-08-03T07:00:00Z","value":1.154},{"start":"2025-08-03T07:00:00Z","end":"2025-08-03T08:00:00Z","value":1.516},{"start":"2025-08-03T08:00:00Z","end":"2025-08-03T09:00:00Z","value":1.65},{"start":"2025-08-03T09:00:00Z","end":"2025-08-03T10:00:00Z","value":2.238},{"start":"2025-08-03T10:00:00Z","end":"2025-08-03T11:00:00Z","value":2.8},{"start":"2025-08-03T11:00:00Z","end":"2025-08-03T12:00:00Z","value":2.965},{"start":"2025-08-03T12:00:00Z","end":"2025-08-03T13:00:00Z","value":3.213},{"start":"2025-08-03T13:00:00Z","end":"2025-08-03T14:00:00Z","value":3.322},{"start":"2025-08-03T14:00:00Z","end":"2025-08-03T15:00:00Z","value":2.729},{"start":"2025-08-03T15:00:00Z","end":"2025-08-03T16:00:00Z","value":2.274},{"start":"2025-08-03T16:00:00Z","end":"2025-08-03T17:00:00Z","value":1.651},{"start":"2025-08-03T17:00:00Z","end":"2025-08-03T18:00:00Z","value":0.616},{"start":"2025-08-03T18:00:00Z","end":"2025-08-03T19:00:00Z","value":0.099},{"start":"2025-08-03T19:00:00Z","end":"2025-08-03T20:00:00Z","value":0.0},{"start":"2025-08-03T20:00:00Z","end":"2025-08-03T21:00:00Z","value":0.0},{"start":"2025-08-03T21:00:00Z","end":"2025-08-03T22:00:00Z","value":0.0}],"icon":"mdi:weather-sunny","friendly_name":"evcc_solcast_forecast"},"last_changed":"2025-08-02T11:56:49.196050+00:00","last_reported":"2025-08-02T11:56:49.196210+00:00","last_updated":"2025-08-02T11:56:49.196050+00:00","context":{"id":"abc","parent_id":null,"user_id":null}}

Log details

no relevant log entries underpinning this

What type of operating system or environment does evcc run on?

HomeAssistant Add-on

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

v0.206.1

picki72 avatar Aug 02 '25 13:08 picki72

Was sagt /api/state in dem Moment?

andig avatar Aug 02 '25 13:08 andig

I've observed a difference between the remaining solar production displayed on the front page of the UI in comparison to the value displayed on the forecast page and the associated graphices.

What's the difference? Your screenshot doesn't show one.

andig avatar Aug 02 '25 13:08 andig

On the frontpage it shows 0,0 kWh as forecasted production (right from „Erzeugung“) - when clicking on this link it leads to the forecast page where the forecast remaining for the day is 11 kWh as of the other screenshot above.

How can I find out /api/state when using EVCC as a HomeAssistant Addon? Happy to check this.

picki72 avatar Aug 02 '25 14:08 picki72

Just put in your Home Assitant IP: http://homeassistantip:7070/api/state

realwuffi avatar Aug 02 '25 15:08 realwuffi

On the frontpage it shows 0,0 kWh as forecasted production (right from „Erzeugung“) - when clicking on this link it leads to the forecast page where the forecast remaining for the day is 11 kWh as of the other screenshot above.

How can I find out /api/state when using EVCC as a HomeAssistant Addon? Happy to check this.

No, it shows 11 Wh, which get rounded down to 0,0 KWh

SolarPower2024 avatar Aug 02 '25 16:08 SolarPower2024

Was sagt /api/state in dem Moment?

Das ist nicht vom Zeitpunkt der Screenshots, aber so sieht das aus:

{"result":{"aux":[],"availableVersion":"0.207.0","battery":[{"title":"Solaredge Batterie","power":704,"capacity":4.6,"soc":58.88888931274414,"controllable":true}],"batteryCapacity":4.6,"batteryDischargeControl":true,"batteryEnergy":0,"batteryGridChargeActive":false,"batteryMode":"unknown","batteryPower":704,"batterySoc":58.889,"bufferSoc":0,"bufferStartSoc":0,"currency":"EUR","eebus":false,"ext":[],"forecast":{"solar":{"scale":1.0542603860163184,"today":{"energy":0.0010950738593793025,"complete":true},"tomorrow":{"energy":26.815,"complete":false},"dayAfterTomorrow":{"energy":0,"complete":false},"timeseries":[{"ts":"2025-08-02T00:00:00+02:00","val":0},{"ts":"2025-08-02T01:00:00+02:00","val":0},{"ts":"2025-08-02T02:00:00+02:00","val":0},{"ts":"2025-08-02T03:00:00+02:00","val":0},{"ts":"2025-08-02T04:00:00+02:00","val":0},{"ts":"2025-08-02T05:00:00+02:00","val":0.006},{"ts":"2025-08-02T06:00:00+02:00","val":0.284},{"ts":"2025-08-02T07:00:00+02:00","val":0.966},{"ts":"2025-08-02T08:00:00+02:00","val":1.81},{"ts":"2025-08-02T09:00:00+02:00","val":1.975},{"ts":"2025-08-02T10:00:00+02:00","val":4.607},{"ts":"2025-08-02T11:00:00+02:00","val":3.891},{"ts":"2025-08-02T12:00:00+02:00","val":4.272},{"ts":"2025-08-02T13:00:00+02:00","val":4.87},{"ts":"2025-08-02T14:00:00+02:00","val":5.629},{"ts":"2025-08-02T15:00:00+02:00","val":5.063},{"ts":"2025-08-02T16:00:00+02:00","val":3.938},{"ts":"2025-08-02T17:00:00+02:00","val":2.836},{"ts":"2025-08-02T18:00:00+02:00","val":1.942},{"ts":"2025-08-02T19:00:00+02:00","val":0.872},{"ts":"2025-08-02T20:00:00+02:00","val":0.141},{"ts":"2025-08-02T21:00:00+02:00","val":0},{"ts":"2025-08-02T22:00:00+02:00","val":0},{"ts":"2025-08-02T23:00:00+02:00","val":0},{"ts":"2025-08-03T00:00:00+02:00","val":0},{"ts":"2025-08-03T01:00:00+02:00","val":0},{"ts":"2025-08-03T02:00:00+02:00","val":0},{"ts":"2025-08-03T03:00:00+02:00","val":0},{"ts":"2025-08-03T04:00:00+02:00","val":0},{"ts":"2025-08-03T05:00:00+02:00","val":0.003},{"ts":"2025-08-03T06:00:00+02:00","val":0.105},{"ts":"2025-08-03T07:00:00+02:00","val":0.48},{"ts":"2025-08-03T08:00:00+02:00","val":1.154},{"ts":"2025-08-03T09:00:00+02:00","val":1.516},{"ts":"2025-08-03T10:00:00+02:00","val":1.65},{"ts":"2025-08-03T11:00:00+02:00","val":2.238},{"ts":"2025-08-03T12:00:00+02:00","val":2.8},{"ts":"2025-08-03T13:00:00+02:00","val":2.965},{"ts":"2025-08-03T14:00:00+02:00","val":3.213},{"ts":"2025-08-03T15:00:00+02:00","val":3.322},{"ts":"2025-08-03T16:00:00+02:00","val":2.729},{"ts":"2025-08-03T17:00:00+02:00","val":2.274},{"ts":"2025-08-03T18:00:00+02:00","val":1.651},{"ts":"2025-08-03T19:00:00+02:00","val":0.616},{"ts":"2025-08-03T20:00:00+02:00","val":0.099},{"ts":"2025-08-03T21:00:00+02:00","val":0},{"ts":"2025-08-03T22:00:00+02:00","val":0},{"ts":"2025-08-03T23:00:00+02:00","val":0}]}},

Plus more…

picki72 avatar Aug 02 '25 18:08 picki72

On the frontpage it shows 0,0 kWh as forecasted production (right from „Erzeugung“) - when clicking on this link it leads to the forecast page where the forecast remaining for the day is 11 kWh as of the other screenshot above. How can I find out /api/state when using EVCC as a HomeAssistant Addon? Happy to check this.

No, it shows 11 Wh, which get rounded down to 0,0 KWh

Well spotted. Thanks! I will have a look into the datapoints on that basis and close this issue.

picki72 avatar Aug 02 '25 18:08 picki72