diff --git a/zhaquirks/xiaomi/aqara/cube.py b/zhaquirks/xiaomi/aqara/cube.py index e20d15c783..87458bb52d 100644 --- a/zhaquirks/xiaomi/aqara/cube.py +++ b/zhaquirks/xiaomi/aqara/cube.py @@ -121,13 +121,13 @@ SLIDE_1_VALUE: "aqara logo on top", SLIDE_2_VALUE: "aqara logo facing user rotated 90 degrees right", SLIDE_3_VALUE: "aqara logo facing user upside down", - SLIDE_4_VALUE: "arara logo on bottom", + SLIDE_4_VALUE: "aqara logo on bottom", SLIDE_5_VALUE: "aqara logo facing user rotated 90 degrees left", SLIDE_6_VALUE: "aqara logo facing user upright", KNOCK_1_VALUE: "aqara logo on top", KNOCK_2_VALUE: "aqara logo facing user rotated 90 degrees right", KNOCK_3_VALUE: "aqara logo facing user upside down", - KNOCK_4_VALUE: "arara logo on bottom", + KNOCK_4_VALUE: "aqara logo on bottom", KNOCK_5_VALUE: "aqara logo facing user rotated 90 degrees left", KNOCK_6_VALUE: "aqara logo facing user upright", } diff --git a/zhaquirks/xiaomi/aqara/cube_aqgl01.py b/zhaquirks/xiaomi/aqara/cube_aqgl01.py index f659588372..4d3ec01ece 100644 --- a/zhaquirks/xiaomi/aqara/cube_aqgl01.py +++ b/zhaquirks/xiaomi/aqara/cube_aqgl01.py @@ -38,6 +38,7 @@ ) ACTIVATED_FACE = "activated_face" +DEACTIVATED_FACE = "deactivated_face" DESCRIPTION = "description" DROP = "drop" DROP_VALUE = 3 @@ -116,13 +117,13 @@ SLIDE_1_VALUE: "aqara logo on top", SLIDE_2_VALUE: "aqara logo facing user rotated 90 degrees right", SLIDE_3_VALUE: "aqara logo facing user upside down", - SLIDE_4_VALUE: "arara logo on bottom", + SLIDE_4_VALUE: "aqara logo on bottom", SLIDE_5_VALUE: "aqara logo facing user rotated 90 degrees left", SLIDE_6_VALUE: "aqara logo facing user upright", KNOCK_1_VALUE: "aqara logo on top", KNOCK_2_VALUE: "aqara logo facing user rotated 90 degrees right", KNOCK_3_VALUE: "aqara logo facing user upside down", - KNOCK_4_VALUE: "arara logo on bottom", + KNOCK_4_VALUE: "aqara logo on bottom", KNOCK_5_VALUE: "aqara logo facing user rotated 90 degrees left", KNOCK_6_VALUE: "aqara logo facing user upright", } @@ -180,6 +181,7 @@ def _update_attribute(self, attrid, value): event_args[FLIP_DEGREES] = 180 else: event_args[FLIP_DEGREES] = 90 + event_args[DEACTIVATED_FACE] = (value // 8) % 8 + 1 event_args[ACTIVATED_FACE] = int((value % 8) + 1) self.listener_event(ZHA_SEND_EVENT, action, event_args)