Irrigalion at Sunrise boolean Switch

Hi.
I am more and moore getting into NodeRed.
How do I combine the Event change Node and the sunrise node?
So basically I want the irrigation to start at sunrise, but only if the innut boolean switch IrraigationSunrise is on. Would vou know how to manage that?
Thanks

Use one of the timer nodes, like a big timer, and set that to sunrise.
After that add a current state node that checks the Boolean switch against a value and let the flow continue of the output option that makes sense.

Thank you for pointing me in the right direction. I did as you suggested but the BigTimer Node does not behave as suspected. It should trigger exactly when the sun rises but for some reason that does not happen. You can see the flow I created here:

[{"id":"1380eb520faa585f","type":"api-current-state","z":"c753663a45a2236f","name":"Wässern bei Sonnenaufgang","server":"92183824.74a3e8","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wassern_bei_sonnenaufgang","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"true","valueType":"str"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":300,"y":920,"wires":[["722694c3861ed4c4","8d074aed3cc7e68e"],[]]},{"id":"722694c3861ed4c4","type":"api-call-service","z":"c753663a45a2236f","name":"Hochbeet","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_hochbeet_1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":540,"y":920,"wires":[["65995b6a10e6df95"]]},{"id":"a0dc6a22f8d4d920","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":730,"y":980,"wires":[["f7c6da1e24da7f59"]]},{"id":"65995b6a10e6df95","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":730,"y":920,"wires":[["ef861b59662b59c1"]]},{"id":"f7e829dcf4c2638d","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":730,"y":1040,"wires":[["d2852ad0a7bbb6fa"]]},{"id":"ef861b59662b59c1","type":"api-call-service","z":"c753663a45a2236f","name":"Hochbeet","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_hochbeet_1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":899.3333129882812,"y":908,"wires":[["0db4761c4f58e9cf"]]},{"id":"deb2a2b9be1c0f37","type":"api-call-service","z":"c753663a45a2236f","name":"Schuppen","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_schuppen_5","switch.rasen_esp8266_rasen_schuppen_5"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":540,"y":1040,"wires":[["f7e829dcf4c2638d"]]},{"id":"0db4761c4f58e9cf","type":"api-call-service","z":"c753663a45a2236f","name":"Terrasse","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_terrasse_6","switch.rasen_esp8266_rasen_terrasse_6"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":540,"y":980,"wires":[["a0dc6a22f8d4d920"]]},{"id":"f7c6da1e24da7f59","type":"api-call-service","z":"c753663a45a2236f","name":"Terrasse","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_terrasse_6"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":920,"y":980,"wires":[["deb2a2b9be1c0f37"]]},{"id":"d2852ad0a7bbb6fa","type":"api-call-service","z":"c753663a45a2236f","name":"Schuppen","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_schuppen_5"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":920,"y":1040,"wires":[["fd822b27010bd6b8"]]},{"id":"fd822b27010bd6b8","type":"api-call-service","z":"c753663a45a2236f","name":"Rasenautomatik","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["input_boolean.rasenbewasserung"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":1100,"wires":[["74707734bd614e4f"]]},{"id":"74707734bd614e4f","type":"api-call-service","z":"c753663a45a2236f","name":"Tropfbewässerung","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["group.tropfbewasserung_all"],"data":"on","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":550,"y":1200,"wires":[["6f5ddffd1158d059"]]},{"id":"6f5ddffd1158d059","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":770,"y":1200,"wires":[["bcf547eea8907565","40702b9006e3c064"]]},{"id":"0a8f0cd931d8f6d4","type":"inject","z":"c753663a45a2236f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":1000,"wires":[["1380eb520faa585f"]]},{"id":"f601749d4d1f02c6","type":"bigtimer","z":"c753663a45a2236f","outtopic":"","outpayload1":"","outpayload2":"","name":"Big Timer","comment":"","lat":0,"lon":0,"starttime":"5003","endtime":"5003","starttime2":0,"endtime2":0,"startoff":0,"endoff":"1","startoff2":0,"endoff2":0,"offs":0,"outtext1":"ON","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":0,"xmonth1":0,"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":true,"atstart":true,"odd":false,"even":false,"x":80,"y":920,"wires":[["1380eb520faa585f"],[],[]]},{"id":"92183824.74a3e8","type":"server","name":"Home Assistant","addon":true}]

What am I missing?It does work when I trigger the sunrise using the inject node. Therefore something must be wrong with the BigTimer Node.

Thank you for further tips.

Can’t access Node Red where I am currently, but BigTimer is depending on a correct latitude and longitude entry.

Hi. T tried to Lat and Long but it does not trigger is expected.

[{"id":"1380eb520faa585f","type":"api-current-state","z":"c753663a45a2236f","name":"Wässern bei Sonnenaufgang","server":"92183824.74a3e8","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wassern_bei_sonnenaufgang","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"str"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":300,"y":920,"wires":[["8d074aed3cc7e68e","40b6797d3ceeeb78","722694c3861ed4c4"],[]]},{"id":"722694c3861ed4c4","type":"api-call-service","z":"c753663a45a2236f","name":"Hochbeet","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_hochbeet_1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":540,"y":920,"wires":[["65995b6a10e6df95"]]},{"id":"a0dc6a22f8d4d920","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":730,"y":980,"wires":[["f7c6da1e24da7f59"]]},{"id":"65995b6a10e6df95","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":730,"y":920,"wires":[["ef861b59662b59c1"]]},{"id":"f7e829dcf4c2638d","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":730,"y":1040,"wires":[["d2852ad0a7bbb6fa"]]},{"id":"ef861b59662b59c1","type":"api-call-service","z":"c753663a45a2236f","name":"Hochbeet","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_hochbeet_1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":899.3333129882812,"y":908,"wires":[["0db4761c4f58e9cf"]]},{"id":"deb2a2b9be1c0f37","type":"api-call-service","z":"c753663a45a2236f","name":"Schuppen","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_schuppen_5","switch.rasen_esp8266_rasen_schuppen_5"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":540,"y":1040,"wires":[["f7e829dcf4c2638d"]]},{"id":"0db4761c4f58e9cf","type":"api-call-service","z":"c753663a45a2236f","name":"Terrasse","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_terrasse_6","switch.rasen_esp8266_rasen_terrasse_6"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":540,"y":980,"wires":[["a0dc6a22f8d4d920"]]},{"id":"f7c6da1e24da7f59","type":"api-call-service","z":"c753663a45a2236f","name":"Terrasse","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_terrasse_6"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":920,"y":980,"wires":[["deb2a2b9be1c0f37"]]},{"id":"d2852ad0a7bbb6fa","type":"api-call-service","z":"c753663a45a2236f","name":"Schuppen","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.rasen_esp8266_rasen_schuppen_5"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":920,"y":1040,"wires":[["fd822b27010bd6b8"]]},{"id":"fd822b27010bd6b8","type":"api-call-service","z":"c753663a45a2236f","name":"Rasenautomatik","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["input_boolean.rasenbewasserung"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":1100,"wires":[["74707734bd614e4f"]]},{"id":"bcf547eea8907565","type":"api-call-service","z":"c753663a45a2236f","name":"Tropfautomatik","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["group.tropfbewasserung_all","input_boolean.tropfbewasserung"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":980,"y":1200,"wires":[[]]},{"id":"74707734bd614e4f","type":"api-call-service","z":"c753663a45a2236f","name":"Tropfbewässerung","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["group.tropfbewasserung_all"],"data":"on","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":550,"y":1200,"wires":[["6f5ddffd1158d059"]]},{"id":"6f5ddffd1158d059","type":"delay","z":"c753663a45a2236f","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":770,"y":1200,"wires":[["bcf547eea8907565","40702b9006e3c064"]]},{"id":"40702b9006e3c064","type":"api-call-service","z":"c753663a45a2236f","name":"Tropfbewässerung","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["group.tropfbewasserung_all"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":990,"y":1160,"wires":[[]]},{"id":"40b6797d3ceeeb78","type":"debug","z":"c753663a45a2236f","name":"debug ","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":330,"y":1000,"wires":[]},{"id":"8eaf42994640c6c5","type":"debug","z":"c753663a45a2236f","name":"debug ","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":310,"y":1060,"wires":[]},{"id":"8d074aed3cc7e68e","type":"api-call-service","z":"c753663a45a2236f","name":"Wässern bei Sonnenaufgang ausschalten","server":"92183824.74a3e8","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["automation.wassern_bei_sonnenaufgang"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":560,"y":1320,"wires":[[]]},{"id":"92183824.74a3e8","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]

I think the problem lies in the wrong configuration of the BigTimer Node. I don’t quite know when it triggers ‘on’. What do I need the sunset for. All I need is that at sunrise the Big Timer at Sunrise checks if if the boolean for the irrigation at sunrise is on or not. Or I do it the other way arround? So I only start the BigTimer when the boolean is on? That might be a possibility as well.Thanks for the help

The BigTimer should be the first and just react to sunrise.
The next node should be a current state node that reads the Boolean.

So how do I make it simpler (big timer just reacting to sunrise) . I think that is too complicated as it seems but it seems that I need the sunset as well. Or what am I missing?
Thanks

An alternative to BigTimer is to use the Sun2 integration in HA and then react to its sunrise value as a trigger.

Where do I find that? Sun2 in home assistant? Within hacs?