diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index fdb11a277..a01c67d07 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -14740,9 +14740,9 @@ } }, "zigbee-herdsman-converters": { - "version": "14.0.101", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.101.tgz", - "integrity": "sha512-2W+Qmkf1aBIiGBTU8Qf+dlzKbi1Q+6WMQnDki45UTURHoTFjnJQDjRlCk24PxRYOk3D0ZWU7vgxjtfbgRg8SfA==", + "version": "14.0.102", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.102.tgz", + "integrity": "sha512-8zv69JAjBfSpsETW9ZdtjrcgZWRoxFPoKuwX9VkaStAj+U2Wx1F6B7HgIHM1SFodM+hhuFfEDEi/c8eUbznUEQ==", "requires": { "axios": "^0.21.1", "buffer-crc32": "^0.2.13", diff --git a/package.json b/package.json index c4f5c841e..533cd3167 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "winston-syslog": "^2.4.4", "ws": "^7.3.1", "zigbee-herdsman": "0.13.88", - "zigbee-herdsman-converters": "14.0.101", + "zigbee-herdsman-converters": "14.0.102", "zigbee2mqtt-frontend": "0.3.114" }, "devDependencies": { diff --git a/test/publish.test.js b/test/publish.test.js index b0c1831ac..4999c176a 100644 --- a/test/publish.test.js +++ b/test/publish.test.js @@ -343,10 +343,10 @@ describe('Publish', () => { await MQTT.events.message('zigbee2mqtt/group_1/set', stringify({brightness_percent: 50})); await flushPromises(); expect(group.command).toHaveBeenCalledTimes(1); - expect(group.command).toHaveBeenCalledWith("genLevelCtrl", "moveToLevelWithOnOff", {level: 127, transtime: 0}, {}); + expect(group.command).toHaveBeenCalledWith("genLevelCtrl", "moveToLevelWithOnOff", {level: 128, transtime: 0}, {}); expect(MQTT.publish).toHaveBeenCalledTimes(1); expect(MQTT.publish.mock.calls[0][0]).toStrictEqual('zigbee2mqtt/group_1'); - expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({state: 'ON', brightness: 127}); + expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({state: 'ON', brightness: 128}); }); it('Should publish messages to groups when converter is not in the default list but device in it supports it', async () => { @@ -910,7 +910,7 @@ describe('Publish', () => { await MQTT.events.message('zigbee2mqtt/bulb_color/set', stringify(payload)); await flushPromises(); expect(endpoint.command).toHaveBeenCalledTimes(1); - expect(endpoint.command.mock.calls[0]).toEqual(["lightingColorCtrl", "enhancedMoveToHueAndSaturation", {"direction": 0, "enhancehue": 44891.475, "saturation": 199.21474, "transtime": 0,}, {}]); + expect(endpoint.command.mock.calls[0]).toEqual(["lightingColorCtrl", "enhancedMoveToHueAndSaturation", {"direction": 0, "enhancehue": 44891, "saturation": 199, "transtime": 0,}, {}]); expect(MQTT.publish).toHaveBeenCalledTimes(1); expect(MQTT.publish.mock.calls[0][0]).toStrictEqual('zigbee2mqtt/bulb_color'); expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({"color":{"hue":250,"saturation":50}, "color_mode": "hs"});