Light sensor on/off after 10 minutes

Hi!
I have a light sensor that check if its dark och bright and when av switch turns on and off. I use the switch to turn my light on. The problem is that the switch turns on then off and on again when it starts to get dark and the same behavior when it starts to get bright but turn off → turn on ->turn off.

I would like to have a sensor that has a delay on my light sensor. When the light sensor has been on “dark mode” for 10 minutes then I want the sensor to turn on. And then the light sensor has been om “bright mode” for 10 minutes then I want the sensor to turn off.

I have read on Template - Home Assistant but i cant get it to work. Can anyone please help me.

Can you show us the automation you have created.

It could just be as easy as having a different level of light required for the on and off trigger.

The problem is that my light sensor don’t send any vault och the brightness. It only sends if it dark or bright. The value is stored in the light sensor it self.

You probably want to build that delay into your trigger.

1 Like

That’s great.
Didn’t know this option. I thought I only can use the delay option under a entity in conditions.