Skip to content

Commit

Permalink
Zigbee2mqtt: Add Heiman Smart remote controller HM1RC-2-E (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 authored Sep 8, 2023
1 parent 3c545d2 commit dae0058
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 5 additions & 1 deletion front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,11 @@
"31": "Cube rotate right",
"32": "Vibration",
"33": "Tilt",
"34": "Drop"
"34": "Drop",
"35": "Emergency",
"36": "Disarm",
"37": "Arm day zones",
"38": "Arm all zones"
}
},
"opening-sensor": {
Expand Down
6 changes: 5 additions & 1 deletion front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,11 @@
"31": "Cube rotation droite",
"32": "Vibration",
"33": "Inclinaison",
"34": "Mouvements"
"34": "Mouvements",
"35": "Urgence",
"36": "Désarmer alarme",
"37": "Armer zones jour",
"38": "Armer alarme"
}
},
"opening-sensor": {
Expand Down
5 changes: 5 additions & 0 deletions server/services/zigbee2mqtt/exposes/enumType.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ addMapping('action', BUTTON_STATUS.VIBRATION, 'vibration');
addMapping('action', BUTTON_STATUS.TILT, 'tilt');
addMapping('action', BUTTON_STATUS.DROP, 'drop');

addMapping('action', BUTTON_STATUS.EMERGENCY, 'emergency');
addMapping('action', BUTTON_STATUS.DISARM, 'disarm');
addMapping('action', BUTTON_STATUS.ARM_DAY_ZONES, 'arm_day_zones');
addMapping('action', BUTTON_STATUS.ARM_ALL_ZONES, 'arm_all_zones');

addMapping('state', COVER_STATE.OPEN, 'OPEN');
addMapping('state', COVER_STATE.CLOSE, 'CLOSE');
addMapping('state', COVER_STATE.STOP, 'STOP');
Expand Down
4 changes: 4 additions & 0 deletions server/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const BUTTON_STATUS = {
VIBRATION: 32,
TILT: 33,
DROP: 34,
EMERGENCY: 35,
DISARM: 36,
ARM_DAY_ZONES: 37,
ARM_ALL_ZONES: 38,
};

const COVER_STATE = {
Expand Down

0 comments on commit dae0058

Please sign in to comment.