Hi, and thank you in advance for your support!
With assistance from this forum, we have a single-click looptimer panic button sequence working using aqara mini switches, i.e., the mini switches support single, double, and long press clicks.
Currently, a single click from any qara mini switch successfully starts a looptimer for x minutes and flashes lights on/off, and stops once the looptimer Max loops are reached.
We want to be able to manually stop flashing the lights on/off before the looptimer stops using a double-click. i.e. a false panic button click stops the looptimer.
I’m looking forward to your comments and suggestions!
[{"id":"57aa5bc9d175781c","type":"server-events","z":"5a0202f96055c14c","name":"ZHA Event","server":"6c09b198.8b806","version":1,"event_type":"zha_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"}],"x":80,"y":420,"wires":[["d8b79ff399dcb3ed"]]},{"id":"0578e611b0978c62","type":"debug","z":"5a0202f96055c14c","name":"zha_event","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1010,"y":200,"wires":[]},{"id":"dadb8b405c510c29","type":"api-call-service","z":"5a0202f96055c14c","name":"Alarm Lights Toggle","server":"6c09b198.8b806","version":5,"debugenabled":false,"domain":"light","service":"toggle","areaId":["backyard","entry","hallway","living_room"],"deviceId":["ed26384ce723279da94e926f501bd12e","4a1cef03c616e3fc89366bea55c05588","d294a69c8dbf5e238e316aa152a4e8b9","678565a61f4c82425620e84da4de2b58"],"entityId":["light.lumi_lumi_switch_b1laus01_41bf2b00_on_off","light.lumi_lumi_switch_b1laus01_acb72b00_on_off","light.lumi_lumi_switch_b1laus01_dfbf2b00_on_off","light.lumi_lumi_switch_b1laus01_cebe2b00_on_off"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":970,"y":400,"wires":[["0578e611b0978c62"]]},{"id":"ed41e992f8d45d13","type":"looptimer","z":"5a0202f96055c14c","duration":"1","units":"Second","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"10 Minute Loop","x":700,"y":340,"wires":[["dadb8b405c510c29"],["4f7df52b968444de"]]},{"id":"4f7df52b968444de","type":"api-call-service","z":"5a0202f96055c14c","name":"Alarm Lights Off","server":"6c09b198.8b806","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":["backyard","entry","hallway","living_room"],"deviceId":["ed26384ce723279da94e926f501bd12e","4a1cef03c616e3fc89366bea55c05588","d294a69c8dbf5e238e316aa152a4e8b9","678565a61f4c82425620e84da4de2b58"],"entityId":["light.lumi_lumi_switch_b1laus01_41bf2b00_on_off","light.lumi_lumi_switch_b1laus01_acb72b00_on_off","light.lumi_lumi_switch_b1laus01_dfbf2b00_on_off","light.lumi_lumi_switch_b1laus01_cebe2b00_on_off"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":980,"y":460,"wires":[["0578e611b0978c62"]]},{"id":"d8b79ff399dcb3ed","type":"switch","z":"5a0202f96055c14c","name":"aqara mini switchs","property":"payload.event.unique_id","propertyType":"msg","rules":[{"t":"cont","v":"00:15:8d:00:07:e9:4e:8a:1:0x0012","vt":"str"},{"t":"cont","v":"00:15:8d:00:07:e9:4e:2f:1:0x0012","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":290,"y":420,"wires":[["3672d9997d59778e"],["3672d9997d59778e"]]},{"id":"3672d9997d59778e","type":"switch","z":"5a0202f96055c14c","name":"Single/Double","property":"payload.event.command","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":520,"y":420,"wires":[["ed41e992f8d45d13"],["55f1780be0ddf58f"]]},{"id":"55f1780be0ddf58f","type":"change","z":"5a0202f96055c14c","name":"Change double to max loops reached","rules":[{"t":"change","p":"payload","pt":"msg","from":"double","fromt":"str","to":"\"max loops reached\"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":670,"y":520,"wires":[["ed41e992f8d45d13"]]},{"id":"6c09b198.8b806","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]