Hello,
I have a flow where i am closing all the covers in my home shortly before dusk. Because this flow might be doing more stuff I want to limit the execution of that to once per day only.
This is the flow:
[{"id":"a35991fdab32fd0c","type":"bigtimer","z":"3ad92c06410dfbad","outtopic":"","outpayload1":"on","outpayload2":"off","name":"at dusk","comment":"","lat":"","lon":"","starttime":"5001","endtime":"5003","starttime2":0,"endtime2":0,"startoff":"-5","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"","outtext2":"","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":"2","xmonth1":"5","xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xday7":0,"xmonth7":0,"xday8":0,"xmonth8":0,"xday9":0,"xmonth9":0,"xday10":0,"xmonth10":0,"xday11":0,"xmonth11":0,"xday12":0,"xmonth12":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":false,"atstart":false,"odd":false,"even":false,"x":500,"y":260,"wires":[["20e520fe2cd22277"],[],[]]},{"id":"6ef95778b9729ee7","type":"api-call-service","z":"3ad92c06410dfbad","name":"","server":"41b47bf.6906e84","version":5,"debugenabled":false,"domain":"cover","service":"close_cover","areaId":["gabinet","hania","kuchnia","maja","salon","sypialnia"],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":240,"wires":[[]]},{"id":"20e520fe2cd22277","type":"switch","z":"3ad92c06410dfbad","name":"when ","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":670,"y":260,"wires":[["c669e52b9434e95e"],[]]},{"id":"483b3292585e05ce","type":"api-call-service","z":"3ad92c06410dfbad","name":"","server":"41b47bf.6906e84","version":5,"debugenabled":false,"domain":"cover","service":"set_cover_position","areaId":["lazienka_duza","lazienka_mala"],"deviceId":[],"entityId":[],"data":"{\t \"position\": \"30\"\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1210,"y":300,"wires":[[]]},{"id":"c669e52b9434e95e","type":"delay","z":"3ad92c06410dfbad","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"day","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":890,"y":260,"wires":[["6ef95778b9729ee7","483b3292585e05ce"]]},{"id":"41b47bf.6906e84","type":"server","name":"Home Assistant","addon":true}]
What is making me crazy is the actual action of closing the covers is executed, what it looks like, only once every 2 days!
I have read the documentation of the delay node
and looks like my understanding is correct - 1 per day
means once between 00:00 and 23:59 (more or less) - not once every 24h - but the end result is not what i expect. I could have an inject node that is sending reset
signal to the delay
node at midnight - but i want to understand what, the heck, is going on before I implement any workarounds.
thanks!