Motion triggered lights with manual override

Posted on
Fri Mar 30, 2018 10:23 am
noel1983 offline
Posts: 333
Joined: Oct 17, 2014

Re: Motion triggered lights with manual override

haavarda wrote:
Well. I have been able to find something that works for me. Takes some triggers but it works.
The basis for the logic is that a group trigger stores the triggering device to a variable. One group trigger for on, and one for off, with each own variable.
With the group trigger I also start a one minute timer. When the timer expires I compare the two different variables. If they are equal I assume I want to ignore this change. If they are different I assume this is a manual override...
This is just the basis for the manual override. Underneath is a more complex motion trigger setup.


Would you be happy share a bit more info on this?

Specifically in terms of how you’re detecting the switch press? Is it a toggle or momentary switch?

Thanks
Noel

Posted on
Fri Mar 30, 2018 10:37 am
noel1983 offline
Posts: 333
Joined: Oct 17, 2014

Re: Motion triggered lights with manual override

stuartcolman wrote:
Are you using the Fibaro Dimmer module? If so there is a setting for sending scene commands. I use that and then set a trigger action on that.


Hi Stuart,
Could you elaborate on this please?

Do you mean that when someone flicks the switch it doesn’t turn the light on directly i.e. it sends a scene command to indigo that then issues the instruction to turn the lights on?

Or is the scene command sent as well as turning the light on i.e. to give you an indication in indigo that the switch has been used?

Thanks
Noel

Posted on
Fri Mar 30, 2018 11:21 am
stuartcolman offline
Posts: 72
Joined: Nov 01, 2015
Location: Essex, United Kingdom

Re: Motion triggered lights with manual override

Noel,

I use the Scene command to change a variable. I then have a trigger which looks at when the variable changes and stops one timer (the 5 minute one) and starts another (30 minute). So this acts as a manual override.

Normally our kitchen lights come on with motion, then go off after 5 minutes of inactivity. So switching the light on manually changes the length of time the timer runs for. When the kitchen lights come on normally with motion our kickboard RGBs are blue, when you switch them on manually from the switch this changes to green to denote the change.

Hope that makes sense.

Stuart

Who is online

Users browsing this forum: No registered users and 0 guests