kitchen light flash 5 times if garage door is open
Discription:
If garage door open sensor is dtected the flow wil start send me an email and wil flash kitchen light 5 times and wil stay on. If garage door is closed the flow wil send me an amail and switch the kitchen light off
[{"id":"69d926fdba486f4c","type":"tab","label":"Garage ","disabled":false,"info":"","env":[]},{"id":"24889a564998b3c1","type":"switch","z":"69d926fdba486f4c","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":450,"y":140,"wires":[["1ce07e9458855e0d","beb2619e8f9f5eef"],["6700126576f09e4c"]]},{"id":"c9eeb66de7d086ba","type":"inject","z":"69d926fdba486f4c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":310,"y":380,"wires":[["24889a564998b3c1"]]},{"id":"2b45e23585eae5f6","type":"inject","z":"69d926fdba486f4c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":310,"y":440,"wires":[["24889a564998b3c1"]]},{"id":"4557894b31cef32f","type":"email-send","z":"69d926fdba486f4c","transport":"329140016cd864cd","from":"frans@","to":"grimelke@","cc":"Garage Poort Gesloten","bcc":"","subject":"Homeassistant Garage Poort is Gesloten","contentType":"text","name":"","x":910,"y":280,"wires":[[]]},{"id":"c6962a597378faf5","type":"delay","z":"69d926fdba486f4c","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":900,"y":240,"wires":[["1ce07e9458855e0d"]]},{"id":"0dd1879dc1d58d93","type":"delay","z":"69d926fdba486f4c","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1220,"y":160,"wires":[["28c9ec0b02d71d2f"]]},{"id":"beb2619e8f9f5eef","type":"email-send","z":"69d926fdba486f4c","transport":"329140016cd864cd","from":"frans@","to":"grimelke@","cc":"Garage Poort OPEN","bcc":"","subject":"Homeassistant Garage Poort is OPEN","contentType":"text","name":"","x":670,"y":200,"wires":[[]]},{"id":"6700126576f09e4c","type":"api-call-service","z":"69d926fdba486f4c","name":"","server":"4b5d8a1a.a51c34","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.keuken_lamp_licht_4"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":650,"y":280,"wires":[["4557894b31cef32f"]]},{"id":"28c9ec0b02d71d2f","type":"api-call-service","z":"69d926fdba486f4c","name":"Node Red Test Light ON","server":"38a3af1f.041fc","version":5,"debugenabled":false,"domain":"homeassistant","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.keuken_lamp_licht_4"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1430,"y":160,"wires":[["c6962a597378faf5"]]},{"id":"6eaf9926866ff650","type":"api-call-service","z":"69d926fdba486f4c","name":"Node Red Test Light OFF","server":"38a3af1f.041fc","version":5,"debugenabled":false,"domain":"homeassistant","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.keuken_lamp_licht_4"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":160,"wires":[["0dd1879dc1d58d93"]]},{"id":"f39bcb32cbf03b71","type":"api-call-service","z":"69d926fdba486f4c","name":"Node Red Test Light ON","server":"38a3af1f.041fc","version":5,"debugenabled":false,"domain":"homeassistant","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.keuken_lamp_licht_4"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":100,"wires":[[]]},{"id":"796e9bc7f8efb4d2","type":"server-state-changed","z":"69d926fdba486f4c","name":"Garage Deur open","server":"4b5d8a1a.a51c34","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"binary_sensor.garage_poort_openen","entityIdType":"exact","outputInitially":true,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":false,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":210,"y":140,"wires":[["24889a564998b3c1"]]},{"id":"1ce07e9458855e0d","type":"counter-loop","z":"69d926fdba486f4c","name":"Loop 5 x Keuken Licht uit/aan","counter":"il1ce07e9458855e0d","counterType":"msg","reset":true,"resetValue":"value-null","initial":0,"initialType":"num","operator":"lt","termination":"5","terminationType":"num","increment":1,"incrementType":"num","x":730,"y":120,"wires":[["f39bcb32cbf03b71"],["6eaf9926866ff650"]]},{"id":"153e1b38a65ac20b","type":"comment","z":"69d926fdba486f4c","name":"Uitleg","info":"Garage gaat open, keuken licht gaat aan + mail naar grimelke@\n+ er wordt een loop gestart waardoor het keukenlicht 4x uit en aan gaat\nen als de garage deur nog open blijft blijft het keukenlicht ook aan.\nGaat de garage deur dicht dan gaat ook het keukenlicht uit!","x":190,"y":260,"wires":[]},{"id":"329140016cd864cd","type":"email-transport","name":"Frans Kremers","host":"smtp.strato.com","port":"","secure":false,"authType":"login","proxy":""},{"id":"4b5d8a1a.a51c34","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false},{"id":"38a3af1f.041fc","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]