I have an energy monitoring plug on my dumb washer. When my washer throws an error, the watts stay between 22 and 27. I would like to know how to see if the payload stays between 22 - 27 for 5 minutes? I have no idea where to start. Any help is greatly appreciated.
Do you know how to check for in that range? Get that bit working first. Tip: look at the Switch node.
Here is a example using a trigger node, change the 5 seconds to 5 mins in the trigger node.
[{"id":"addc77ea.f29c1","type":"inject","z":"bf9e1e33.030598","name":"25","props":[{"p":"payload.watts","v":"25","vt":"num"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":120,"y":200,"wires":[["e2055822.bc303"]]},{"id":"e2055822.bc303","type":"switch","z":"bf9e1e33.030598","name":"","property":"payload.watts","propertyType":"msg","rules":[{"t":"btwn","v":"22","vt":"num","v2":"27","v2t":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":320,"y":220,"wires":[["3bf01083.0bfeb"],["66987946.2d02","a985074a.8087d8"]]},{"id":"66987946.2d02","type":"debug","z":"bf9e1e33.030598","name":"OK","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":690,"y":280,"wires":[]},{"id":"1ac1669.a70bc19","type":"inject","z":"bf9e1e33.030598","name":"28","props":[{"p":"payload.watts","v":"28","vt":"num"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":130,"y":260,"wires":[["e2055822.bc303"]]},{"id":"3bf01083.0bfeb","type":"trigger","z":"bf9e1e33.030598","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"5","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":510,"y":180,"wires":[["fc674c08.8cf0c"]]},{"id":"a985074a.8087d8","type":"change","z":"bf9e1e33.030598","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":220,"wires":[["3bf01083.0bfeb"]]},{"id":"fc674c08.8cf0c","type":"debug","z":"bf9e1e33.030598","name":"error","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":710,"y":200,"wires":[]}]
Hope it helps.
Thank you for your answer. I never thought to use a switch node.
Thank you for answer. Actually seeing it, helped me figure out how it works. I really need to look at the options for the switch node. The timer also would have stumped me. I definitely would have been posting for more help.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.