diff --git a/apps/controllerx/cx_devices/ikea.py b/apps/controllerx/cx_devices/ikea.py index 7d9db101..ee8d7855 100644 --- a/apps/controllerx/cx_devices/ikea.py +++ b/apps/controllerx/cx_devices/ikea.py @@ -496,11 +496,19 @@ def get_z2m_actions_mapping(self) -> DefaultActionsMapping: "brightness_stop": Light.RELEASE, } + def get_deconz_actions_mapping(self) -> DefaultActionsMapping: + return { + 1002: Light.TOGGLE, + 1001: Light.HOLD_BRIGHTNESS_TOGGLE, + 1003: Light.RELEASE, + } class E1812SwitchController(SwitchController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: return {"on": Switch.TOGGLE} + def get_deconz_actions_mapping(self) -> DefaultActionsMapping: + return {1002: Switch.TOGGLE} class W2049LightController(LightController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: diff --git a/docs/_data/controllers/E1812.yml b/docs/_data/controllers/E1812.yml index df8c976f..f6b710c2 100644 --- a/docs/_data/controllers/E1812.yml +++ b/docs/_data/controllers/E1812.yml @@ -19,3 +19,9 @@ integrations: - "on → Click" - "brightness_move_up → Hold" - "brightness_stop → Released after being held" + - name: deCONZ + codename: deconz + actions: + - "1002 → Click" + - "1001 → Hold" + - "1003 → Released after being held"