Skip to content

Commit

Permalink
Zigbee2mqtt: Add smart doorbell HEIMAN HS2DB (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 authored Dec 10, 2024
1 parent f85f2bf commit e38bbde
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion front/src/config/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,8 @@
"56": "Helligkeit Auf-Taste Loslassen",
"57": "Helligkeit Ab-Taste gedrückt",
"58": "Helligkeit Ab-Taste gehalten",
"59": "Helligkeit Ab-Taste Loslassen"
"59": "Helligkeit Ab-Taste Loslassen",
"60": "Gedrückt"
}
},
"heater": {
Expand Down
3 changes: 2 additions & 1 deletion front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,8 @@
"56": "Brightness Up Release",
"57": "Brightness Down Click",
"58": "Brightness Down Hold",
"59": "Brightness Down Release"
"59": "Brightness Down Release",
"60": "Pressed"
}
},
"heater": {
Expand Down
3 changes: 2 additions & 1 deletion front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,8 @@
"56": "Luminosité Plus Relâchée",
"57": "Luminosité Moins Clic",
"58": "Luminosité Moins Maintenu",
"59": "Luminosité Moins Relâchée"
"59": "Luminosité Moins Relâchée",
"60": "Pressé"
}
},
"heater": {
Expand Down
2 changes: 2 additions & 0 deletions server/services/zigbee2mqtt/exposes/enumType.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ 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('action', BUTTON_STATUS.PRESSED, 'pressed');

addMapping('state', COVER_STATE.OPEN, 'OPEN');
addMapping('state', COVER_STATE.CLOSE, 'CLOSE');
addMapping('state', COVER_STATE.STOP, 'STOP');
Expand Down
1 change: 1 addition & 0 deletions server/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const BUTTON_STATUS = {
BRIGHTNESS_DOWN_CLICK: 57,
BRIGHTNESS_DOWN_HOLD: 58,
BRIGHTNESS_DOWN_RELEASE: 59,
PRESSED: 60,
};

const COVER_STATE = {
Expand Down

0 comments on commit e38bbde

Please sign in to comment.