node-red-contrib-power-saver icon indicating copy to clipboard operation
node-red-contrib-power-saver copied to clipboard

Feature request: On / Off (Away) / Auto functionality for the schedulers?

Open marhoy opened this issue 3 years ago • 6 comments
trafficstars

In most cases where it's nice to use these schedulers, I also have the need to sometimes manually override the automatic scheduler. Examples:

  • If I'm on vacation, I want the water boiler to be off and heating setpoints to be set to some low temperature.
  • If I use a lot of hotwater (filling a bathtub, etc.), and need more as soon as possible, I want the water boiler to just be "On" for a while, no matter what the electricity price is.

Currently, I have implemented such logic by using an input_selector in HA, and writing to / checking a flow-variable to figure out what mode we're in. But I think it would be much more elegant (and easier for beginners) if this type of logic could be built right into the schedulers themselves. The mode could be received as a dynamic config, and the behaviour could be:

Mode "On":

  • best-save and lowest-price just outputs "On"
  • heat-capacitor outputs the constant value of the fixed setpoint

Mode "Off" (or "Away"):

  • best-save and lowest-price just outputs "Off"
  • heat-capacitor outputs a constant away-setpoint-value (to prevent freezing)

Mode "Auto":

  • As today for all schedulers.

What do you think?

marhoy avatar Oct 04 '22 19:10 marhoy

This is pretty much exactly what I have been thinking myself, and it is on my list :-)

ottopaulsen avatar Oct 04 '22 20:10 ottopaulsen

I'm not a Javascript developer, but I cloned the repository yesterday and got it running in Node-RED via the debugger in VS Code 😊

I've been asking for many new features, so I'll have a look and see if I can contribute with some PRs myself... 😉

marhoy avatar Oct 05 '22 04:10 marhoy

PRs are welcome :-) It may be a good idea to start by describing and discussing the feature before coding it. A github issue is a good place to do this. Alternatively FB Messenger.

ottopaulsen avatar Oct 05 '22 12:10 ottopaulsen

I tried contacting you on FB messenger.

marhoy avatar Oct 09 '22 14:10 marhoy

If you sent me anything important on FB Messenger before I contacted you, you need to resend it, as I didn't get anything.

ottopaulsen avatar Oct 11 '22 09:10 ottopaulsen

Take a look at the new override function in version 4.1. If it solves your need, please close the issue.

ottopaulsen avatar Nov 22 '22 17:11 ottopaulsen