How to automate my awning (sunscreen)

Hey Martinvdm,

With the code below, don’t you get a message every 30 minutes now on a sunny day throughout the day?
I applied your code and I seem to get this message every 30 minutes as:

  1. Trigger is triggered every minute or so
  2. conditions (on a sunny day) are all true constantly (except the second condition) which results in all conditions being TRUE every 30 minutes (as after 30 minutes the second condition, see below, also becomes TRUE).

Or do I miss something (or in proper Dunglisch, do I see something over the head (if you know what I’m saying :wink: )

- condition: state
  entity_id: cover.level
  state: closed
  for:
    minutes: 30  ## Trying to prevent a crazy repetitive up-and-down action