Double tap switch

@Rocodamelshekima, good point! :+1:t3:
I wouldn’t have noticed that on the screenshot.

@Nordenberg, what else do you want to know? There are a lot more adjustable settings. But as I mentioned before, I don’t use a Dimmer 2 my own. So I also have to look into the manual.

Thx both!

I feel super slow, but I can’t get it really right. Ideally I’d like a setup where I double click the switch at my front door and all lights turns off and when I triple click a base-light in the flat is turned on.

Is that doable?

At the moment I am still playing around with only 2 Dimmer 2 and the Homey Pro to test it all out before going all in.

Sure is possible:

Excuse my French in the flow screenie.

Hey Buddy,

Thanks I’ve finally managed to get a grip of the tripple/double thingys. Time to get real! I :fist_right:

2 Likes

I’ve been trying to add double tap functionality to a light switch with no success. I found a good tutorial that I can get to run without errors however, it always executes a single tap no matter what i do. In the tutorial he is using a remote switch and my switch is hard wired. Could this be issue?

I was able to recreate the flow (I think) but it’s in Swedish so I probably missed some things.

Bellow is the flow I made.

and this is the script which I got from the videoā€

// Duration between runs in millliseconds

// time0 stored in Homey ā€œglobal memory?ā€ i e not as Variable i flows

// This is required below a second or so, the variable in flow is too slow it seems.

// The calculation will work (from 3rd run), the very first run the variable for time0 is not created.

// The second ā€œNullā€ probably.

// Sloppy programming I know but it will self correct after first runs when the variable

// exist and has a value.

let date = new Date();

let time = date.getTime(); //Current time

let time0 = global.get(ā€œms_timestmpā€); //Get the stored time

log(time0)

log(time)

global.set(ā€œms_timestmpā€, time); //set new time0 in memory

let diff = time - time0; //Compare times

log("diff ", diff)

return diff;

any help would be greatly appreciated!

I have an update:

The reason the double tap flow wasn’t working is because most of the Zooz switches do not send additional ON taps after the switch is On or OFF taps after it’s switched OFF. Zooz support has told me this will be fixed in the next app update. the current version is 1.0.27