I’ve been very happy with my simple automation to turn my studio lights on and off based on 1x mmwave sensor.
This includes 2x lamps in the ceiling fan and a desk lamp that automatically turn on when you enter and off when you leave.
1x closet light that is manually turned on and turns off with the presence automation.
I just added an overhead worklight and do not want it to turn on every time I walk in, but instead only if I come back into the room within say 15 min of leaving.
I believe the best way to achieve this is with scene.studio_light_states
I can just record the scene with the off automation and recall it with the On, however im not sure how to test if the scene was created within my reentry window.
And at this point I figured it might be nice to see if this is a good direction to be heading or if there is something I should look into!
I also use adaptive lighting for everything in this room so I really just need/want on/off states, I do not need brightness or color attributes which I believe can be adjusted in the scene record settings.
Welcome to the forum. Note that scenes don’t have an on/off state. They are fire & forget, which will lead to complications.
Having said that, what you want seems straightforward enough to do via an automation. Post your current automation (formatted correctly as per pinned post) & post the entity ID of your worklight. We can help you figure out the rest
This tests in the developer tools as expected, but I get lost in yaml easily and the visual automation builder doesn’t make it clear to me how to do an chooser based on if the scene was updated within the last 15 min or not
This is where I’m at, but I don’t think that “last_changed” is a state…