With just this configuration, you can have the E2002 controller from IKEA (4 buttons) connected to the livingroom light and be able to change the brightness and color temperature or color.
livingroom_controller:
module: controllerx
class: E2002LightController
controller: livingroom_controller
integration:
name: z2m
listen_to: mqtt
light: light.livingroom
You can check the documentation in here.
If you have any question, you can either open an issue or comment in this topic from the Home Assistant community forum.
If you like this project, don't forget to star it :)
If you want to contribute to this project, check CONTRIBUTING.md.