I need some help....flow is attached

Hey, new here to all of this. managed to get a flow going, uploaded ghost thermostat ui, i can manually turn on my relays, managed to converted temp from c to f, tied in an occupany pir sensor. everything is working manaully, but how they heck do i get this automated! everything is also working from the ui. i added a remote acces node and it worked untril i rebooted then node red hung, but thats another topic, i managed to fix that .any help is greatly appreciated. flow attached i think.

Hi @Automata - Welcome to the Forums

Just note : Most here will not be using that node, and support for it will need to be redirected to the company, Remote RED, most here try not to depend on solutions like that.

No flow its attached :smile:

That's very vague :smile:

What do you want to automate exactly, example: do you want to turn something on when your PIR triggers for example? or send an email when something is turned off?

Node RED is event driven, so you act when any number of events occur in Node RED, and do what you need, to facilitate you precise requirements

See here

I have attached the flow. A thermostat to control heating and cooling. Using a single ds1820 sensor for ambient temp, will tie in more ds1820 for discharge air,supply air, and water temps. Also want dampers to close when cooling is on and outdoor temps above 60*. I think im close but not quite understanding how to get inputs into the stat and keeps stat from reverting back to heating. Needs target temps set by ui,

flows.json (58 KB)

Also, thank you for the amazing quick reply. I'm only 2 weeks into learning any of this

1 Like


My advice is to first understand what data you are receiving from your sensors,
then based on what you receive, simply follow up by setting your GPIO's according to your needs.

I can't use your flow, as I do not use dashboard, but plentifull who do here.

With that said.
Here is a typical automation in Node RED.

Someone uses the bathroom, and you want to turn on the extractor fan.
Then after they have left, keep the fan on for a further 60s, before turning off.

But during that 60s... delay turning off the fan, if it gets occupied again.

Using the example, you can see what things can be done, with nothing more than changing your parameters, and exploring the different nodes in the collection.

One thing to note, try and keep your wiring from spiralling out of control (use junctions)
it will make following your flows much easier.

The YouTube channel has some great content to learn from.

[{"id":"1b4c462ef49c9d77","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"241a60fd7ebdfd47","type":"junction","z":"1b4c462ef49c9d77","x":1235,"y":170,"wires":[["daa44b5a12f5183c"]]},{"id":"9c1eb0c9fe23cd80","type":"junction","z":"1b4c462ef49c9d77","x":1795,"y":170,"wires":[["6e0555a055d168bf"]]},{"id":"6e0555a055d168bf","type":"rpi-gpio out","z":"1b4c462ef49c9d77","name":"Bathroom Extractor","pin":"26","set":true,"level":"1","freq":"","out":"out","bcm":true,"x":1960,"y":85,"wires":[]},{"id":"6d20716f611c58b4","type":"rpi-gpio in","z":"1b4c462ef49c9d77","name":"Bathroom  Occupance sensor ","pin":"17","intype":"tri","debounce":"25","read":false,"bcm":true,"x":860,"y":95,"wires":[["9e8305a99de41d22"]]},{"id":"9e8305a99de41d22","type":"switch","z":"1b4c462ef49c9d77","name":"Check State","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":true,"outputs":2,"x":1105,"y":95,"wires":[["ea6542af55de0e87"],["241a60fd7ebdfd47"]]},{"id":"ea6542af55de0e87","type":"change","z":"1b4c462ef49c9d77","name":"Set On","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1355,"y":85,"wires":[["6e0555a055d168bf","268962bd8d2fc366"]]},{"id":"daa44b5a12f5183c","type":"change","z":"1b4c462ef49c9d77","name":"Set Off","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1365,"y":170,"wires":[["c41a6dff4df8bff5"]]},{"id":"c41a6dff4df8bff5","type":"delay","z":"1b4c462ef49c9d77","name":"","pauseType":"delay","timeout":"60","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1705,"y":170,"wires":[["9c1eb0c9fe23cd80"]]},{"id":"268962bd8d2fc366","type":"change","z":"1b4c462ef49c9d77","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1515,"y":120,"wires":[["c41a6dff4df8bff5"]]}]

I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

1 Like

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