Choose style:

Author Topic: How can I have Click toggle brightness of a light?  (Read 104 times)

0 Members and 1 Guest are viewing this topic.

Offline Maragnus

  • Newbie
  • Posts: 3
  • Thanks: 0
  • Registered : 30/01/2015
    YearsYears
How can I have Click toggle brightness of a light?
« on: April 05, 2017, 10:46:48 pm »
I am looking to have my click control the brightness of a pair of lightify bulbs.

Two clicks turns them all off.
One click:
A) if they're off, turn them on full
B) if they're on full, set them to 50%
C) if they're on 50%, set them to 15%
D) if they're at 15%, set then at full

I don't like using the long press at all because you have to stare at the switch LED for about five seconds to know when it goes from click to long press.

I've created rules to accomplish this, but it seems that they all execute in series a few times. The bulbs change several times and end randomly at one of the steps.  It seems that the Click event stays present for a period of time, allowing these rules to keep triggering.

Is there any way to do what I need with the click?  Is there something else that would work for this?

Offline fillibar

  • Backer
  • *
  • Posts: 1567
  • Thanks: 4
  • Registered : 02/08/2013
    YearsYearsYearsYears
Re: How can I have Click toggle brightness of a light?
« Reply #1 on: April 06, 2017, 07:46:38 am »
Not easily. The problem is that a press is not instant. If you do one press you will see the Click state is one press... Until you do something else with it.

So... An option could be to have it cycle through brightness levels. The most "natural" to me is:
1) IF light off AND click long press THEN light on brightness 25%
2) IF light 25% AND click long press THEN light on brightness 50%
3) IF light 50% AND click long press THEN light on brightness 75%
4) IF light 75% AND click long press THEN light on brightness 100%
5) IF light 100% AND click long press THEN light on brightness 25%
6) IF light on AND click two press THEN light off

Some set like that might work. Long press cycles it through brightness. When is where you want, you hit the one press so it stops. Two press for off. You probably want delays after the brightness so you have a moment to stop it. Maybe something like...
THEN light on brightness 25% AND delay 5 seconds brightness 25%
Almond 3 handling most devices and network functions with an Almond+ also.

 

Page created in 0.044 seconds with 17 queries.