From 30fb6c4b161f552efaecb5f6a50fc2907d7aef5e Mon Sep 17 00:00:00 2001 From: Henning Tvekov <45469813+htvekov@users.noreply.github.com> Date: Tue, 22 Dec 2020 20:52:19 +0100 Subject: [PATCH] Update aqara.py Change from 'click' to 'action' payload key. --- apps/controllerx/cx_devices/aqara.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/controllerx/cx_devices/aqara.py b/apps/controllerx/cx_devices/aqara.py index 5166e7ef..42f06fb9 100644 --- a/apps/controllerx/cx_devices/aqara.py +++ b/apps/controllerx/cx_devices/aqara.py @@ -51,7 +51,7 @@ class WXKG01LMLightController(LightController): """ Different states reported from the controller: single, double, triple, quadruple, - many, long, long_release + many, hold, release """ def get_z2m_actions_mapping(self) -> TypeActionsMapping: @@ -61,8 +61,8 @@ def get_z2m_actions_mapping(self) -> TypeActionsMapping: "triple": Light.ON_MIN_BRIGHTNESS, "quadruple": Light.SET_HALF_BRIGHTNESS, # "many": "", # Nothing - "long": Light.HOLD_BRIGHTNESS_TOGGLE, - "long_release": Light.RELEASE, + "hold": Light.HOLD_BRIGHTNESS_TOGGLE, + "release": Light.RELEASE, } def get_deconz_actions_mapping(self) -> TypeActionsMapping: