Bathroom Light at night


#1

I’m trying to create a piston so the bathroom light when turned on after 10pm turns off after 5 minutes every night until 7am.

Whenever I try and add a timer it gives me a warning about timers are designed to be top level statements. I can’t seem to access timer settings at the top of the piston.
Can someone tell me where I’m going wrong, please?


#2

I have something similar, hopefully this helps


#3

How about.
IF
Time is between 2200 and 0700
AND
Bathroom light is on.

THEN
WITH
Bathroom Light
DO
Wait 5 minutes
Turn off.

It would be nice to know if you are using motion or something similar as the piston will change accordingly.


#4

Maybe this?


#5

They all look good to me.

How do I pick “Time” at the beginning?


#6

In your first option it says physical devices.
Click on this and you will get a drop down.
Pick Virtual Devices.
Now scroll down and pick Time.

image

image


#7

Thanks I will try that.