I want to turn on my ceiling lights very dimmly during the night when motion is detected, and have them turn off when motion is no longer detected. But if I manually turn on the lights or dim them up, I don’t want them to turn off when motion is no longer detected. I figured the best way might be to have a condition on the no-motion trigger to only turn off if it was previously turned on by the motion-on trigger and noone has touch the lights since.
You could use a boolean helper to show that the specific automation has turned the lights on or you could add an extra action to all ways to turn on the light. This action will turn on or off that specific lights off automation, so the motion sensor turns it on and all others turn it off.
I have a similar situation, I added a Boolean this gets turned on when I use the switch and the automation then has a condition, turn off lights only if Boolean is off…