Setup a Config to open blinds and block timer when there is heavy wind

Hi,

I have electrical blinds and I am living in a rural environment. When we have heavy stroms the risk is high for a power outage. I have a generator, but my blinds are not reacting when I supply them with the generator, I guess the voltage/current is too "noisy".

I get the windspeed from my weather station.

So what I want to achieve is:

  • checking the windspeed every 5 seconds (I have this already)
  • if the windspeed is above a certain level for a certain time, I want to trigger an action
  • if the windspeed is below the defined time from above, nothing should happen
  • if the threshold was met, but then the windspeed droppes for a certain time under a certain level, then another action should be triggered

Can this be done via an existing node? or a combination of nodes?

Best Regards,
Johannes

You can use Trigger nodes for such operations. So for example, feed the fact that the speed has gone above the threshold to a Trigger node which is set to Send Nothing, then wait for the timeout, then Send the message to start the action. If the windspeed drops below the threshold then use that to Reset the trigger.

See if you can get that going.

I don't fully understand what you mean by by the fourth bullet point, but get the first bit going first.

You give no payloads or inputs or outputs.

This can be done in a low code way with switch nodes and trigger nodes.

Here is an example of one way.
Hope it helps
I had to make my own inputs and outputs, so you will have to adjust for yours

[{"id":"44b075f61cbc75af","type":"inject","z":"65617ffeb779f51c","name":"timer open","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"open","payloadType":"str","x":180,"y":1520,"wires":[["68e6bc044ce4682a"]]},{"id":"68e6bc044ce4682a","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"timer","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":1540,"wires":[["c2f0aef2e976b087"]]},{"id":"1fce0a889f61cee6","type":"inject","z":"65617ffeb779f51c","name":"timer close","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"close","payloadType":"str","x":180,"y":1560,"wires":[["68e6bc044ce4682a"]]},{"id":"c2f0aef2e976b087","type":"join","z":"65617ffeb779f51c","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":890,"y":1620,"wires":[["f49f142f04f8b261"]]},{"id":"b5b4c7ce207168d4","type":"trigger","z":"65617ffeb779f51c","name":"","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"high","bytopic":"all","topic":"topic","outputs":1,"x":690,"y":1600,"wires":[["c2f0aef2e976b087"]]},{"id":"ef4b379f550b9c1f","type":"trigger","z":"65617ffeb779f51c","name":"","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"low","bytopic":"all","topic":"topic","outputs":1,"x":690,"y":1680,"wires":[["c2f0aef2e976b087"]]},{"id":"f49f142f04f8b261","type":"switch","z":"65617ffeb779f51c","name":"","property":"payload.timer","propertyType":"msg","rules":[{"t":"eq","v":"close","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":1030,"y":1620,"wires":[["cf1ce30bfcd9bf81","0f773962188333e3"],["33c5bc7398f545be"]]},{"id":"e7915159e345d30a","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"low","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"wind","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":1600,"wires":[["b5b4c7ce207168d4","ef4b379f550b9c1f"]]},{"id":"40ceabb37fc58d0c","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"high","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"wind","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":1680,"wires":[["b5b4c7ce207168d4","ef4b379f550b9c1f"]]},{"id":"33c5bc7398f545be","type":"switch","z":"65617ffeb779f51c","name":"","property":"payload.wind","propertyType":"msg","rules":[{"t":"eq","v":"high","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":1170,"y":1620,"wires":[["cf1ce30bfcd9bf81","0f773962188333e3"],["4be0dba6cda36272","186a149ade00fc5c"]]},{"id":"cf1ce30bfcd9bf81","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1320,"y":1600,"wires":[["4a68fe336438d156"]]},{"id":"0f773962188333e3","type":"debug","z":"65617ffeb779f51c","name":"close","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1190,"y":1540,"wires":[]},{"id":"9f4caca721c921f4","type":"switch","z":"65617ffeb779f51c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"25","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":1640,"wires":[["e7915159e345d30a"],["40ceabb37fc58d0c"]]},{"id":"4be0dba6cda36272","type":"change","z":"65617ffeb779f51c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1320,"y":1640,"wires":[["4a68fe336438d156"]]},{"id":"186a149ade00fc5c","type":"debug","z":"65617ffeb779f51c","name":"open","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1170,"y":1700,"wires":[]},{"id":"4a68fe336438d156","type":"rbe","z":"65617ffeb779f51c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":1470,"y":1620,"wires":[["f00805223d3b128c"]]},{"id":"bcea5eef4c1f4209","type":"inject","z":"65617ffeb779f51c","name":"wind 10","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"10","payloadType":"num","x":210,"y":1620,"wires":[["9f4caca721c921f4"]]},{"id":"a7ea2358e7e6ce97","type":"inject","z":"65617ffeb779f51c","name":"wind 30","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"30","payloadType":"num","x":210,"y":1660,"wires":[["9f4caca721c921f4"]]},{"id":"f00805223d3b128c","type":"debug","z":"65617ffeb779f51c","name":"debug 241","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1610,"y":1620,"wires":[]}]

@Colin

This was already very helpfull.

This is my current flow:

The only issue I have is that e.g.:

Beaufort is 5 or higher for 15 minutes, then the Trigger&Block triggers my action to react on the storm.
If now the Wind goes to 4 or below for less then 15 minutes and then higher again, then the STORM Action is triggered again.

Maybe there is a chance to prevent this additional "STORM" Trigger?

Great, thats it!

This flow looks similar to the left hand side of yours.
It ensures that no message of any sort will arrive at the output unless input has changed from high to low and remained at that level for at least 10 seconds.
Is this what you want to achieve?
What do your "Trigger and block" nodes bring to the party?

[{"id":"9c0f67d18f5c860d","type":"switch","z":"b45544f267d46e64","name":">= 25","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"25","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":250,"y":400,"wires":[["c856fd07b7bacfb8","2982f2363648062f"],["c4a7ece5efa56fb7","2e950521e6b16e57"]]},{"id":"c4a7ece5efa56fb7","type":"trigger","z":"b45544f267d46e64","name":"","op1":"","op2":"LOW","op1type":"nul","op2type":"str","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"HIGH","bytopic":"all","topic":"topic","outputs":1,"x":510,"y":480,"wires":[["b2ae03ec2db5a199"]]},{"id":"e86778fbfcac9092","type":"comment","z":"b45544f267d46e64","name":"Windy","info":"","x":310,"y":340,"wires":[]},{"id":"c856fd07b7bacfb8","type":"trigger","z":"b45544f267d46e64","name":"","op1":"","op2":"HIGH","op1type":"nul","op2type":"str","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"LOW","bytopic":"all","topic":"topic","outputs":1,"x":510,"y":320,"wires":[["b2ae03ec2db5a199"]]},{"id":"b2ae03ec2db5a199","type":"debug","z":"b45544f267d46e64","name":"debug 296","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":770,"y":400,"wires":[]},{"id":"bb6d843c0d34d2e2","type":"inject","z":"b45544f267d46e64","name":"wind 10","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"10","payloadType":"num","x":90,"y":420,"wires":[["9c0f67d18f5c860d"]]},{"id":"36ec649ae1716147","type":"inject","z":"b45544f267d46e64","name":"wind 30","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"30","payloadType":"num","x":90,"y":380,"wires":[["9c0f67d18f5c860d"]]},{"id":"2e950521e6b16e57","type":"change","z":"b45544f267d46e64","name":"msg.reset","rules":[{"t":"move","p":"payload","pt":"msg","to":"reset","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":380,"wires":[["c856fd07b7bacfb8"]]},{"id":"2982f2363648062f","type":"change","z":"b45544f267d46e64","name":"msg.reset","rules":[{"t":"move","p":"payload","pt":"msg","to":"reset","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":420,"wires":[["c4a7ece5efa56fb7"]]},{"id":"857748711aa1660e","type":"comment","z":"b45544f267d46e64","name":"Calm","info":"","x":310,"y":460,"wires":[]}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.