mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Update converters.
This commit is contained in:
@@ -11,10 +11,8 @@ const defaultBindGroup = {type: 'group_number', ID: 901};
|
||||
|
||||
class DeviceBind extends BaseExtension {
|
||||
onMQTTConnected() {
|
||||
for (let step = 1; step < 20; step++) {
|
||||
this.mqtt.subscribe(`${settings.get().mqtt.base_topic}/bridge/bind${'/+'.repeat(step)}`);
|
||||
this.mqtt.subscribe(`${settings.get().mqtt.base_topic}/bridge/unbind${'/+'.repeat(step)}`);
|
||||
}
|
||||
this.mqtt.subscribe(`${settings.get().mqtt.base_topic}/bridge/bind/#`);
|
||||
this.mqtt.subscribe(`${settings.get().mqtt.base_topic}/bridge/unbind/#`);
|
||||
}
|
||||
|
||||
async onMQTTMessage(topic, message) {
|
||||
|
||||
@@ -1186,7 +1186,7 @@ const mapping = {
|
||||
'F-APP-UK-V2': [cfg.switch, cfg.sensor_power],
|
||||
'S9TSZGB_3': [cfg.sensor_action],
|
||||
'S9TSZGB_1': [cfg.sensor_action],
|
||||
'SP-EUC01': [cfg.switch],
|
||||
'SP-EUC01': [cfg.switch, cfg.sensor_power],
|
||||
'511.012': [cfg.light_brightness],
|
||||
'GL-S-008Z': [cfg.light_brightness_colortemp_colorxy],
|
||||
'TZSW22FW-L4': [switchWithPostfix('top'), switchWithPostfix('bottom')],
|
||||
@@ -1307,6 +1307,13 @@ const mapping = {
|
||||
'SM10ZW': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
||||
'ICZB-R11D': [cfg.light_brightness],
|
||||
'SW2500ZB': [cfg.switch],
|
||||
'4512703': [cfg.sensor_action, cfg.sensor_battery],
|
||||
'4512702': [cfg.sensor_action, cfg.sensor_battery],
|
||||
'4090331P9': [cfg.light_brightness_colortemp_colorxy],
|
||||
'HS1EB': [cfg.sensor_click],
|
||||
'HM-900SW_1': [cfg.switch],
|
||||
'HM-900SW_2': [switchWithPostfix('left'), switchWithPostfix('right')],
|
||||
'HM-900SW_3': [switchWithPostfix('left'), switchWithPostfix('right'), switchWithPostfix('center')],
|
||||
};
|
||||
|
||||
Object.keys(mapping).forEach((key) => {
|
||||
|
||||
Generated
+3
-3
@@ -14813,9 +14813,9 @@
|
||||
}
|
||||
},
|
||||
"zigbee-herdsman-converters": {
|
||||
"version": "12.0.43",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.43.tgz",
|
||||
"integrity": "sha512-NaU15sX105c3pfailoQYe9hYueRXzYRYkjbDZSPqWFSsgKaLOayIzBl79EV+HjOSSHD/jymM0CJeYOeLpTFWtg==",
|
||||
"version": "12.0.44",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.44.tgz",
|
||||
"integrity": "sha512-Xmuarn4vlRxnjgfmPJAauwbIHnpJi2UdSdmpRYEQd216Qk/17pBH6R+O0GO2iUhIgOh0bwmPNE0Jc+BVtUyyKw==",
|
||||
"requires": {
|
||||
"axios": "*",
|
||||
"tar-stream": "*"
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@
|
||||
"semver": "*",
|
||||
"winston": "*",
|
||||
"zigbee-herdsman": "0.12.62",
|
||||
"zigbee-herdsman-converters": "12.0.43"
|
||||
"zigbee-herdsman-converters": "12.0.44"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "*",
|
||||
|
||||
Reference in New Issue
Block a user