I managed to enhance the one BLU motion script on Shellys example github to roughly do what i wanted. Adding check for time turned out to be more easy than i feared. But because the BLU motion does not periodically re-send motion events, it may not be all that reliable. So i did add at least also a timer based switch-off.
I've added it to the issue i raised:
Need example for BLU motion triggering switch without cloud · Issue #75 · ALLTERCO/shelly-script-examples
Is your feature request related to a problem? Please describe. Need to replace Shelly cloud scene solution with script because deployment does not have…
github.com
Thanks a lot for all the help!