Hello!
We are looking for a flow for a cooler-freezer on an off-grid site.
It is basically a thermostat and power saver flow that should not allow the freezer to go above -15°COR the cooler to go above 6°C during the night and is typically inactive during the day but there is only one compressor to switch on and off.
It controls a Shelly relay (I have that standard part working) that should allow either 6°C cooler or -15 °C freezer.
Below is my work in progress but I only get to selecting the lowest value from two sensors, but as
freezer and cooler have different target values I am unable to figure out how to do this.Any help is much appreciated!
[{"id":"47e08a034fd04e7a","type":"change","z":"46a0c2550c075890","name":"choose lower value","rules":[{"t":"set","p":"payload","pt":"msg","to":"$min([$flowContext(\"temp1\"), $flowContext(\"temp2\")])\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":180,"wires":[[]]},{"id":"15c22ab6c768dd19","type":"change","z":"46a0c2550c075890","name":"store temp1","rules":[{"t":"set","p":"temp1","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":160,"wires":[["47e08a034fd04e7a"]]},{"id":"2f7595bd83cfe6e6","type":"change","z":"46a0c2550c075890","name":"store temp2","rules":[{"t":"set","p":"temp2","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":200,"wires":[["47e08a034fd04e7a"]]},{"id":"5d84c3fac75402e0","type":"inject","z":"46a0c2550c075890","name":"temp source 2","repeat":"","crontab":"","once":false,"onceDelay":"1.5","topic":"","payload":"12","payloadType":"num","x":190,"y":200,"wires":[["2f7595bd83cfe6e6"]]},{"id":"bbc703fdf4f0e2f6","type":"inject","z":"46a0c2550c075890","name":"","repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":190,"y":100,"wires":[["45d6c3270d2cb879"]]},{"id":"45d6c3270d2cb879","type":"change","z":"46a0c2550c075890","name":"set to high","rules":[{"t":"set","p":"temp1","pt":"flow","to":"999","tot":"num"},{"t":"set","p":"temp2","pt":"flow","to":"999","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":120,"wires":[[]]},{"id":"547fede413fdded0","type":"inject","z":"46a0c2550c075890","name":"temp source 1","props":[{"p":"payload","v":"10","vt":"num"},{"p":"topic","v":"","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"1","topic":"","payload":"10","payloadType":"num","x":190,"y":160,"wires":[["15c22ab6c768dd19"]]}]
