Trigger pressing switch with Fibaro

Posted on
Sun Jul 17, 2016 7:59 am
Nine offline
Posts: 78
Joined: Feb 15, 2015
Location: Zurich, Switzerland

Trigger pressing switch with Fibaro

My lights in the bathroom are controlled by (Fibaro) motion sensors. Sometimes my girlfriend wants the light to remain on without any movements 8)
I thought, that I could use my existing (hardware) switch to toggle a variable: if the switch is pressed > set variable to true and if variable is true delay turning off the light xx minutes... But I'm not able to trigger my switch. I can only trigger, if the lights goes on... but this is also triggered, if the lights switches on by the motion sensors... Any suggestions?

Nine

Posted on
Mon Jul 18, 2016 4:27 am
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Trigger pressing switch with Fibaro

I believe that you're going to need a switch that reports local control.

The only other thing that I can think of (and there may be problems with this approach) is, if the Fibaro reports energy usage, you could toggle a variable in conjunction with your existing trigger (i.e., Indigo turned on/off the light) combined with the energy usage--if Indigo didn't turn on the light and it's presently using energy, it must be turned on by local control (therefore leave the light on.)

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Jul 18, 2016 3:45 pm
andarv offline
Posts: 126
Joined: Jun 28, 2015
Location: Stockholm, Sweden

Re: Trigger pressing switch with Fibaro

Maybe I'm missing something, but what kind of switch is it? Or how is the lights controlled?

We have precense controlled lighting with fibaro sensors. When no motion is detected it counts down for x min. If someone is detected it resets the timer.

If someone uses the lightswitch it goes into "manual" mode via a variable (auto, on or off)

Posted on
Tue Jul 19, 2016 3:02 am
Nine offline
Posts: 78
Joined: Feb 15, 2015
Location: Zurich, Switzerland

Re: Trigger pressing switch with Fibaro

andarv wrote:
If someone uses the lightswitch it goes into "manual" mode via a variable (auto, on or off)


That's exactly what I'm looking for: how do you do that?

In the fibaro-forum I probably found a solution: http://forum.fibaro.com/index.php?/topi ... +%2Bmanual Will try it, as soon as I have time...

Nine

Posted on
Tue Jul 19, 2016 3:43 am
andarv offline
Posts: 126
Joined: Jun 28, 2015
Location: Stockholm, Sweden

Re: Trigger pressing switch with Fibaro

I'll post a more detailed description later tonight when I'm home then.

Posted on
Tue Jul 19, 2016 3:33 pm
andarv offline
Posts: 126
Joined: Jun 28, 2015
Location: Stockholm, Sweden

Re: Trigger pressing switch with Fibaro

This will be a long post, but it's not that complicated. Feel free to come with improvements.
With this setup the light switches overrides motion sensor regarding the lights.

MAL = Motion ActivatedLight
MSO = MotionSensorOverride

Variabels used:
MSO_Hallway

Trigger - MAL_Hallway
Trigger: motionsensor
Condition: MSO_Hallway = auto
Action: TurnOn and brighten with auto-off after 8min

Trigger MSO_Hallway_on
Trigger:Zwave Event -- Command, Hallway on
Action : set variable MSO_Hallway = on, start timer MSO_Hallway xx min

Trigger MSO_Hallway_off
Trigger: Zwave event -- Command Hallway off
Action : set variable MSO_Hallway = off, start timer MSO_Hallway xx min

Trigger - MSO_Hallway_reset timer
Trigger: Motionsensor becomes off
Condition: variable MSO_Hallway is not equal to auto
action: reset timer

Trigger - MSO_Hallway_reset auto
Trigger: timer expired
condition: if variabel MSO_hallway is not equal to auto
Action: Set variable to auto

This works for me, i tried to write something in python but failed miserably. Had to revert back to this or give upp HA...
I'm in the process to change the setup somewhat so that light correspond to the preens in the rooms better.

Posted on
Tue Jul 19, 2016 11:40 pm
Nine offline
Posts: 78
Joined: Feb 15, 2015
Location: Zurich, Switzerland

Trigger pressing switch with Fibaro

andarv wrote:
Trigger:Zwave Event


That's exactly what I was looking for! Thx andarv!!!

Nine

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests