Rules are not working

I have two areas that I can't seem to work. Suggestions welcome.
The fist is a water closet fan that is supposed to turn on when the light turns on and turn off 20 min. after the light turns off. The fan will not turn on and will not turn off if you manually turn it on.

The second is a little more complicated for my theater room. The idea is to turn on all lights if the occupied switch is off when the door opens or motion is triggered. Do not turn on lights if the room is occupied. Turn off all lights and plugs 10 minutes after the becomes unoccupied. Lights do not turn on but left and right speakers do, but they will turn off except the left and right speakers.

What the heck am doing wrong
Thank you

Your first rule can be simplified a lot.

Triggers
Light Turns ON

Action
On: Fan
Cancel Delayed Actions
Wait for Event Light OFF
Off: Fan --> delayed 20:00 cancleable

The the seconds rule you might want to use "Wait for Conditions" instead of if for the Unoccupied rules

1 Like