evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Solcast Tariff not respecting "from" and "to" configuration

Open sutixp opened this issue 10 months ago • 2 comments

Description

After I had problems with optimizer together with solcast (https://github.com/evcc-io/evcc/issues/26556#issue-3796264486) I wondered why my solcast forecast had problems updating and made a trace log for solcast. I configured solcast tariff to update every 3 hours starting from 5 to 18. That means I would have expected updates at 5, 8, 11, 14, 17. (I have two sites, so I have to reduce the calls to 5 per site a day to respect the 10 api calls limit of solcast) In the trace log you can see, that the "from" and "to" are not respected and api calls are performed every 3 hours also during night. Therefore, I get the error "too many requests" from solcast and the consequence is that the optimizer will produce errors (optimizer: not enough slots for optimization; solar=0).

Is there an error in solcast not respecting from and to configuration?

Steps to Reproduce

Setup evcc with solcast tariff configuring start and stop

Configuration (YAML)


###################### Log #######################
log: info
levels:
  #lp-1: debug
  #site: debug
  #co2: debug
  #go-e: debug
  #vw: debug
  #main: debug
  #httpd: debug
  solcast: trace

Configuration (UI)

{
  "site": {
    "title": "Zuhause",
    "grid": "db:5",
    "pv": ["db:3"],
    "battery": ["db:4"],
    "aux": null,
    "ext": null
  },
  "loadpoints": [
    {"id":2,"name":"db:2","charger":"db:1","vehicle":"db:11","title":"Carport","defaultMode":"","priority":0,"phasesConfigured":0,"minCurrent":6,"maxCurrent":16,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"planEnergy":0,"planTime":"0001-01-01T00:00:00Z","planPrecondition":0,"limitEnergy":0,"limitSoc":0,"planStrategy":{"continuous":false,"precondition":0},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true}}
  ],
  "charger": [
    {"config":{"host":"192.168.178.13","template":"go-e-v3"},"deviceProduct":"go-e Charger Gemini","id":1,"name":"db:1","type":"template"}
  ],
  "meter": [
    {"config":{"battery":"1","baudrate":9600,"host":"192.168.178.8","id":247,"maxacpower":10000,"maxchargepower":"10000","maxdischargepower":"10000","maxsoc":"100","minsoc":"10","modbus":"tcpip","template":"goodwe-hybrid","usage":"pv"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","deviceTitle":"GW_Inverter","id":3,"name":"db:3","type":"template"},
    {"config":{"battery":"1","baudrate":9600,"host":"192.168.178.8","id":247,"maxacpower":"0","maxchargepower":"10000","maxdischargepower":"10000","maxsoc":"100","minsoc":"10","modbus":"tcpip","template":"goodwe-hybrid","usage":"grid"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","id":5,"name":"db:5","type":"template"},
    {"config":{"battery":"1","baudrate":9600,"capacity":10.6,"host":"192.168.178.8","id":247,"maxacpower":"0","maxchargepower":5000,"maxdischargepower":5000,"maxsoc":"100","minsoc":"10","modbus":"tcpip","template":"goodwe-hybrid","usage":"battery"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","deviceTitle":"PylonH2_Battery","id":4,"name":"db:4","type":"template"}
  ],
  "vehicle": [
    {"config":{"capacity":"","icon":"generic","identifiers":["Gast (grau)"],"maxCurrent":16,"minCurrent":6,"phases":"","template":"offline","title":"Gast"},"deviceProduct":"Generisches Fahrzeug (ohne API)","id":8,"name":"db:8","type":"template"},
    {"config":{"cache":"15m","capacity":58,"icon":"car","identifiers":["Manuel (schwarz)","Jutta (orange)"],"maxCurrent":16,"maxPower":10400,"minCurrent":6,"password":"***","phases":"","template":"vw","timeout":"10s","title":"ID.3","user":"***","vin":"***"},"deviceProduct":"Volkswagen We Connect ID","id":11,"name":"db:11","type":"template"}
  ],
  "tariffs": "currency: EUR

grid: # price using energy from the grid
  type: fixed
  price: 0.2318 # EUR/kWh
  zones: #Workaround to simulate dynamic price feautures
    - days: Mo-Fr
      hours: 2-5
      price: 0.2318

feedin: # price for feeding solar energy to the grid
  type: fixed
  price: 0.0785 # EUR/kWh

co2: # carbon intensity forecast
  type: template
  template: electricitymaps-free
  token: *****
  zone: DE

solar: # list of pv generation forecast (additive)
- type: template
  template: solcast
  site: 113b-9093-e85b-83aa
  token: *****
  from: 5
  to: 18
  interval: 3h
- type: template
  template: solcast
  site: d0cf-67e4-19d9-3485
  token: *****
  from: 5
  to: 18
  interval: 3h
  "mqtt": {"broker":"","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
  "influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
  "shm": {"vendorId":"","deviceId":""},
  "interval": 30
}

Version

v0.300.3

System

linux/arm64, CET +01:00

sutixp avatar Jan 14 '26 07:01 sutixp

@TomF79 from/to is not even added to the rendered template. Need to either deprecate the parameters or add them to the render block.

andig avatar Jan 14 '26 08:01 andig