Node Red to set light brightness (with a twise)

I have an automation that turns on the house lights in certain rooms to 35% brightness when it rains. This works because most lights are off and then come on when it rains providing a bit of light in a dark room.

However, sometimes people are in the room with the lights brighter than 35% and the node runs ‘dimming’ the lights.

How can I prevent this from happinging on a light by light basis.

For example: Light 1 is off and Light 2 is at 100%. It rains, the goal would be for Light 1 to be at 35% and Light 2 to remain at 100% because 100% > 35%.