Skip to content

Commit ecc6dad

Browse files
committed
fix relay feature
1 parent 334cece commit ecc6dad

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
@@ -3122,6 +3122,7 @@
31223122
},
31233123
"teleinformation": {
31243124
"shortCategoryName": "Teleinformation",
3125+
"binary": "Schalter",
31253126
"east": "Gesamte gelieferte aktive Leistung (EAST)",
31263127
"eait": "Gesamte eingespeiste aktive Leistung (EAIT)",
31273128
"easf01": "Gesamte gelieferte aktive Leistung (EASF01)",
@@ -3162,7 +3163,6 @@
31623163
"sinsti": "Sofortige eingespeiste Scheinleistung (SINSTI)",
31633164
"smaxin": "Max. eingespeiste Scheinleistung n (SMAXIN)",
31643165
"smaxin_1": "Max. eingespeiste Scheinleistung n-1 (SMAXIN-1)",
3165-
"relais": "Relais",
31663166
"smaxn": "Gipfelgelieferte Scheinleistung 1 (SMAXN)",
31673167
"smaxn2": "Gipfelgelieferte Scheinleistung 2 (SMAXN2)",
31683168
"smaxn3": "Gipfelgelieferte Scheinleistung 3 (SMAXN3)",

front/src/config/i18n/en.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3122,6 +3122,7 @@
31223122
},
31233123
"teleinformation": {
31243124
"shortCategoryName": "Teleinformation",
3125+
"binary": "Switch",
31253126
"east": "Total active power delivered (EAST)",
31263127
"eait": "Total active power injected (EAIT)",
31273128
"easf01": "Total active power delivered (EASF01)",
@@ -3162,7 +3163,6 @@
31623163
"sinsti": "Instantaneous injected apparent power (SINSTI)",
31633164
"smaxin": "Max. injected apparent power n (SMAXIN)",
31643165
"smaxin_1": "Max. injected apparent power n-1 (SMAXIN-1)",
3165-
"relais": "Relay",
31663166
"smaxn": "Peak delivered apparent power 1 (SMAXN)",
31673167
"smaxn2": "Peak delivered apparent power 2 (SMAXN2)",
31683168
"smaxn3": "Peak delivered apparent power 3 (SMAXN3)",

front/src/config/i18n/fr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3122,6 +3122,7 @@
31223122
},
31233123
"teleinformation": {
31243124
"shortCategoryName": "Téléinformation",
3125+
"binary": "Relais",
31253126
"east": "Puissance active totale délivrée (EAST)",
31263127
"eait": "Puissance active totale injectée (EAIT)",
31273128
"easf01": "Puissance active totale délivrée (EASF01)",
@@ -3162,7 +3163,6 @@
31623163
"sinsti": "Puissance apparente instantanée injectée (SINSTI)",
31633164
"smaxin": "Puissance apparente max. injectée n (SMAXIN)",
31643165
"smaxin_1": "Puissance apparente max. injectée n-1 (SMAXIN-1)",
3165-
"relais": "Relais",
31663166
"smaxn": "Puissance apparente délivrée de crête 1 (SMAXN)",
31673167
"smaxn2": "Puissance apparente délivrée de crête 2 (SMAXN2)",
31683168
"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
@@ -281,6 +281,7 @@ export const DeviceFeatureCategoriesIcon = {
281281
[DEVICE_FEATURE_TYPES.ENERGY_SENSOR.INDEX]: 'zap'
282282
},
283283
[DEVICE_FEATURE_CATEGORIES.TELEINFORMATION]: {
284+
[DEVICE_FEATURE_TYPES.TELEINFORMATION.BINARY]: 'power',
284285
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EAST]: 'zap',
285286
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EAIT]: 'zap',
286287
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EASF01]: 'zap',
@@ -321,7 +322,6 @@ export const DeviceFeatureCategoriesIcon = {
321322
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SINSTI]: 'zap',
322323
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXIN]: 'zap',
323324
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXIN_1]: 'zap',
324-
[DEVICE_FEATURE_TYPES.TELEINFORMATION.RELAIS]: 'zap',
325325
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN]: 'zap',
326326
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN2]: 'zap',
327327
[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
@@ -625,6 +625,7 @@ const DEVICE_FEATURE_TYPES = {
625625
DAILY_CONSUMPTION: 'daily-consumption',
626626
},
627627
TELEINFORMATION: {
628+
BINARY: 'binary',
628629
EAST: 'east',
629630
EAIT: 'eait',
630631
EASF01: 'easf01',
@@ -665,7 +666,6 @@ const DEVICE_FEATURE_TYPES = {
665666
SINSTI: 'sinsti',
666667
SMAXIN: 'smaxin',
667668
SMAXIN_1: 'smaxin_1',
668-
RELAIS: 'relais',
669669
SMAXN: 'smaxn',
670670
SMAXN2: 'smaxn2',
671671
SMAXN3: 'smaxn3',

0 commit comments

Comments
 (0)