Auto Dim Lights with no activity


#1

Probably already been asked a million times, and i’m a million times stupid, but I can’t find an answer!

1) Give a description of the problem
I have been building up my smart home and already have a number of pistons working happily. I have a smartthings motion sensor in a room with a load of Innr lights. I can’t get the piston to work, see below.

2) What is the expected behavior?
When there has been no activity in the room for 5 minutes, dim lights to 10%. When I come back in, turn the lights back on to 80%.

3) What is happening/not happening?
It’s not working right!

4) Post a Green Snapshot of the pistonimage


#2

This should work… I tested it with a single light and motion sensor.

EDIT: You could also split it into 2 separate “IF” statements if you like, then use restrictions to run the piston only when location mode = home


#3

Here’s another version, split into 2 “IF” statements, using a restriction.


#4

Thanks very much! I’ll try it when I get home from work.

Excuse the newbie question- I’ve kind of got to grips with basic statements but I’ve never used the ‘Else’ bit. Can you explain what that does?

Edit- also what does the disable automatic piston state setting do?

Harry


#5

The else works as in “if there’s not” so. If a piston is set with motion sensor active then it will come on. Else (if no motion) wait 5 mins and then dim to 10%


#6

The piston state is the text that displayed next to the piston on the main dashboard.
For example, here’s a screenshot of my dashboard:

You have to “disable automatic piston state” in order to manually have it set to something else. It’s kinda just a habit for me now to set that.


#7

Oh that’s really handy not having the false bit. I’d like it to be able to tell me when something will next turn on!

Thanks also for the explanation of else. I’ll play around when I’m home.