Not there because I already tested that and it didn’t work (as mentioned)
I was showing the alternate path I’m exploring
The switch test was in the other flow
Irrespective, something very strange is going on tho - debugging further it seems that sometimes (but not always), the hold action triggers twice on this particular switch
So these 4 actions are a single hold - not just a stray empty string, but actually a stray repeat as well
This explains the “twice only” thing I was seeing - it was triggering the flow twice - it doesn’t seem to be traversing the loop for some reason however…
I also tried using a complete node to separate out the bits but again it triggers but doesn’t seem to traverse the loop properly for some reason
[{"id":"581bdc874bf62849","type":"api-call-service","z":"59430083fba16f20","name":"","server":"3aa13fed.bf745","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.study_bulb"],"data":"{ \"brightness\": msg.data.attributes.brightness+15 }","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":970,"y":500,"wires":[["8c71e0fa990452f4"]]},{"id":"0294170206cc2f11","type":"api-call-service","z":"59430083fba16f20","name":"","server":"3aa13fed.bf745","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.study_bulb"],"data":"{ \"brightness\": msg.data.attributes.brightness-15 }","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1050,"y":540,"wires":[["218031f10ac994c9"]]},{"id":"218031f10ac994c9","type":"delay","z":"59430083fba16f20","name":"","pauseType":"delay","timeout":"50","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1250,"y":540,"wires":[["c4d113215f9048d1"]]},{"id":"c4d113215f9048d1","type":"switch","z":"59430083fba16f20","name":"","property":"hold_btn_right_bottom","propertyType":"flow","rules":[{"t":"eq","v":"true","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":970,"y":620,"wires":[["3b3bdef2436bfc7c","ee3ac0dd8a80efe9"]]},{"id":"bcae84ec994df04f","type":"switch","z":"59430083fba16f20","name":"","property":"hold_btn_right_top","propertyType":"flow","rules":[{"t":"eq","v":"true","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":970,"y":440,"wires":[["986974456c92a99d","ee950c34e83e71db"]]},{"id":"8c71e0fa990452f4","type":"delay","z":"59430083fba16f20","name":"","pauseType":"delay","timeout":"50","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1230,"y":500,"wires":[["bcae84ec994df04f"]]},{"id":"986974456c92a99d","type":"api-current-state","z":"59430083fba16f20","name":"","server":"3aa13fed.bf745","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.study_bulb","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"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":765,"y":500,"wires":[["581bdc874bf62849"]],"l":false},{"id":"3b3bdef2436bfc7c","type":"api-current-state","z":"59430083fba16f20","name":"","server":"3aa13fed.bf745","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.study_bulb","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"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":865,"y":540,"wires":[["0294170206cc2f11"]],"l":false},{"id":"06274c7b846f7f0b","type":"complete","z":"59430083fba16f20","name":"Complete: hold_btn_right_top","scope":["d8315b8b3acdde08"],"uncaught":false,"x":580,"y":500,"wires":[["986974456c92a99d","6b7ebc4170efdeca"]]},{"id":"e250fd4ce1b37371","type":"complete","z":"59430083fba16f20","name":"Complete: hold_btn_right_bottom","scope":["6a8878273cf61135"],"uncaught":false,"x":590,"y":540,"wires":[["3b3bdef2436bfc7c","6b7ebc4170efdeca"]]},{"id":"4027532693ecdaca","type":"debug","z":"59430083fba16f20","name":"Bottom Switch","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1100,"y":780,"wires":[]},{"id":"6b7ebc4170efdeca","type":"debug","z":"59430083fba16f20","name":"Is Complete Object being Called","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":710,"y":660,"wires":[]},{"id":"ee3ac0dd8a80efe9","type":"change","z":"59430083fba16f20","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"hold_btn_right_bottom","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":720,"wires":[["4027532693ecdaca"]]},{"id":"3624ae76341cf1e5","type":"debug","z":"59430083fba16f20","name":"Top Switch","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1170,"y":380,"wires":[]},{"id":"ee950c34e83e71db","type":"change","z":"59430083fba16f20","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"hold_btn_right_top","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1100,"y":320,"wires":[["3624ae76341cf1e5"]]},{"id":"df44b2fd95736b35","type":"change","z":"59430083fba16f20","name":"","rules":[{"t":"set","p":"hold_btn_lt","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":780,"wires":[[]]},{"id":"1ecb47afdecdaddf","type":"change","z":"59430083fba16f20","name":"","rules":[{"t":"set","p":"hold_btn_lb","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":820,"wires":[[]]},{"id":"d8315b8b3acdde08","type":"change","z":"59430083fba16f20","name":"","rules":[{"t":"set","p":"hold_btn_right_top","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":860,"wires":[[]]},{"id":"6a8878273cf61135","type":"change","z":"59430083fba16f20","name":"","rules":[{"t":"set","p":"hold_btn_right_bottom","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":900,"wires":[[]]},{"id":"6cc9216855f24d53","type":"switch","z":"59430083fba16f20","name":"Hold Actions","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"left_top_hold","vt":"str"},{"t":"eq","v":"left_bottom_hold","vt":"str"},{"t":"eq","v":"right_top_hold","vt":"str"},{"t":"eq","v":"right_bottom_hold","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":290,"y":840,"wires":[["df44b2fd95736b35"],["1ecb47afdecdaddf"],["d8315b8b3acdde08"],["6a8878273cf61135"]]},{"id":"e8e6290c0de09c90","type":"server-state-changed","z":"59430083fba16f20","name":"Study Light Switch","server":"3aa13fed.bf745","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.study_light_switch_action","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,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":840,"wires":[["6cc9216855f24d53"]]},{"id":"3aa13fed.bf745","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]
OMG… I’m such a muppet
NONE of the above matters… the loop was failing as I had string true as opposed to ‘is true’ in the switch