Intellisol Posted January 22, 2009 Share Posted January 22, 2009 Hi AllJust trying something out for a client. They want to use a dimmer for a few purposes:1) Dim the main light in the room2) Dim the lamp in the room3) Turn the whole room off when walking out of the doorSo my thought is to use a triple tap of the bottom button for each of these scenarios.1) Dim the main lightThe dimmer will work in its default manner tap top to switch on tap bottom to switch off. Hold top to dim on hold bottom to dim off.2) Dim the lamp via outlet dimmer (inline dimmer UK)Double tap bottom to switch into lamp mode. User will know the mode has changed as the LED will change colour.Use top tap to switch lamp on bottom tap to switch lamp off. Hold top to dim on hold bottom to dim off.3) Turn room offTriple tap bottom to turn room off to control the main light in the room and/or to control the outlet dimmer attached to a lamp. To control either the lamp So far we have got1) variable counter for counting the taps2) variable boolean for telling us that we are in either light or lamp mode3) Increase counter variable when bottom button is tapped (shown below in image)4) When the bottom button is release is when the scenarios start (shown below in image)The problem so far is that when the main light is on and you decide to go into lamp mode by double tap of the bottom button the main light starts to dim How can you hold the main light level whilst tapping if already on ?cheers Andrew Link to comment Share on other sites More sharing options...
dogdvr Posted January 23, 2009 Share Posted January 23, 2009 Andrew,something is wrong in the translation.Can you edit the post or re explain? Link to comment Share on other sites More sharing options...
Intellisol Posted January 23, 2009 Author Share Posted January 23, 2009 dogdvr ..... Thanks, after reading the post this morning it didn't make much sense to me either . Edited above so hopefully should be a little clearerThanks Link to comment Share on other sites More sharing options...
dogdvr Posted January 23, 2009 Share Posted January 23, 2009 I think you would have to change the programming to "pressed" instead of release.Your programming is activated upon release, but that still lets the original press start something. (in this case changing the main light)Brent Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.