Open elden1337 opened 1 year ago
A service call to alter the sensor would be nice! For the EV I can calculate the amount of energy and time needed (depending on SoC and charge limit) and then call the service to update the sensor. Also it would be nice to be able to set a time of day to complete before; i.e. the car should always be charged before 06:30…
U'r using this to charge? Interesting.
I'll have a look
@nord- i don't think i'd make it stick over reboots in that case. That would probably confuse more than help
U'r using this to charge? Interesting.
I'll have a look
Right now I'm using a template to calculate which hours are the best to charge. I get a start time, just like peaqnext. I use three inputs for the template:
The template adds hours car 1 + hours car 2 and finds the cheapest consecutive interval before the departure time.
Those could also be forged within peaqev scheduler service going forward. But, implementing a basic servicecall for this in this repo feels rather small in effort, i'll check
Just a suggestion for an extra option: It would be great is I could edit the time range (which is now set to 12 hours) per sensor. For some sensors I want my appliance to start within 12 hours, but for others it's no problem to start them tomorrow (so it could use all the hours for which a price is available in Nordpool).