mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Update herdsman and converters.
This commit is contained in:
@@ -1001,6 +1001,7 @@ const mapping = {
|
||||
'9290022230': [cfg.sensor_action, cfg.sensor_battery],
|
||||
'GL-D-004ZS': [cfg.light_brightness_colortemp_colorxy],
|
||||
'AC10787': [cfg.light_brightness_colortemp],
|
||||
'F-APP-UK-V2': [cfg.switch],
|
||||
};
|
||||
|
||||
Object.keys(mapping).forEach((key) => {
|
||||
|
||||
Generated
+3
-3
@@ -12735,9 +12735,9 @@
|
||||
}
|
||||
},
|
||||
"zigbee-herdsman-converters": {
|
||||
"version": "11.1.53",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-11.1.53.tgz",
|
||||
"integrity": "sha512-AUU/A2SECbMMvN97kCIPpdG3P1J+Y1KqkUYwI7i1Nv+eKKaJCAhh3We/pmrbST/xIBq7M8/omIm9GQyHAEdrdA=="
|
||||
"version": "11.1.54",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-11.1.54.tgz",
|
||||
"integrity": "sha512-PjZaf280EaeFpndlJ1/lXpgUvLJiV4GSlvGfnRTjJlrWXsUVc6SWfDARg5IKtp3Y08ndVOLtiEeiIOUlQrFtmg=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@
|
||||
"semver": "*",
|
||||
"winston": "*",
|
||||
"zigbee-herdsman": "0.12.17",
|
||||
"zigbee-herdsman-converters": "11.1.53"
|
||||
"zigbee-herdsman-converters": "11.1.54"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "*",
|
||||
|
||||
@@ -661,6 +661,17 @@ describe('Entity publish', () => {
|
||||
expect(endpoint.command.mock.calls[0]).toEqual(["genOnOff", "off", {}, {}]);
|
||||
});
|
||||
|
||||
it('Should allow to set color via hue and saturation', async () => {
|
||||
const device = zigbeeHerdsman.devices.bulb_color_2;
|
||||
const endpoint = device.getEndpoint(1);
|
||||
const payload = {"color":{"hue":250, "saturation":50}};
|
||||
await MQTT.events.message('zigbee2mqtt/bulb_color_2/set', JSON.stringify(payload));
|
||||
await flushPromises();
|
||||
expect(endpoint.command).toHaveBeenCalledTimes(1);
|
||||
expect(endpoint.command.mock.calls[0]).toEqual(["lightingColorCtrl", "enhancedMoveToHueAndSaturation", {"direction": 0, "enhancehue": 45510.416666666664, "saturation": 127, "transtime": 0,}, {}]);
|
||||
expect(MQTT.publish).toHaveBeenCalledTimes(0);
|
||||
});
|
||||
|
||||
it('ZNCLDJ11LM open', async () => {
|
||||
const device = zigbeeHerdsman.devices.ZNCLDJ11LM;
|
||||
const endpoint = device.getEndpoint(1);
|
||||
|
||||
Reference in New Issue
Block a user