Hi,
thanks for getting back to me.
Yes I had tried the switch, and while it seems to be the right tool for the job initially, to me it's more of a demultiplexer in that it ports the message payload through to the output based on set condition, whereas I need to output a true if payload.value > 25 else false (I'm ignoring hysteresis for now).
I see in your second example that you then change the payload value from whatever temperature it is, to "true" but that still doesn't switch the digital output, which I strongly suspect isn't expecting a payload or message at all, just a simple true/false input. I have attached my code (including your mods) so you can see what I mean. I would have thought there would be a function block that simply outputs true for a given payload value/condition else false. A conditional expression block if you want to call it that.
[{"id":"e5970583.fa1da","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"72830e3e.1efb68","type":"unipi-input","z":"e5970583.fa1da","name":"","alias":"","devices":"temp","circuits":"288EA19E0A000087","property":"","seedev":"0","seecirc":"0","seeorig":"0","x":770,"y":340,"wires":[["d6930bf4.e963a8"]]},{"id":"9831ad8.ed811d","type":"websocket in","z":"e5970583.fa1da","name":"","server":"","client":"5bbc639a.67e854","x":500,"y":340,"wires":[["72830e3e.1efb68"]]},{"id":"75fc0754.7d9ec","type":"debug","z":"e5970583.fa1da","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1510,"y":280,"wires":[]},{"id":"d2507c52.4456b","type":"websocket out","z":"e5970583.fa1da","name":"","server":"","client":"6455e978.240c88","x":1860,"y":380,"wires":[]},{"id":"89fcd9a.b5108a8","type":"unipi-output","z":"e5970583.fa1da","name":"Relay 2","cmd":"set","alias":"","devices":"relay","circuits":"2","enableFil":"1","inputFil":"","relayFil":"","digoutFil":"","analoutFil":"","analinFil":"","ledFil":"","x":1520,"y":380,"wires":[["d2507c52.4456b"]]},{"id":"d6930bf4.e963a8","type":"switch","z":"e5970583.fa1da","name":"","property":"payload.value","propertyType":"msg","rules":[{"t":"gte","v":"25","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":990,"y":340,"wires":[["1bcc27f5.616848"],["601bdf54.2039d"]],"inputLabels":["payload.value"],"outputLabels":["if >= 25","if <25"]},{"id":"1bcc27f5.616848","type":"change","z":"e5970583.fa1da","name":"true","rules":[{"t":"set","p":"payload.value","pt":"msg","to":"true","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":340,"wires":[["89fcd9a.b5108a8","75fc0754.7d9ec"]]},{"id":"601bdf54.2039d","type":"change","z":"e5970583.fa1da","name":"false","rules":[{"t":"set","p":"payload.value","pt":"msg","to":"false","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":400,"wires":[["89fcd9a.b5108a8"]]},{"id":"5bbc639a.67e854","type":"websocket-client","path":"ws://127.0.0.1/ws","wholemsg":"false"},{"id":"6455e978.240c88","type":"websocket-client","z":"","path":"ws://127.0.0.1:8080/ws","tls":"","wholemsg":"false"}]