Thanks for your reply marcel, but I don’t think that flow does what I’m looking for…
I don’t have a motion sensor in my hallway and I don’t want my lights to turn off after a time of nothing.
I would like them to turn off after any non specific action
Does zone activity also include turning lights on? hadn’t realised that, it may make me rethink some of my existing flow, just assumed it related to movement or contact sensors.
The way i’ve achieved similar is with variables, create and set a variable to zero, when something else happens e.g. a light switching on or the TV switching on then increase the variable by 1, then a separate flow that is when variable is greater than 1 turn hallway light off, catch all also when everyone leaves the house then set variable to 0. Hope that makes sense.
Yeah I thought of that gareth, but that would mean I have to set a variable for every device in my home.
Using zones I have multiple devices under 1 “if”.
One of the zone cards is; if zone is activated.
I’m guessing turning on a light will activate a zone
The only things activating zones are motion sensors (alarm_motion capability) and contact sensors (alarm_contact capability), so any flows that turn on a light based on motion it can seem that it also turns on “lights on” but that is definitely not the case.
this will definitely help with the light part, create a basic group, just with capability of on/off and add all lights to it, any of the lights switching on will trigger the group be classified as on.
First flow, to start a coming home timer:
If:
Someone comes home
Then:
Start countdown ‘‘coming home’’ for 240 seconds (since my homey registers me coming home when I’m turning into my parking lot
Second flow to turn hallway lights on:
If:
Contact alarm turns on
And:
Coming home timer is running
It’s after sunset
Hallway lights are off
Then:
Dim hallway lights to 60% during 1 sec
Start countdown timer ‘‘coming home lights off’’ for 120 seconds
Third flow to turn off hallway lights:
If:
Light group is turned on (pretty much all my lights except my toilet)
And:
Countdown timer ‘‘Coming home lights off’’ is running
Then:
Turn off hallway lights after 10 seconds
Stop timer ‘‘coming home lights off’’
For some reason I can’t login to my homey from my desktop, so I couldn’t make screenshots to make this easier.