I’d be happy to share some yaml from my setup, if you like
Can you share that yaml?
https://gist.github.com/CyanAutomation/1b8bafd033f73e3c24e42...
Important bit is near the bottom, the trigger and condition sections.
It’s possible you could find a blueprint that replaces whatever you were trying to do on your own, too.
Can you share that yaml?