Trying to do a bathroom night light with override

Hi guys, I have a simple automation in my bathroom/toilet which switches on very dim light when motion happens and full brightness when using the switch. I#m using a Ikea Vallhorn Motion sensor and a Rodret switch with 3 GU10 matter Wifi lights. The automations on their own work greade but what I’d probably need is an automation which triggers different things on the same devices. With ome prioritizing the other, meaning that the switch should overwrite the motion until its switched off again. I tried a few automations and it did not work correctly… Does anyone have an example of how that should look?