Lights fan and motion


#1

1) Give a description of the problem
I want to automate my fan with motion. Then turn it of if no motion for more then 5 mins only if the lights are off.

2) What is the expected behaviour?

3) What is happening/not happening?
Fan turns on nothing else happens regards of lights on off.

**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.

Hi all

Am a noob to this all read alot of posts but couldn’t figure out how to add light status to the piston. The lights am running at the osram and hue lights. I don’t have a smart switch I use zwave remote to control them direct.

Thanks in advance for Ur help and advice


#2

I think that I understand what you are trying to do. I would change line 29 and 31 to…

IF Motion Sensor 1's motion stays inactive for 5 minutes
and
RGB Bulb 6's switch is off
  Then
    With Outlet 1 and Outlet 2
     Turn Off
END IF

#3

What is meant by a switch? Is it the smart wall switch or it means if the lights status are off?


#4

I don’t have RGB bulbs. Do they have a “switch” device option? If so, use that.


#5

Ok am going to try it and update here

Thanks alot


#6

I presume that the RGB bulbs have a “switch” option that you can select from the pull-down menu when you select the RGB bulb in the IF statement.

image


#7

It worked thanks


#8

If my suggestion worked, would you please check the green “solution” checkbox? Thanks.


#9

Done