Skip to content

Commit

Permalink
Zigbee2mqtt: Add Aqara WXKG15LM (#2192)
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 authored Jan 13, 2025
1 parent e9b3211 commit d6461e0
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 3 deletions.
14 changes: 13 additions & 1 deletion front/src/config/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,19 @@
"57": "Helligkeit Ab-Taste gedrückt",
"58": "Helligkeit Ab-Taste gehalten",
"59": "Helligkeit Ab-Taste Loslassen",
"60": "Gedrückt"
"60": "Gedrückt",
"61": "Einfach Links",
"62": "Einfach Rechts",
"63": "Einfach Beide",
"64": "Doppelt Links",
"65": "Doppelt Rechts",
"66": "Doppelt Beide",
"67": "Dreifach Links",
"68": "Dreifach Rechts",
"69": "Dreifach Beide",
"70": "Halten Links",
"71": "Halten Rechts",
"72": "Halten Beide"
}
},
"heater": {
Expand Down
14 changes: 13 additions & 1 deletion front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,19 @@
"57": "Brightness Down Click",
"58": "Brightness Down Hold",
"59": "Brightness Down Release",
"60": "Pressed"
"60": "Pressed",
"61": "Simple Left",
"62": "Simple Right",
"63": "Simple Both",
"64": "Double Left",
"65": "Double Right",
"66": "Double Both",
"67": "Triple Left",
"68": "Triple Right",
"69": "Triple Both",
"70": "Hold Left",
"71": "Hold Right",
"72": "Hold Both"
}
},
"heater": {
Expand Down
14 changes: 13 additions & 1 deletion front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,19 @@
"57": "Luminosité Moins Clic",
"58": "Luminosité Moins Maintenu",
"59": "Luminosité Moins Relâchée",
"60": "Pressé"
"60": "Pressé",
"61": "Simple Gauche",
"62": "Simple Droit",
"63": "Simple sur les deux",
"64": "Double Gauche",
"65": "Double Droit",
"66": "Double sur les deux",
"67": "Triple Gauche",
"68": "Triple Droit",
"69": "Triple sur les deux",
"70": "Maintenu Gauche",
"71": "Maintenu Droit",
"72": "Maintenu sur les deux"
}
},
"heater": {
Expand Down
13 changes: 13 additions & 0 deletions server/services/zigbee2mqtt/exposes/enumType.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ addMapping('action', BUTTON_STATUS.BRIGHTNESS_DOWN_RELEASE, 'brightness_down_rel

addMapping('action', BUTTON_STATUS.PRESSED, 'pressed');

addMapping('action', BUTTON_STATUS.SINGLE_LEFT, 'single_left');
addMapping('action', BUTTON_STATUS.SINGLE_RIGHT, 'single_right');
addMapping('action', BUTTON_STATUS.SINGLE_BOTH, 'single_both');
addMapping('action', BUTTON_STATUS.DOUBLE_LEFT, 'double_left');
addMapping('action', BUTTON_STATUS.DOUBLE_RIGHT, 'double_right');
addMapping('action', BUTTON_STATUS.DOUBLE_BOTH, 'double_both');
addMapping('action', BUTTON_STATUS.TRIPLE_LEFT, 'triple_left');
addMapping('action', BUTTON_STATUS.TRIPLE_RIGHT, 'triple_right');
addMapping('action', BUTTON_STATUS.TRIPLE_BOTH, 'triple_both');
addMapping('action', BUTTON_STATUS.HOLD_LEFT, 'hold_left');
addMapping('action', BUTTON_STATUS.HOLD_RIGHT, 'hold_right');
addMapping('action', BUTTON_STATUS.HOLD_BOTH, 'hold_both');

addMapping('state', COVER_STATE.OPEN, 'OPEN');
addMapping('state', COVER_STATE.CLOSE, 'CLOSE');
addMapping('state', COVER_STATE.STOP, 'STOP');
Expand Down
12 changes: 12 additions & 0 deletions server/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ const BUTTON_STATUS = {
BRIGHTNESS_DOWN_HOLD: 58,
BRIGHTNESS_DOWN_RELEASE: 59,
PRESSED: 60,
SINGLE_LEFT: 61,
SINGLE_RIGHT: 62,
SINGLE_BOTH: 63,
DOUBLE_LEFT: 64,
DOUBLE_RIGHT: 65,
DOUBLE_BOTH: 66,
TRIPLE_LEFT: 67,
TRIPLE_RIGHT: 68,
TRIPLE_BOTH: 69,
HOLD_LEFT: 70,
HOLD_RIGHT: 71,
HOLD_BOTH: 72,
};

const COVER_STATE = {
Expand Down

0 comments on commit d6461e0

Please sign in to comment.