Hello; I'm testing this project on my Raspberry Pi 3B: https://pexpeppers.com/blogs/pepper-growing/diy-greenhouse-control
It's thanks to this project that I discovered the power of Node-RED. This project works very well, but I need to modify a few things for it to work on my greenhouse project. My setup uses opening windows controlled by switches that only need a pulse (push button). I want the DHT22 to send this pulse. But I can't configure the project I'm using to send a pulse instead of the continuous operating time (like a fan). I've been trying to fix this myself for several days, but I lack the necessary knowledge. Could you help me? Thank you.
How are you controlling the DHT? Can't you just send ON followed by OFF a fraction of a second later?
You can do that with a Trigger node.
Thanks for your super quick reply ![]()
I haven't been able to get this configuration working with the "trigger" node. I'm a beginner and I still need to improve. Regarding the "trigger" node, when I use it, it remains constantly active because the temperature stays at 1.
There is also a filter node you can set to pass once until the value changes
[edit] not sure this is a hardware problem, seems more to be general
If you configure a Trigger node like this
Then every time you send it a message it will send 1 then 250ms later it will send 0. Is it something like that that you need to do?
I've already tried that solution, but it doesn't stop the control contactor. Because the temperature continues to send the signal, the control contactor remains engaged all the time.
So under what conditions do you want to send the pulse?
I want the signal to be sent for about 2 seconds when the temperature exceeds the programmed threshold. And that's what I'm having trouble with. I don't know which nodes to use for this.
Try this
[{"id":"175dd08cd0737ed6","type":"inject","z":"a46e55dd44eced53","name":"19","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"19","payloadType":"num","x":110,"y":60,"wires":[["e5204562e10295be"]]},{"id":"3936760da074c3a5","type":"inject","z":"a46e55dd44eced53","name":"21","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"21","payloadType":"num","x":110,"y":120,"wires":[["e5204562e10295be"]]},{"id":"e5204562e10295be","type":"switch","z":"a46e55dd44eced53","name":">20?","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"20","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":260,"y":100,"wires":[["c17c991aeb04459b"],["e56907e70fdb4742"]]},{"id":"c17c991aeb04459b","type":"change","z":"a46e55dd44eced53","name":"High","rules":[{"t":"set","p":"payload","pt":"msg","to":"High","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":80,"wires":[["3b9b138e8c154d50"]]},{"id":"e56907e70fdb4742","type":"change","z":"a46e55dd44eced53","name":"Low","rules":[{"t":"set","p":"payload","pt":"msg","to":"Low","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":120,"wires":[["3b9b138e8c154d50"]]},{"id":"3b9b138e8c154d50","type":"rbe","z":"a46e55dd44eced53","name":"Block unless state changes","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":600,"y":100,"wires":[["934f0137b7e4f47a"]]},{"id":"ed7d7ccb4ea685ba","type":"trigger","z":"a46e55dd44eced53","name":"Pulse","op1":"1","op2":"0","op1type":"num","op2type":"num","duration":"2000","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":450,"y":220,"wires":[["e35cb55f8e2f0c11"]]},{"id":"e35cb55f8e2f0c11","type":"debug","z":"a46e55dd44eced53","name":"debug 13","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":220,"wires":[]},{"id":"934f0137b7e4f47a","type":"switch","z":"a46e55dd44eced53","name":"High?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"High","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":310,"y":220,"wires":[["ed7d7ccb4ea685ba"]]}]
Thanks for your help. I'll test your solution in a few days. I'll keep you posted.
