ottopaulsen / node-red-contrib-power-saver

A Node-RED node to saver money by turning off when the power is most expensive
Other
71 stars 17 forks source link

Multiple nodes + manual override in HA #90

Closed ozziemannen closed 1 year ago

ozziemannen commented 1 year ago

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:

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 commented 1 year ago

And the visualization:

Skärmavbild 2022-10-02 kl  00 37 42
marhoy commented 1 year ago

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 commented 1 year ago

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

ozziemannen commented 1 year ago

Thanks! I'll give it a try.

ottopaulsen commented 1 year ago

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.

ozziemannen commented 1 year ago

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