This object is in archive! 

Trigger switch manually

Chris shared this question 9 years ago
Need Answer

Hello,


I have a dimmer which regulates my luster in the living room. This is done by a rule according to luminace and movement in the room


Is it possible to trigger a manual shift by pressing the switch at the doorway to the living room?

The goal would be to disable the rule so that after switching the light on manually the rule would not be executed. After switching off the light manually the rule should be activiated again and regualte the luster automatically.


Thanks for your answers.


Regards

Christoph

Replies (4)

photo
1

Hi,


You could create a variable (e.g. luster_manual) and set it to 1 when you switch on manually and set to 0 when switch off manually (you'll need a "manual switch" rule for that). Use this variable in an if-statement of the Dimmer Rule, after the when-trigger: e.g. If luster_manual = 0, continue rule.


Hope it works for you.


Wilfried.

photo
1

that sounds good. So the rule will only trigger when the switch is off. So in puzzle, my example is a dimmer, so the state is less than 1 or equal to 0. If it is an on/off switch, you can just use a sensor block with the actuator as off.

photo
1

I'm not really following your rule but I think you will need 2 rules to operate your luster: one that is triggered by the motion sensor (use the motion sensor in the WHEN-statement) and one triggered by the switch (use the switch in the WHEN statement). See example below.


Rule 1 (operate luster by movement)

When Sensor Motion Any

If Variable Luster_Manual = 0

....

Rule 2 (operate luster by manual switch)

When switch any

if switch on

Luster Action Gotovalue 100

Set Variable_Luster_Manual to 1

else

Luster Action Gotovalue 0

Set Variable Luster_manual to 0

Save


Note I'm not able to simulate this myself, so you'll have to experiment a bit.

Leave a Comment
 
Attach a file