evcc-io / evcc

Solar Charging ☀️🚘
https://evcc.io
MIT License
3.64k stars 676 forks source link

Add more detailed functionality for SOC poll intervals - loadpoints, vehicleSoc #14946

Closed lewie closed 4 months ago

lewie commented 4 months ago

It would be very helpful if the actual SOC of the vehicle could be polled in more detail depending on the car status. This is because external logics and statistics require the current SOC in order to determine the next reading time, for example. It would therefore be helpful to be able to configure not just one, but several intervals at the same time.


loadpoints:
  soc:
    poll1:
      mode: charging
      interval: 60m
    poll2:
      mode: connected #not charging
      interval: 240m 
    poll3:
    mode: notConnected 
    interval: 120m

I am still quite new to this project. Maybe I'm missing something and the SOC interval(s) can be set differently? I am currently in the process of dynamically rewriting the evcc.yaml.

For context: Our VW e-UP can be polled remotely, but of course it makes no sense to query it every hour and run the risk of overloading the remote connection.

andig commented 4 months ago

That‘s on the roadmap once we have moved config into the ui. Will revisit at a later time.