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

Multiple nodes + manual override in HA

Open ozziemannen opened this issue 3 years ago • 4 comments
trafficstars

Hello and thanks for creating this! I'm using Powersaver node for controlling both water heater and a heat pump/inverter.

I've set up the node for the heat pump by splitting each day into 5 "time zones" and using a Lowest Price node for each time zone, like:

  • 00.00 - 06.00, On for 3 hpurs
  • 06.00 - 10.00, On for 2 h
  • 10.00 - 14.00, On for 2 h
  • 14.00 - 18.00, On for 2 h
  • 18.00 - 00.00, On for 3 h However, the nodes seem to interfere with each other, so the heat pump doesn't always turn on when it is supposed to. Maybe my setup is wrong? Skärmavbild 2022-10-02 kl  00 20 58

The other question (or request) is for a possibility to manually edit an automated schedule, from within Home Assistant I guess. Like maybe have a switch for each hour of the day, that individually get set to on/off when the new price from Nordpool is fetched, and then you could change those switches manually if you'd want . Any thoughts about this?

ozziemannen avatar Oct 01 '22 22:10 ozziemannen

And the visualization: Skärmavbild 2022-10-02 kl  00 37 42

ozziemannen avatar Oct 01 '22 22:10 ozziemannen

This looks like a timing issue: The ON/OFF commands might not arrive in the correct order. Example: What if the OFF-command from the 00-06 node arrives after the potential ON-command from the 06-08 node?

Also: There's no need to convert true/false to 1/0 before sending the schedule to HA (at least if all you need it for is an Apex chart. That's what the transform-option is for: https://github.com/RomRider/apexcharts-card#transform-option

marhoy avatar Oct 04 '22 12:10 marhoy

@ozziemannen See also my response here on how I handle output from multiple schedulers running in parallel.

marhoy avatar Oct 04 '22 12:10 marhoy

Thanks! I'll give it a try.

ozziemannen avatar Oct 04 '22 21:10 ozziemannen

You should try the new Schedule Merger node to merge all the Lowest Price schedules into one. Also take a look at the Fixed Schedule node.

ottopaulsen avatar Nov 22 '22 17:11 ottopaulsen

You should try the new Schedule Merger node to merge all the Lowest Price schedules into one. Also take a look at the Fixed Schedule node.

Thanks! Seems to be working fine:)

ozziemannen avatar Nov 23 '22 21:11 ozziemannen