I currently have this:
where function node is:
if (msg.payload.length == 1){
return [msg, null];
}else{
return [null, msg];
}
and the loin joins in array.
[{"id":"14fe5df7b273b2be","type":"join","z":"a787a77.9c16458","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"1","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":290,"y":840,"wires":[["4b03e6dd16fe4c62"]]},{"id":"4b03e6dd16fe4c62","type":"function","z":"a787a77.9c16458","name":"","func":"if (msg.payload.length == 1){\n return [msg, null];\n}else{\n return [null, msg];\n}","outputs":2,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":840,"wires":[["e3cccd4158d914d9"],["d2fcd6e1a6abc0ec"]]},{"id":"e3cccd4158d914d9","type":"api-call-service","z":"a787a77.9c16458","name":"Hallen on","server":"4bbca37b.1700ec","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.hallen","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":640,"y":800,"wires":[[]]},{"id":"d2fcd6e1a6abc0ec","type":"api-call-service","z":"a787a77.9c16458","name":"Köket on","server":"4bbca37b.1700ec","version":3,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.kokslampa","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":640,"y":860,"wires":[[]]},{"id":"4bbca37b.1700ec","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
But it feels unresponsive. You click and it feels like something is wrong and then the light goes on.
Is there any way to get the click /double click faster to make it not feel sluggish.
It’s the join timeout that makes it feel slow. Anyone has a different solution?