From dae005883115679b594d876b3f1913a5bcf91a87 Mon Sep 17 00:00:00 2001 From: William Deren Date: Fri, 8 Sep 2023 11:05:01 +0200 Subject: [PATCH] Zigbee2mqtt: Add Heiman Smart remote controller HM1RC-2-E (#1874) --- front/src/config/i18n/en.json | 6 +++++- front/src/config/i18n/fr.json | 6 +++++- server/services/zigbee2mqtt/exposes/enumType.js | 5 +++++ server/utils/constants.js | 4 ++++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/front/src/config/i18n/en.json b/front/src/config/i18n/en.json index 90d34f44c5..7acfef402c 100644 --- a/front/src/config/i18n/en.json +++ b/front/src/config/i18n/en.json @@ -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": { diff --git a/front/src/config/i18n/fr.json b/front/src/config/i18n/fr.json index a8e3e8b9a5..d105199780 100644 --- a/front/src/config/i18n/fr.json +++ b/front/src/config/i18n/fr.json @@ -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": { diff --git a/server/services/zigbee2mqtt/exposes/enumType.js b/server/services/zigbee2mqtt/exposes/enumType.js index 41ef6b04ac..67456a4d0a 100644 --- a/server/services/zigbee2mqtt/exposes/enumType.js +++ b/server/services/zigbee2mqtt/exposes/enumType.js @@ -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'); diff --git a/server/utils/constants.js b/server/utils/constants.js index 79325687af..b19b4c35f6 100644 --- a/server/utils/constants.js +++ b/server/utils/constants.js @@ -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 = {