Skip to content

Commit

Permalink
fix relay feature
Browse files Browse the repository at this point in the history
  • Loading branch information
William-De71 committed Nov 4, 2024
1 parent 334cece commit ecc6dad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion front/src/config/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,7 @@
},
"teleinformation": {
"shortCategoryName": "Teleinformation",
"binary": "Schalter",
"east": "Gesamte gelieferte aktive Leistung (EAST)",
"eait": "Gesamte eingespeiste aktive Leistung (EAIT)",
"easf01": "Gesamte gelieferte aktive Leistung (EASF01)",
Expand Down Expand Up @@ -3162,7 +3163,6 @@
"sinsti": "Sofortige eingespeiste Scheinleistung (SINSTI)",
"smaxin": "Max. eingespeiste Scheinleistung n (SMAXIN)",
"smaxin_1": "Max. eingespeiste Scheinleistung n-1 (SMAXIN-1)",
"relais": "Relais",
"smaxn": "Gipfelgelieferte Scheinleistung 1 (SMAXN)",
"smaxn2": "Gipfelgelieferte Scheinleistung 2 (SMAXN2)",
"smaxn3": "Gipfelgelieferte Scheinleistung 3 (SMAXN3)",
Expand Down
2 changes: 1 addition & 1 deletion front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,7 @@
},
"teleinformation": {
"shortCategoryName": "Teleinformation",
"binary": "Switch",
"east": "Total active power delivered (EAST)",
"eait": "Total active power injected (EAIT)",
"easf01": "Total active power delivered (EASF01)",
Expand Down Expand Up @@ -3162,7 +3163,6 @@
"sinsti": "Instantaneous injected apparent power (SINSTI)",
"smaxin": "Max. injected apparent power n (SMAXIN)",
"smaxin_1": "Max. injected apparent power n-1 (SMAXIN-1)",
"relais": "Relay",
"smaxn": "Peak delivered apparent power 1 (SMAXN)",
"smaxn2": "Peak delivered apparent power 2 (SMAXN2)",
"smaxn3": "Peak delivered apparent power 3 (SMAXN3)",
Expand Down
2 changes: 1 addition & 1 deletion front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,7 @@
},
"teleinformation": {
"shortCategoryName": "Téléinformation",
"binary": "Relais",
"east": "Puissance active totale délivrée (EAST)",
"eait": "Puissance active totale injectée (EAIT)",
"easf01": "Puissance active totale délivrée (EASF01)",
Expand Down Expand Up @@ -3162,7 +3163,6 @@
"sinsti": "Puissance apparente instantanée injectée (SINSTI)",
"smaxin": "Puissance apparente max. injectée n (SMAXIN)",
"smaxin_1": "Puissance apparente max. injectée n-1 (SMAXIN-1)",
"relais": "Relais",
"smaxn": "Puissance apparente délivrée de crête 1 (SMAXN)",
"smaxn2": "Puissance apparente délivrée de crête 2 (SMAXN2)",
"smaxn3": "Puissance apparente délivrée de crête 3 (SMAXN3)",
Expand Down
2 changes: 1 addition & 1 deletion front/src/utils/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export const DeviceFeatureCategoriesIcon = {
[DEVICE_FEATURE_TYPES.ENERGY_SENSOR.INDEX]: 'zap'
},
[DEVICE_FEATURE_CATEGORIES.TELEINFORMATION]: {
[DEVICE_FEATURE_TYPES.TELEINFORMATION.BINARY]: 'power',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EAST]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EAIT]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.EASF01]: 'zap',
Expand Down Expand Up @@ -321,7 +322,6 @@ export const DeviceFeatureCategoriesIcon = {
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SINSTI]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXIN]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXIN_1]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.RELAIS]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN2]: 'zap',
[DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN3]: 'zap',
Expand Down
2 changes: 1 addition & 1 deletion server/services/zigbee2mqtt/exposes/numericType.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ module.exports = {
RELAIS: {
feature: {
category: DEVICE_FEATURE_CATEGORIES.TELEINFORMATION,
type: DEVICE_FEATURE_TYPES.TELEINFORMATION.RELAIS,
type: DEVICE_FEATURE_TYPES.TELEINFORMATION.BINARY,
},
},
SMAXN: {
Expand Down
2 changes: 1 addition & 1 deletion server/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ const DEVICE_FEATURE_TYPES = {
DAILY_CONSUMPTION: 'daily-consumption',
},
TELEINFORMATION: {
BINARY: 'binary',
EAST: 'east',
EAIT: 'eait',
EASF01: 'easf01',
Expand Down Expand Up @@ -665,7 +666,6 @@ const DEVICE_FEATURE_TYPES = {
SINSTI: 'sinsti',
SMAXIN: 'smaxin',
SMAXIN_1: 'smaxin_1',
RELAIS: 'relais',
SMAXN: 'smaxn',
SMAXN2: 'smaxn2',
SMAXN3: 'smaxn3',
Expand Down

0 comments on commit ecc6dad

Please sign in to comment.