Maybe useful home automations!?

... created in NodeRed and used with homeassistant


Camera's motiondetection -> carportlight flash


NodeRed flow:
[{"id":"e2050abb.2e65d8","type":"tab","label":"Carport Bewegung","disabled":false,"info":""},{"id":"a9dd37ba.37e668","type":"server-state-changed","z":"e2050abb.2e65d8","name":"sensor.bewegung_carport","server":"8c8eaa5b.1d7148","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.bewegung_carport","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":110,"y":60,"wires":[["82b4aa20.52e248","9224769.3716488"]]},{"id":"a1dd6642.5f6408","type":"switch","z":"e2050abb.2e65d8","name":"carportblinken","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"an","vt":"str"},{"t":"eq","v":"aus","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":340,"y":160,"wires":[["2900b126.85522e","197a78e0.1763b7"],["e0af8930.8a55a8"]]},{"id":"42813e75.248dd","type":"inject","z":"e2050abb.2e65d8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"an","payloadType":"str","x":250,"y":560,"wires":[["dab1a6c7.a42ef8"]]},{"id":"dab1a6c7.a42ef8","type":"mqtt out","z":"e2050abb.2e65d8","name":"","topic":"/camera/carport2/motion","qos":"","retain":"","broker":"67733e3c.34071","x":530,"y":560,"wires":[]},{"id":"82b4aa20.52e248","type":"api-current-state","z":"e2050abb.2e65d8","name":"","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.led_carport","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":410,"y":60,"wires":[["bbd7e00d.42ef5"]]},{"id":"bbd7e00d.42ef5","type":"switch","z":"e2050abb.2e65d8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":630,"y":60,"wires":[["4ce65f4.a5b49a"],[]]},{"id":"4ce65f4.a5b49a","type":"stoptimer","z":"e2050abb.2e65d8","duration":"122","units":"Second","payloadtype":"str","payloadval":"","name":"","x":810,"y":60,"wires":[["892d30a7.a11e2"],[]]},{"id":"892d30a7.a11e2","type":"api-call-service","z":"e2050abb.2e65d8","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.led_carport","data":"{\"entity_id\":\"light.led_carport\",\"effect\":\"random\",\"brightness\":\"255\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":60,"wires":[[]]},{"id":"d83cb16f.344cb","type":"inject","z":"e2050abb.2e65d8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"aus","payloadType":"str","x":250,"y":620,"wires":[["3bd25f91.17544"]]},{"id":"3bd25f91.17544","type":"mqtt out","z":"e2050abb.2e65d8","name":"","topic":"/camera/carport2/motion","qos":"","retain":"","broker":"67733e3c.34071","x":530,"y":620,"wires":[]},{"id":"9224769.3716488","type":"stoptimer","z":"e2050abb.2e65d8","duration":"2","units":"Second","payloadtype":"str","payloadval":"{\"value\": \"aus\"}","name":"","x":140,"y":160,"wires":[["a1dd6642.5f6408"],[]]},{"id":"2900b126.85522e","type":"api-call-service","z":"e2050abb.2e65d8","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.led_carport","data":"{\"entity_id\":\"light.led_carport\",\"effect\":\"strobe\",\"brightness\":\"255\",\"rgb_color\":[255,165,0]}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":590,"y":160,"wires":[[]]},{"id":"e0af8930.8a55a8","type":"api-call-service","z":"e2050abb.2e65d8","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.led_carport","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":570,"y":340,"wires":[[]]},{"id":"a9c60bac.a43028","type":"stoptimer","z":"e2050abb.2e65d8","duration":"2","units":"Minute","payloadtype":"str","payloadval":"{\"value\": \"aus\"}","name":"","x":800,"y":260,"wires":[["8abc7c71.92dee"],[]]},{"id":"8abc7c71.92dee","type":"mqtt out","z":"e2050abb.2e65d8","name":"","topic":"/camera/carport2/motion","qos":"","retain":"","broker":"67733e3c.34071","x":1050,"y":260,"wires":[]},{"id":"197a78e0.1763b7","type":"function","z":"e2050abb.2e65d8","name":"","func":"msg.payload = \"aus\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":640,"y":260,"wires":[["a9c60bac.a43028"]]},{"id":"8c8eaa5b.1d7148","type":"server","name":"Home Assistant","addon":true},{"id":"67733e3c.34071","type":"mqtt-broker","name":"","broker":"10.0.0.2","port":"1883","clientid":"nodered","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]


Presence simulation during vacation


NodeRed flow:
[{"id":"9b612f7e.07a67","type":"tab","label":"Urlaubsautomatik","disabled":false,"info":""},{"id":"24579bcb.5c9814","type":"inject","z":"9b612f7e.07a67","name":"11:00 Uhr","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 11 * * *","once":false,"onceDelay":"","topic":"","payload":"on","payloadType":"str","x":90,"y":60,"wires":[["8859b04e.b914d"]]},{"id":"8859b04e.b914d","type":"api-current-state","z":"9b612f7e.07a67","name":"Sim an?","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.urlaubssimulation_mittags_vorne","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":280,"y":80,"wires":[["ae708ac3.711f58"]]},{"id":"ae708ac3.711f58","type":"switch","z":"9b612f7e.07a67","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":80,"wires":[["50a593e3.992f0c"]]},{"id":"50a593e3.992f0c","type":"function","z":"9b612f7e.07a67","name":"random seconds","func":"var newmsg = {};\nnewmsg.delay = ((Math.floor(Math.random() * Math.floor(180)))*1000);\nreturn newmsg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":130,"y":180,"wires":[["dd46a1bf.428e5","218f7374.34e0ec","e205060d.280ad8"]]},{"id":"dd46a1bf.428e5","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_kuche","data":"{\"position\":80}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":180,"wires":[[]]},{"id":"218f7374.34e0ec","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.led_alle","data":"{\"brightness\":200,\"rgb_color\":[0,255,142],\"transition\":2}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":390,"y":300,"wires":[[]]},{"id":"e205060d.280ad8","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_schlafzimmer_vorne","data":"{\"position\": 85}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":240,"wires":[[]]},{"id":"a18b5e4c.30da","type":"inject","z":"9b612f7e.07a67","name":"15:00 Uhr","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 15 * * *","once":false,"onceDelay":"","topic":"","payload":"on","payloadType":"str","x":110,"y":400,"wires":[["643ce82a.8c0d78"]]},{"id":"643ce82a.8c0d78","type":"api-current-state","z":"9b612f7e.07a67","name":"Sim an?","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.urlaubssimulation_nachmittags_vorne","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":300,"y":420,"wires":[["cf4db616.2577a8"]]},{"id":"cf4db616.2577a8","type":"switch","z":"9b612f7e.07a67","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":420,"wires":[["3afb9723.da3d88"]]},{"id":"3afb9723.da3d88","type":"function","z":"9b612f7e.07a67","name":"random seconds","func":"var newmsg = {};\nnewmsg.delay = ((Math.floor(Math.random() * Math.floor(180)))*1000);\nreturn newmsg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":150,"y":520,"wires":[["8d92ffb.d60f","3b839e14.06fc12","525182c2.c4038c"]]},{"id":"8d92ffb.d60f","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_kuche","data":"{\"position\":70}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":450,"y":520,"wires":[[]]},{"id":"3b839e14.06fc12","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.led_alle","data":"{\"brightness\":200,\"rgb_color\":[0,255,142],\"transition\":2}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":410,"y":640,"wires":[[]]},{"id":"525182c2.c4038c","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_schlafzimmer_vorne","data":"{\"position\": 73}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":450,"y":580,"wires":[[]]},{"id":"9b42ef30.35cbc","type":"inject","z":"9b612f7e.07a67","name":"15:00 Uhr","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 15 * * *","once":false,"onceDelay":"","topic":"","payload":"on","payloadType":"str","x":90,"y":1100,"wires":[["15334df9.b93422"]]},{"id":"15334df9.b93422","type":"api-current-state","z":"9b612f7e.07a67","name":"Sim an?","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.urlaubssimulation_nachmittags_rest","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":280,"y":1120,"wires":[["8259c218.cdf62"]]},{"id":"8259c218.cdf62","type":"switch","z":"9b612f7e.07a67","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":1120,"wires":[["443b527.4e9eeac"]]},{"id":"443b527.4e9eeac","type":"function","z":"9b612f7e.07a67","name":"random seconds","func":"var newmsg = {};\nnewmsg.delay = ((Math.floor(Math.random() * Math.floor(180)))*1000);\nreturn newmsg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":130,"y":1220,"wires":[["dc94d8b5.414428","b9fdeb8c.e8f278"]]},{"id":"dc94d8b5.414428","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_kuche","data":"{\"position\":100}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":1220,"wires":[[]]},{"id":"b9fdeb8c.e8f278","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_schlafzimmer_vorne","data":"{\"position\": 100}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":1280,"wires":[[]]},{"id":"c4ccefbc.4e2e2","type":"inject","z":"9b612f7e.07a67","name":"11:00 Uhr","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 11 * * *","once":false,"onceDelay":"","topic":"","payload":"on","payloadType":"str","x":90,"y":740,"wires":[["342fc493.09cc4c"]]},{"id":"342fc493.09cc4c","type":"api-current-state","z":"9b612f7e.07a67","name":"Sim an?","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.urlaubssimulation_mittags_rest","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":280,"y":760,"wires":[["81507ce3.e50ee"]]},{"id":"81507ce3.e50ee","type":"switch","z":"9b612f7e.07a67","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":760,"wires":[["e8bc778.d9bf688"]]},{"id":"e8bc778.d9bf688","type":"function","z":"9b612f7e.07a67","name":"random seconds","func":"var newmsg = {};\nnewmsg.delay = ((Math.floor(Math.random() * Math.floor(180)))*1000);\nreturn newmsg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":130,"y":860,"wires":[["8be9d008.d86f1","43506b8b.1ffad4","4b77d12d.0e818"]]},{"id":"8be9d008.d86f1","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_wz_links","data":"{\"position\":90}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":860,"wires":[[]]},{"id":"43506b8b.1ffad4","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_wz_rechts","data":"{\"position\": 85}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":920,"wires":[[]]},{"id":"4b77d12d.0e818","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_esszimmer","data":"{\"position\": 85}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":980,"wires":[[]]},{"id":"d7844443.44c958","type":"api-call-service","z":"9b612f7e.07a67","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"set_cover_position","entityId":"cover.rollo_esszimmer","data":"{\"position\": 100}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":430,"y":1340,"wires":[[]]},{"id":"72a80000.04022","type":"comment","z":"9b612f7e.07a67","name":"Mittags vorne_____________________________________________________________________________________________________________","info":"","x":500,"y":20,"wires":[]},{"id":"d7a8bde2.3440d","type":"comment","z":"9b612f7e.07a67","name":"Nachmittags vorne_____________________________________________________________________________________________________________","info":"","x":510,"y":360,"wires":[]},{"id":"4001d9df.9187d8","type":"comment","z":"9b612f7e.07a67","name":"Mittags rest_____________________________________________________________________________________________________________","info":"","x":490,"y":700,"wires":[]},{"id":"bcf1ed94.8b94c","type":"comment","z":"9b612f7e.07a67","name":"Nachmittags rest_____________________________________________________________________________________________________________","info":"","x":510,"y":1060,"wires":[]},{"id":"8c8eaa5b.1d7148","type":"server","name":"Home Assistant","addon":true}]


Cover automations


NodeRed flow:
[{"id":"617c02b7.cfc96c","type":"tab","label":"Rolladensteuerung","disabled":false,"info":""},{"id":"42dfa469.101dac","type":"server-state-changed","z":"617c02b7.cfc96c","name":"","server":"8c8eaa5b.1d7148","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sun.sun","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"below_horizon","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":100,"y":440,"wires":[["23e4f9c.c738306"],[]]},{"id":"d6878d0a.5b195","type":"api-call-service","z":"617c02b7.cfc96c","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"close_cover","entityId":"cover.rollo_kuche, cover.rollo_schlafzimmer_vorne","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":620,"y":400,"wires":[[]]},{"id":"7728f9e7.2a1598","type":"api-call-service","z":"617c02b7.cfc96c","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"close_cover","entityId":"cover.rollo_wz_links, cover.rollo_wz_rechts, cover.rollo_esszimmer","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":620,"wires":[[]]},{"id":"1e517b7b.af5ba5","type":"delay","z":"617c02b7.cfc96c","name":"","pauseType":"delayv","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":620,"y":620,"wires":[["7728f9e7.2a1598"]]},{"id":"eb589a2.3f5f268","type":"function","z":"617c02b7.cfc96c","name":"","func":"var newmsg = {};\nnewmsg.delay = (parseInt(msg.payload)*1000)*60;\nreturn newmsg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":780,"y":540,"wires":[["1e517b7b.af5ba5"]]},{"id":"d3af40db.cde38","type":"api-current-state","z":"617c02b7.cfc96c","name":"Rollo Verzögerung","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.auto_roll_minutes_off","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":610,"y":540,"wires":[["eb589a2.3f5f268"]]},{"id":"98a0ac07.25ee9","type":"comment","z":"617c02b7.cfc96c","name":"Rollos vorne","info":"","x":590,"y":360,"wires":[]},{"id":"4b07c37d.64b00c","type":"comment","z":"617c02b7.cfc96c","name":"Rollos hinten","info":"","x":590,"y":500,"wires":[]},{"id":"7de1edf7.a78fc4","type":"comment","z":"617c02b7.cfc96c","name":"Abends_____________________________________________________________________________________________________________","info":"","x":480,"y":300,"wires":[]},{"id":"9c202c1d.68098","type":"comment","z":"617c02b7.cfc96c","name":"Morgens_____________________________________________________________________________________________________________","info":"","x":480,"y":40,"wires":[]},{"id":"cd699246.1810f","type":"server-state-changed","z":"617c02b7.cfc96c","name":"","server":"8c8eaa5b.1d7148","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sun.sun","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"above_horizon","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":100,"y":120,"wires":[["7010072d.295f28"],[]]},{"id":"2d94735f.fdc5fc","type":"api-current-state","z":"617c02b7.cfc96c","name":"Rollo Verzögerung","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_number.auto_roll_minutes_on","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":610,"y":120,"wires":[["34038243.c1640e"]]},{"id":"34038243.c1640e","type":"function","z":"617c02b7.cfc96c","name":"","func":"var newmsg = {};\nnewmsg.delay = (parseInt(msg.payload)*1000)*60;\nreturn newmsg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":780,"y":120,"wires":[["cdc965a8.ef6778"]]},{"id":"cdc965a8.ef6778","type":"delay","z":"617c02b7.cfc96c","name":"","pauseType":"delayv","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":620,"y":200,"wires":[["6f71532e.081ecc"]]},{"id":"6f71532e.081ecc","type":"api-call-service","z":"617c02b7.cfc96c","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"cover","service":"open_cover","entityId":"cover.rollo_wz_links, cover.rollo_wz_rechts, cover.rollo_esszimmer, cover.rollo_kuche, cover.rollo_schlafzimmer_vorne","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":200,"wires":[[]]},{"id":"7010072d.295f28","type":"api-current-state","z":"617c02b7.cfc96c","name":"Sim an?","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"automation.auto_roll_on_enabled","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":300,"y":120,"wires":[["cbf92d6a.2d4e7"]]},{"id":"cbf92d6a.2d4e7","type":"switch","z":"617c02b7.cfc96c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":120,"wires":[["2d94735f.fdc5fc"]]},{"id":"23e4f9c.c738306","type":"api-current-state","z":"617c02b7.cfc96c","name":"Sim an?","server":"8c8eaa5b.1d7148","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"automation.auto_roll_on_enabled","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":300,"y":440,"wires":[["5e64d302.1e950c"]]},{"id":"5e64d302.1e950c","type":"switch","z":"617c02b7.cfc96c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":430,"y":440,"wires":[["d6878d0a.5b195","d3af40db.cde38"]]},{"id":"8c8eaa5b.1d7148","type":"server","name":"Home Assistant","addon":true}]


weather controlled lawn automower


NodeRed flow:
[{"id":"630e9ea7.678c1","type":"tab","label":"Mähroboter","disabled":false,"info":""},{"id":"ddc324a6.87ac58","type":"server-state-changed","z":"630e9ea7.678c1","name":"","server":"8c8eaa5b.1d7148","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.dark_sky_precip_0d","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"rain","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":160,"y":140,"wires":[["43104c1.aba28b4"],["2b43feac.f5a062"]]},{"id":"2b43feac.f5a062","type":"api-call-service","z":"630e9ea7.678c1","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"script","service":"gardena_auto","entityId":"","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":490,"y":200,"wires":[[]]},{"id":"78efd1b2.217dc","type":"comment","z":"630e9ea7.678c1","name":"kein Regen","info":"","x":450,"y":160,"wires":[]},{"id":"783cd2f9.4b849c","type":"comment","z":"630e9ea7.678c1","name":"Regen","info":"","x":430,"y":40,"wires":[]},{"id":"43104c1.aba28b4","type":"api-call-service","z":"630e9ea7.678c1","name":"","server":"8c8eaa5b.1d7148","version":1,"debugenabled":false,"service_domain":"script","service":"gardena_home","entityId":"","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":490,"y":80,"wires":[[]]},{"id":"8c8eaa5b.1d7148","type":"server","name":"Home Assistant","addon":true}]