Automation tips

For this Drew, I use 3 motion sensors in my kitchen - at least one of them will pick me up at all times..
Then I use ‘Average All’ to aggregate them and set a 5 minute timer (which is constantly reset by movement) this is then pushed to a virtual motion sensor which activates the lights :slight_smile:

My lights NEVER go out when someone is in the kitchen :slight_smile:

Andy

I think I want to know more about this. I have the same concept, but I'm doing it in rule manager. I'd be interested in your way.

April, it’s just my ‘average all’ app.

Create a virtual device with the ‘average all driver’.
Setup a child app with multiple motion sensors.. assign the virtual to the app... then set a timeout.
(In my case 5 minutes)
In my kitchen I have 3 motion sensors (on 3 different walls)

The timeout will not start until ALL motion sensors report no motion
But... during the timeout, if any sensor reports motion then the timer is cancelled until the next time all sensors report no motion, then the timer starts again.

So, once I leave the kitchen the lights go off after 5 minutes.
(Actually they just dim in my case as I have a separate app that sets them to 20% when there is no motion - but I’ve never released that as it’s a bit specialised for my use case)

You then just need to use the average all virtual device in any app you use to turn the lights on/off with motion
For my office (setup with 2 motion sensors) I just use ‘motion controlled lights & switches’ to turn my monitor on/off with motion too

Andy

1 Like

Checkin' it out

1 Like

Need to test this out.

Normally I don't like to use virtual devices as I believe they defy the core of devices.
But this might be worth an exception.

I normally use a similar setup and have this setup in ST:
If MS1 detects movement or MS2 detects movement or MS3 than turns lights if no movement in ms1 ms2 and ms3 in the last 5 minutes turn off lights

@Cobra How does Average All differ from OR in a Rule?

Either Motion turns on a Light, Both Motion must be off to begin the timer to Off

1 Like

Andy, My example was not one of lights going on/off on me because of the motion sensors. I'm using two motion sensor in my kitchen and I could make do with lux levels and time of day setting the light level. There are times I want it much brighter than my automation sets it. I'm home office based, somedays I start at 5 am other days not till 9. Some nights cooking is at 5 other nights might not be until 8:30. 80% of the time my automated settings are good enough, however, I want the ability to adjust and override automation for operating room bright. :mask:

This is not directed at you Andy, this just a general statement. My point being, telling somebody they are doing it wrong because they use a dashboard, a button controller or a voice assistant is not being realistic, everybody's needs and wants are different.

2 Likes

Yes, I get that.

The flawed assumption/argument many make when trying to convince you that it CAN be automated is that you want the same thing to happen every time certain conditions happen.

I don't.

Even at certain times of day or ambient lux, sometimes I want the lights bright. Sometimes dim. Sometimes off.

Thus for ME dashboards and voice commands are perfect. Automation of lights is not. Never will be for ME.

And that's ok.

I think hubitat, et al, need to improve dashboard capability. And based on their comments, they are working on that. Which is good.

2 Likes

Not that you were asking for advice, but why set up separate conditions with OR? Selecting multiple sensors in one condition does "any" by default, which is the same as "OR".

Also JMO but this seems a lot simpler than averaging with a timer and a virtual motion sensor as @csteele said...?

I was creating an example and thus, since I was asking for the comparison to an OR, I thought it would be smart to include an OR in the example.

Yes, you're correct about the way I'd do it if I was doing it "for real" vs an example. :slight_smile:

1 Like

Hi April, Would you mind sharing how this was accomplished? That's a very interesting idea!

No idea!
I don’t use RM :slight_smile:

However, if you are a new user, how long would it take you to work that out?
I initially write my apps for my own use.
If other people find them useful fine, if not, use alternatives.

Andy

1 Like

LOL. Sorry about this @Vansmak. This is another thread where the community just started talking amongst themselves and kind of ignored the OP. We all mean well. Just passionate is all. :wink:

I use buttons in most places where I want manual control of lights. I'm not a fan of dashboards. They're not kid and wife friendly, at least not mine.

In regard to your question about adjustments and the state returning, check out the motion lighting manual. You can set it so that when you make an adjustment to a dimmer, it won't override your manual setting with a motion sensor.

Just a note if you were not aware, you can get to the manuals by clicking on the ? in the top right of apps.

1 Like

Hahahaha.. didn't know that. :slight_smile: At the same time, it's not a surprise.. so maybe the back of my brain knew that. :smiley:

Sure. There's a write up here. Search for modified QI charger. It's a lounge topic. I'd post a link but I'm on my cell phone.

[Edit] Now that I'm back at my computer. Here's that link @DeveloperDavidB

2 Likes

Alternative to Andy's excellent average all app, Motion Lighting, Simple Lighting, Rule Manager, Room Manager, all have the ability to setup multiple sensors per room, with Or conditions. Rule Manager can handle And conditions as well.

Plus, there's a native app called Zone Motion Controllers, which can be used to further customize how to aggregate the motion sensors into one condition for use in any native or custom apps.

Thank you April!

1 Like

I love the challenge :slight_smile:
Actually I find it quicker to write some code to do exactly what I want.
Nothing against RM - far from it, I think it’s brilliant.
I just don’t find a need for it now. I’ve pretty much written everything I need for my home automation.

Andy

1 Like

Don't mind me. Although I have made the forum much more lively with my new threads.

1 Like