With just this configuration, you can have the E1810 controller from IKEA (5 buttons one) connected to the bedroom light and be able to change the brightness and color temperature or color.
livingroom_controller:
module: controllerx
class: E1810Controller
controller: sensor.livingroom_controller_action
integration: z2m
light: light.bedroom
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.