Dimming lamps? Best practice?

Hello everyone,

I use z2m and would like to dim lamps using a Hue remote control.

When I switch on, a scene is called up. This depends on how often I have clicked. My wish is that the lights that are active in the room or through the scene are always dimmed. This means that the lights that need to be accessed are always different.

Is it possible to integrate an automatic mechanism so that the software automatically retrieves this from the area, e.g. the living room? That would make the whole thing a little more flexible.

How can I implement something like this? Is there perhaps a best practice?

I am using this blueprint as a basis: Controller - Philips 324131092621 Hue Dimmer switch | Awesome HA Blueprints 2

Many thanks in advance!

Any ideas pr os this the wrong sectipn?