Cover automation with Rademacher/Homepilot devices

Hi there,

I just switched to Home Assistant and now I try to setup my automations from other systems to have only one single point of truth.

I asked AI for some help and I got, but nevertheless my automation does not work. It is triggered, but it doesn’t do what it should do.

Here is my scenario:
I want to shut my covers B and C to 50 % if my sun detector B detects light for 5 minutes and want them to open (set to 100 % ) if both sun detectors B and C don’t detect light for 15 minutes. All this should happen daily between 7:30 am and 6:30 pm.

Here is what I built so far. Sorry for having the text in German.

Maybe someone can help me herewith on short notice. Thanks in advance.

Can you show/post the yaml? And what means “doesn’t do what it should do”? What shows the trace?