Automation solar production above value airco on

Hi have tried several blueprints like the PV excess optimizer and the sollar controlled compliance etc and tried to find my own automation but not the final solution.
I tried to create my own blueprint but writing it is not my talent, even with the"how to manual".

I am wondering if someone has a blueprint found with the following automation:
if the solar production is above x-watts then the airco switches on for at least 30 minutes for heating or cooling.
Did anyone manage to get this automation in HA? How did you do this?

I have my solar system, smart energymeter, airco etc in HA. Even the Mi temperature sensor is running in my HA dashboard.

Sadly creating blueprints is not my talent. Thanks for any help.

So your basicly looking for something like this?

Something like that yes. Wow thank you for your fast reply.
I could not find the “delay”.
Does the airco stays on when the solar input stays above 1000 after 30 minutes?

Not with the automation i posted, it will not do anything its not been told to do. if that is what you want… remove the delay and the off and choose a better trigger than a 30min delay to turn your AC off, like if solar input is below a value for a period of time in a separate automation.

You can also add conditionals to the “then do” section, but i would start with simple automations. As you become comfortable as simple logic, then go back and edit your automations to be more complicated. Walk before you run.

Thanks for your help sofar