Skip to content

Commit

Permalink
Zigbee2mqtt: replace access mode by child lock binary device (GladysA…
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 authored Dec 11, 2023
1 parent 556c855 commit b2ab4f6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2557,9 +2557,9 @@
"shortCategoryName": "Counter",
"integer": "Counter (integer)"
},
"access-control": {
"shortCategoryName": "Access Control",
"mode": "Access Control Mode"
"child-lock": {
"shortCategoryName": "Child Lock",
"binary": "Child lock"
},
"smoke-sensor": {
"shortCategoryName": "Smoke sensor",
Expand Down
6 changes: 3 additions & 3 deletions front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2559,9 +2559,9 @@
"shortCategoryName": "Compteur",
"integer": "Compteur entier"
},
"access-control": {
"shortCategoryName": "Mode de contrôle d'accès",
"mode": "Mode de contrôle d'accès"
"child-lock": {
"shortCategoryName": "Sécurité enfant",
"binary": "Sécurité enfant"
},
"smoke-sensor": {
"shortCategoryName": "Détecteur de fumée",
Expand Down
4 changes: 2 additions & 2 deletions front/src/utils/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ export const DeviceFeatureCategoriesIcon = {
[DEVICE_FEATURE_CATEGORIES.TAMPER]: {
[DEVICE_FEATURE_TYPES.SENSOR.BINARY]: 'shield'
},
[DEVICE_FEATURE_CATEGORIES.ACCESS_CONTROL]: {
[DEVICE_FEATURE_TYPES.ACCESS_CONTROL.MODE]: 'lock'
[DEVICE_FEATURE_CATEGORIES.CHILD_LOCK]: {
[DEVICE_FEATURE_TYPES.CHILD_LOCK.BINARY]: 'lock'
},
[DEVICE_FEATURE_CATEGORIES.OPENING_SENSOR]: {
[DEVICE_FEATURE_TYPES.SENSOR.BINARY]: 'info'
Expand Down
4 changes: 2 additions & 2 deletions server/services/zigbee2mqtt/exposes/binaryType.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const names = {
type: DEVICE_FEATURE_TYPES.LIGHT.BINARY,
},
lock: {
category: DEVICE_FEATURE_CATEGORIES.ACCESS_CONTROL,
type: DEVICE_FEATURE_TYPES.ACCESS_CONTROL.MODE,
category: DEVICE_FEATURE_CATEGORIES.CHILD_LOCK,
type: DEVICE_FEATURE_TYPES.CHILD_LOCK.BINARY,
},
switch: {
category: DEVICE_FEATURE_CATEGORIES.SWITCH,
Expand Down
6 changes: 3 additions & 3 deletions server/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ const INTENTS = {
};

const DEVICE_FEATURE_CATEGORIES = {
ACCESS_CONTROL: 'access-control',
CHILD_LOCK: 'child-lock',
AIRQUALITY_SENSOR: 'airquality-sensor',
AIR_CONDITIONING: 'air-conditioning',
BATTERY: 'battery',
Expand Down Expand Up @@ -474,8 +474,8 @@ const DEVICE_FEATURE_TYPES = {
SIREN: {
BINARY: 'binary',
},
ACCESS_CONTROL: {
MODE: 'mode',
CHILD_LOCK: {
BINARY: 'binary',
},
CUBE: {
MODE: 'mode',
Expand Down

0 comments on commit b2ab4f6

Please sign in to comment.