After a time


I describe my problem

I have a veranda light who turn off at 23 00
In summer we often sitting outside after 23 00.
I can change the automation with condition “veranda door” open.
Now I want switch off the light automatic if the door is closed.
So trigger is door close and the condition “after 23 00” ?

If after possible ?
Thanks for help

This is possible but the condition after is only true between 23:00 and midnight… 01:00 is not after 23:00 during the day but before… so be aware of it

So the condition are (it is an AND between those conditions):

  - condition: state
    entity_id: your_entity
    state: "closed"
  - condition: time
    after: "23:00:00"
    before: "05:00:00"

see here for the documentation:

Ok understand
Trigger is door.close and condition after

Thank you I will try