Way to turn off backlighting Independantly


#1

1) Give a description of the problem
So I have this piston and it uses double tap to turn loop on and also doubletap to turn it to cool white but I have no way of turning it off on it’s own. Is there a creative way to do this?

2) What is the expected behavior?
see above

3) What is happening/not happening?
see above

**4) Post a Green Snapshot of the piston![image|45x37]


#2

Does your device report the double tap each time? If it does, maybe you can have a variable keep track of the number of double taps.


#3

i’m not sure, it’s a GE zwave+ on/off switch


#4

I took a quick look at the dth you’re using and it looks you get two double taps, one for up (button #1) and one for down (button #2)?


#5

yes, i intend on using down to turn off the light


#6

See what this does… create a blank piston and create a variable count = 0

if
	Switch's button #2 gets pushed
then
	with
		Location
	do
		set variable count = {count} + 1
		Log to console = {count}
	end with
end if;

Double tap the bottom maybe 3 or so times with a few seconds in between and see what you get in the logs