diff --git a/front/src/config/i18n/de.json b/front/src/config/i18n/de.json index 5f5603d75e..e5d4902a58 100644 --- a/front/src/config/i18n/de.json +++ b/front/src/config/i18n/de.json @@ -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": { diff --git a/front/src/config/i18n/en.json b/front/src/config/i18n/en.json index eab6c239ea..7de43c0f2a 100644 --- a/front/src/config/i18n/en.json +++ b/front/src/config/i18n/en.json @@ -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": { diff --git a/front/src/config/i18n/fr.json b/front/src/config/i18n/fr.json index cc857c2d09..6674e794d6 100644 --- a/front/src/config/i18n/fr.json +++ b/front/src/config/i18n/fr.json @@ -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": { diff --git a/server/services/zigbee2mqtt/exposes/enumType.js b/server/services/zigbee2mqtt/exposes/enumType.js index f5c07b508e..7c8bbb68ab 100644 --- a/server/services/zigbee2mqtt/exposes/enumType.js +++ b/server/services/zigbee2mqtt/exposes/enumType.js @@ -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'); diff --git a/server/utils/constants.js b/server/utils/constants.js index 3b3908636a..b082ff4192 100644 --- a/server/utils/constants.js +++ b/server/utils/constants.js @@ -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 = {