Skip to content

Commit

Permalink
Zigbee2mqtt: Add Develco IOMZB-110 (#2152)
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 authored Nov 4, 2024
1 parent 3188ddf commit 19445e5
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions front/src/config/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2898,6 +2898,13 @@
"one": "Ja"
}
},
"input": {
"binary": {
"other": "Kein Wert empfangen",
"zero": "Aus",
"one": "An"
}
},
"risk": {
"integer": {
"no-risk": "Kein Risiko",
Expand Down Expand Up @@ -3204,6 +3211,10 @@
"shortCategoryName": "Risiko",
"integer": "Risikostufe"
},
"input": {
"shortCategoryName": "Eingang",
"binary": "Status des Eingangs"
},
"unknown": {
"shortCategoryName": "Unbekannt",
"unknown": "Unbekannt"
Expand Down
11 changes: 11 additions & 0 deletions front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2898,6 +2898,13 @@
"one": "Yes"
}
},
"input": {
"binary": {
"other": "No value received",
"zero": "Off",
"one": "On"
}
},
"risk": {
"integer": {
"no-risk": "No Risk",
Expand Down Expand Up @@ -3204,6 +3211,10 @@
"shortCategoryName": "Risk",
"integer": "Risk Level"
},
"input": {
"shortCategoryName": "Input",
"binary": "State of input"
},
"unknown": {
"shortCategoryName": "Unknown",
"unknown": "Unknown"
Expand Down
11 changes: 11 additions & 0 deletions front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2898,6 +2898,13 @@
"one": "Oui"
}
},
"input": {
"binary": {
"other": "Aucune valeur reçue",
"zero": "Off",
"one": "On"
}
},
"risk": {
"integer": {
"no-risk": "Pas de risque",
Expand Down Expand Up @@ -3204,6 +3211,10 @@
"shortCategoryName": "Risque",
"integer": "Niveau de risque"
},
"input": {
"shortCategoryName": "Entrée",
"binary": "Etat de l'entrée"
},
"unknown": {
"shortCategoryName": "Inconnu",
"unknown": "Inconnu"
Expand Down
3 changes: 3 additions & 0 deletions front/src/utils/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,5 +345,8 @@ export const DeviceFeatureCategoriesIcon = {
},
[DEVICE_FEATURE_CATEGORIES.RISK]: {
[DEVICE_FEATURE_TYPES.RISK.INTEGER]: 'alert-circle'
},
[DEVICE_FEATURE_CATEGORIES.INPUT]: {
[DEVICE_FEATURE_TYPES.INPUT.BINARY]: 'arrow-right'
}
};
6 changes: 6 additions & 0 deletions server/services/zigbee2mqtt/exposes/binaryType.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ const names = {
type: DEVICE_FEATURE_TYPES.SENSOR.BINARY,
},
},
input: {
feature: {
category: DEVICE_FEATURE_CATEGORIES.INPUT,
type: DEVICE_FEATURE_TYPES.INPUT.BINARY,
},
},
};

module.exports = {
Expand Down
4 changes: 4 additions & 0 deletions server/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ const DEVICE_FEATURE_CATEGORIES = {
VOC_INDEX_SENSOR: 'voc-index-sensor',
VOLUME_SENSOR: 'volume-sensor',
TEXT: 'text',
INPUT: 'input',
};

const DEVICE_FEATURE_TYPES = {
Expand Down Expand Up @@ -678,6 +679,9 @@ const DEVICE_FEATURE_TYPES = {
RISK: {
INTEGER: 'integer',
},
INPUT: {
BINARY: 'binary',
},
};

const DEVICE_FEATURE_UNITS = {
Expand Down

0 comments on commit 19445e5

Please sign in to comment.