diff --git a/front/src/config/i18n/de.json b/front/src/config/i18n/de.json index bd9aa85947..5744a1f368 100644 --- a/front/src/config/i18n/de.json +++ b/front/src/config/i18n/de.json @@ -2862,7 +2862,15 @@ "48": "Langer Druck", "49": "Kurzes Loslassen", "50": "Langes Loslassen", - "51": "Doppeltes Drücken" + "51": "Doppeltes Drücken", + "52": "Umschalten", + "53": "Umschalten Gehalten", + "54": "Helligkeit Auf-Taste gedrückt", + "55": "Helligkeit Auf-Taste gehalten", + "56": "Helligkeit Auf-Taste Loslassen", + "57": "Helligkeit Ab-Taste gedrückt", + "58": "Helligkeit Ab-Taste gehalten", + "59": "Helligkeit Ab-Taste Loslassen" } }, "heater": { diff --git a/front/src/config/i18n/en.json b/front/src/config/i18n/en.json index dbb0249354..7357e830ab 100644 --- a/front/src/config/i18n/en.json +++ b/front/src/config/i18n/en.json @@ -2862,7 +2862,15 @@ "48": "Long press", "49": "Short release", "50": "Long release", - "51": "Double press" + "51": "Double press", + "52": "Toggle", + "53": "Toggle Hold", + "54": "Brightness Up Click", + "55": "Brightness Up Hold", + "56": "Brightness Up Release", + "57": "Brightness Down Click", + "58": "Brightness Down Hold", + "59": "Brightness Down Release" } }, "heater": { diff --git a/front/src/config/i18n/fr.json b/front/src/config/i18n/fr.json index 7d9ad6f9b1..98625dd217 100644 --- a/front/src/config/i18n/fr.json +++ b/front/src/config/i18n/fr.json @@ -2862,7 +2862,15 @@ "48": "Pression longue", "49": "Relâchement court", "50": "Relâchement long", - "51": "Pression double" + "51": "Pression double", + "52": "Bouton Bascule", + "53": "Bouton Bascule maintenu", + "54": "Luminosité Plus Clic", + "55": "Luminosité Plus Maintenu", + "56": "Luminosité Plus Relâchée", + "57": "Luminosité Moins Clic", + "58": "Luminosité Moins Maintenu", + "59": "Luminosité Moins Relâchée" } }, "heater": { diff --git a/server/services/zigbee2mqtt/exposes/enumType.js b/server/services/zigbee2mqtt/exposes/enumType.js index 8193ad5bc0..d133356904 100644 --- a/server/services/zigbee2mqtt/exposes/enumType.js +++ b/server/services/zigbee2mqtt/exposes/enumType.js @@ -78,6 +78,15 @@ addMapping('action', BUTTON_STATUS.SHORT_RELEASE, 'short_release'); addMapping('action', BUTTON_STATUS.LONG_RELEASE, 'long_release'); addMapping('action', BUTTON_STATUS.DOUBLE_PRESS, 'double_press'); +addMapping('action', BUTTON_STATUS.TOGGLE, 'toggle'); +addMapping('action', BUTTON_STATUS.TOGGLE_HOLD, 'toggle_hold'); +addMapping('action', BUTTON_STATUS.BRIGHTNESS_UP_CLICK, 'brightness_up_click'); +addMapping('action', BUTTON_STATUS.BRIGHTNESS_UP_HOLD, 'brightness_up_hold'); +addMapping('action', BUTTON_STATUS.BRIGHTNESS_UP_RELEASE, 'brightness_up_release'); +addMapping('action', BUTTON_STATUS.BRIGHTNESS_DOWN_CLICK, 'brightness_down_click'); +addMapping('action', BUTTON_STATUS.BRIGHTNESS_DOWN_HOLD, 'brightness_down_hold'); +addMapping('action', BUTTON_STATUS.BRIGHTNESS_DOWN_RELEASE, 'brightness_down_release'); + 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 3f71779abf..aaba8e41e1 100644 --- a/server/utils/constants.js +++ b/server/utils/constants.js @@ -55,6 +55,14 @@ const BUTTON_STATUS = { SHORT_RELEASE: 49, LONG_RELEASE: 50, DOUBLE_PRESS: 51, + TOGGLE: 52, + TOGGLE_HOLD: 53, + BRIGHTNESS_UP_CLICK: 54, + BRIGHTNESS_UP_HOLD: 55, + BRIGHTNESS_UP_RELEASE: 56, + BRIGHTNESS_DOWN_CLICK: 57, + BRIGHTNESS_DOWN_HOLD: 58, + BRIGHTNESS_DOWN_RELEASE: 59, }; const COVER_STATE = {