Detects rising edge

This flow detect only rising edge, discarding values true -> false.

Condition: 1: input: false -> true output: true

2: input: true -> false output: no output block reset

[{"id":"c635959e.1e0438","type":"subflow","name":"R_TRIG","info":"Detecta borda de subida.\n","in":[{"x":80,"y":40,"wires":[{"id":"8c8f9702.5b0bf8"},{"id":"ac7715f.6d889e8"}]}],"out":[{"x":940,"y":40,"wires":[{"id":"a3c7643a.335008","port":0}]}]},{"id":"44ecb9d0.ddb268","type":"rbe","z":"c635959e.1e0438","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":590,"y":40,"wires":[["a3c7643a.335008"]]},{"id":"a962c18a.3d478","type":"change","z":"c635959e.1e0438","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":80,"wires":[["44ecb9d0.ddb268"]]},{"id":"a3c7643a.335008","type":"switch","z":"c635959e.1e0438","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":790,"y":40,"wires":[[]]},{"id":"8c8f9702.5b0bf8","type":"switch","z":"c635959e.1e0438","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":230,"y":40,"wires":[["44ecb9d0.ddb268"]]},{"id":"ac7715f.6d889e8","type":"switch","z":"c635959e.1e0438","name":"","property":"payload","propertyType":"msg","rules":[{"t":"false"}],"checkall":"true","repair":false,"outputs":1,"x":230,"y":80,"wires":[["a962c18a.3d478"]]},{"id":"5bac73c2.4d875c","type":"subflow:c635959e.1e0438","z":"269beaba.bcdf66","name":"","x":340,"y":180,"wires":[[]]}]

Flow Info

Created 7 years, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x1)
  • rbe (x1)
  • switch (x3)
Other
  • subflow (x1)
  • subflow:c635959e.1e0438 (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option