elden1337 / hass-peaqnext

Utility sensors to help find the next best usage of your appliances
Other
7 stars 0 forks source link

Add options flow to alter, delete and add sensors #4

Open elden1337 opened 1 year ago

groen-sb commented 1 year ago

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).

nord- commented 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…

elden1337 commented 1 year ago

U'r using this to charge? Interesting.

I'll have a look

elden1337 commented 1 year ago

@nord- i don't think i'd make it stick over reboots in that case. That would probably confuse more than help

nord- commented 1 year ago

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.

elden1337 commented 1 year ago

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