You should check out Room Lighting. It incorporates the use of Rooms to automatically create an automation based on the devices in a room. It makes reasonable guesses as to what such an automation should be, and makes it easy to adjust those guesses to suit the actual need.
2 Likes