Start/ Stop thermostat

Sounds good to me.

You understand how those examples are to be used/tested?

BTW, they are NOT perfect and will need some tweaking to be exactly what you want.

Okay I think I have an understanding of its function

Only because of my OCD, this is a better set of how to do what you want.

[{"id":"b444a0fc38e450fe","type":"inject","z":"7e987ddf260bdf0d","name":"Stop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"stop","payloadType":"str","x":260,"y":3340,"wires":[["46e0098845a5e7ec","f8176d2aa65d65d0"]]},{"id":"4f64ae6f5335f34a","type":"inject","z":"7e987ddf260bdf0d","name":"Go","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"go","payloadType":"str","x":260,"y":3380,"wires":[["46e0098845a5e7ec"]]},{"id":"eda8ff856eaa0a27","type":"debug","z":"7e987ddf260bdf0d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":580,"y":3440,"wires":[]},{"id":"2c1ace6b519af552","type":"inject","z":"7e987ddf260bdf0d","name":"existing stuff","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":270,"y":3440,"wires":[["46e0098845a5e7ec"]]},{"id":"46e0098845a5e7ec","type":"gate","z":"7e987ddf260bdf0d","name":"","controlTopic":"control","defaultState":"open","openCmd":"go","closeCmd":"stop","toggleCmd":"toggle","defaultCmd":"default","persist":false,"x":420,"y":3440,"wires":[["eda8ff856eaa0a27"]]},{"id":"4cd39153ce4d99c7","type":"inject","z":"7e987ddf260bdf0d","name":"Stop","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"stop","payloadType":"str","x":250,"y":3580,"wires":[["7a30fcaa82d1f41e","d0cf91e6cd3c49a6"]]},{"id":"757a190398377eaa","type":"inject","z":"7e987ddf260bdf0d","name":"Go","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"go","payloadType":"str","x":250,"y":3620,"wires":[["7a30fcaa82d1f41e"]]},{"id":"d24650868b66acef","type":"debug","z":"7e987ddf260bdf0d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":3700,"wires":[]},{"id":"d0c59526418f856f","type":"inject","z":"7e987ddf260bdf0d","name":"existing stuff","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":260,"y":3700,"wires":[["e055f65538399ecb"]]},{"id":"7a30fcaa82d1f41e","type":"change","z":"7e987ddf260bdf0d","name":"Set context","rules":[{"t":"set","p":"state","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":3600,"wires":[[]]},{"id":"e055f65538399ecb","type":"switch","z":"7e987ddf260bdf0d","name":"","property":"state","propertyType":"flow","rules":[{"t":"eq","v":"go","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":3700,"wires":[["d24650868b66acef"]]},{"id":"f8176d2aa65d65d0","type":"change","z":"7e987ddf260bdf0d","name":"Turn off heater","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":3340,"wires":[["eda8ff856eaa0a27"]]},{"id":"d0cf91e6cd3c49a6","type":"change","z":"7e987ddf260bdf0d","name":"Turn off heater","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":3560,"wires":[["d24650868b66acef"]]}]

Pretty much the same as before but for the extra change node included in each example to do what it says. :wink:

1 Like

Good to hear.

Oh, I'm not sure you are really done with this.

What you have now is control of the thermostat but it is on the edit screen.
Node-Red offers a GUI screen/interface and you can have a nicer looking GUI if you want.

The dashboard?
I have the GUI setup already.

Ok.

The dashboard is the GUI.

1 Like

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