Skip to content

Commit 57069ec

Browse files
committed
fix relay feature
1 parent fc05142 commit 57069ec

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

front/src/config/i18n/de.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3080,6 +3080,7 @@
30803080
},
30813081
"teleinformation": {
30823082
"shortCategoryName": "Teleinformation",
3083+
"binary": "Schalter",
30833084
"east": "Gesamte gelieferte aktive Leistung (EAST)",
30843085
"eait": "Gesamte eingespeiste aktive Leistung (EAIT)",
30853086
"easf01": "Gesamte gelieferte aktive Leistung (EASF01)",
@@ -3120,7 +3121,6 @@
31203121
"sinsti": "Sofortige eingespeiste Scheinleistung (SINSTI)",
31213122
"smaxin": "Max. eingespeiste Scheinleistung n (SMAXIN)",
31223123
"smaxin_1": "Max. eingespeiste Scheinleistung n-1 (SMAXIN-1)",
3123-
"relais": "Relais",
31243124
"smaxn": "Gipfelgelieferte Scheinleistung 1 (SMAXN)",
31253125
"smaxn2": "Gipfelgelieferte Scheinleistung 2 (SMAXN2)",
31263126
"smaxn3": "Gipfelgelieferte Scheinleistung 3 (SMAXN3)",

front/src/config/i18n/en.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3080,6 +3080,7 @@
30803080
},
30813081
"teleinformation": {
30823082
"shortCategoryName": "Teleinformation",
3083+
"binary": "Switch",
30833084
"east": "Total active power delivered (EAST)",
30843085
"eait": "Total active power injected (EAIT)",
30853086
"easf01": "Total active power delivered (EASF01)",
@@ -3120,7 +3121,6 @@
31203121
"sinsti": "Instantaneous injected apparent power (SINSTI)",
31213122
"smaxin": "Max. injected apparent power n (SMAXIN)",
31223123
"smaxin_1": "Max. injected apparent power n-1 (SMAXIN-1)",
3123-
"relais": "Relay",
31243124
"smaxn": "Peak delivered apparent power 1 (SMAXN)",
31253125
"smaxn2": "Peak delivered apparent power 2 (SMAXN2)",
31263126
"smaxn3": "Peak delivered apparent power 3 (SMAXN3)",

front/src/config/i18n/fr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3080,6 +3080,7 @@
30803080
},
30813081
"teleinformation": {
30823082
"shortCategoryName": "Téléinformation",
3083+
"binary": "Relais",
30833084
"east": "Puissance active totale délivrée (EAST)",
30843085
"eait": "Puissance active totale injectée (EAIT)",
30853086
"easf01": "Puissance active totale délivrée (EASF01)",
@@ -3120,7 +3121,6 @@
31203121
"sinsti": "Puissance apparente instantanée injectée (SINSTI)",
31213122
"smaxin": "Puissance apparente max. injectée n (SMAXIN)",
31223123
"smaxin_1": "Puissance apparente max. injectée n-1 (SMAXIN-1)",
3123-
"relais": "Relais",
31243124
"smaxn": "Puissance apparente délivrée de crête 1 (SMAXN)",
31253125
"smaxn2": "Puissance apparente délivrée de crête 2 (SMAXN2)",
31263126
"smaxn3": "Puissance apparente délivrée de crête 3 (SMAXN3)",

front/src/utils/consts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ export const DeviceFeatureCategoriesIcon = {
278278
[DEVICE_FEATURE_TYPES.ENERGY_SENSOR.INDEX]: 'zap'
279279
},
280280
[DEVICE_FEATURE_CATEGORIES.TELEINFORMATION]: {
281+
[DEVICE_FEATURE_TYPES.TELEINFORMATION.BINARY]: 'power',
281282
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EAST]: 'zap',
282283
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EAIT]: 'zap',
283284
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EASF01]: 'zap',
@@ -318,7 +319,6 @@ export const DeviceFeatureCategoriesIcon = {
318319
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SINSTI]: 'zap',
319320
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXIN]: 'zap',
320321
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXIN_1]: 'zap',
321-
[DEVICE_FEATURE_TYPES.TELEINFORMATION.RELAIS]: 'zap',
322322
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN]: 'zap',
323323
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN2]: 'zap',
324324
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN3]: 'zap',

server/services/zigbee2mqtt/exposes/numericType.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ module.exports = {
583583
RELAIS: {
584584
feature: {
585585
category: DEVICE_FEATURE_CATEGORIES.TELEINFORMATION,
586-
type: DEVICE_FEATURE_TYPES.TELEINFORMATION.RELAIS,
586+
type: DEVICE_FEATURE_TYPES.TELEINFORMATION.BINARY,
587587
},
588588
},
589589
SMAXN: {

server/utils/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ const DEVICE_FEATURE_TYPES = {
608608
DAILY_CONSUMPTION: 'daily-consumption',
609609
},
610610
TELEINFORMATION: {
611+
BINARY: 'binary',
611612
EAST: 'east',
612613
EAIT: 'eait',
613614
EASF01: 'easf01',
@@ -648,7 +649,6 @@ const DEVICE_FEATURE_TYPES = {
648649
SINSTI: 'sinsti',
649650
SMAXIN: 'smaxin',
650651
SMAXIN_1: 'smaxin_1',
651-
RELAIS: 'relais',
652652
SMAXN: 'smaxn',
653653
SMAXN2: 'smaxn2',
654654
SMAXN3: 'smaxn3',

0 commit comments

Comments
 (0)