Switch nodes problem - change nodes when certain value and reset

I am trying to flatten this curve.

The chiller comes on at say 65. Takes until nearly 75 to bring it down. Want to stop it chilling when it gets back to 70 and turn heater back on so it flattens the line.

It's got to come on as early as possible as it takes a minute to start working.

I can DM you and explain exactly what it is doing. Just was trying to make it a simple as possible as it gets quite a bit more complex but didn't think that was relevant and would only serve to confuse more.

All you need to do is adjust the values and use the flow that @zenofmud posted.

He has done what I was wanting to do and did it in a nice way.
(As you can see my replies to the post)

The adjusting of the values is easy.

It is just I was trying to go about it a bit slower and introduce you to the idea.

The only adjustment I'd make to the flow @zenofmud posted would be to use flow context to set the temperatures.

Again though I would suggest putting a change node in just before the first switch node and change it from msg.payload.test to msg.payload.temperature...... and subsequently in all other nodes too.

And if you want to, also change the msg.payload.raspberry to something more descriptive like mode.
But that's up to you.

I know from painful experience that not calling things a descriptive name can cause havoc in the future.

Thank you very much for all your help. I'll check your flow again tomorrow. It doesn't look like it works, but might have missed something.

As I just said, use the one @zenofmud posted.
It is head and shoulders better than mine.

Thank you very much for your help. I'll check the flow tomorrow.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.