Hi @silkoo,
Thank you for your reply. Since ControllerX does not yet support this controller, we need to define the full mapping for each controller config. Imagine you have the following input_select:
input_select:
scenes:
options:
- scene1
- scene2
- scene3
Then, you will need the following ControllerX config in the apps.yaml:
# Generic config to change option of the input_select when double clicking the button
example_app:
module: controllerx
class: LightController
controller: <controller name in deCONZ>
integration: deCONZ
light: light.my_light
mapping:
1002: toggle
1002$2:
service: input_select.select_next
data:
entity_id: input_select.light_state
1001: hold_brightness_toggle
1003: release
# Config for scene1
example_app_scene_1:
module: controllerx
class: Controller
controller: <controller name in deCONZ>
integration: deCONZ
mapping:
1002$2:
scene: scene.scene1
constrain_input_select: input_select.scenes,scene1
# Config for scene2
example_app_scene_2:
module: controllerx
class: Controller
controller: <controller name in deCONZ>
integration: deCONZ
mapping:
1002$2:
scene: scene.scene2
constrain_input_select: input_select.scenes,scene2
# Config for scene3
example_app_scene_3:
module: controllerx
class: Controller
controller: <controller name in deCONZ>
integration: deCONZ
mapping:
1002$2:
scene: scene.scene3
constrain_input_select: input_select.scenes,scene3
This assumes that you use the same light when changing scenes. Once I add support for this controller, you will be able to reduce a bit this config, but you will still need one config for each scene.
Regards,
Xavi M.