diff --git a/package-lock.json b/package-lock.json index 71022fe8b..3c6aba377 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "winston-transport": "^4.7.0", "ws": "^8.16.0", "zigbee-herdsman": "0.37.0", - "zigbee-herdsman-converters": "18.48.0", + "zigbee-herdsman-converters": "18.49.0", "zigbee2mqtt-frontend": "0.6.161" }, "bin": { @@ -9834,9 +9834,9 @@ } }, "node_modules/zigbee-herdsman-converters": { - "version": "18.48.0", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-18.48.0.tgz", - "integrity": "sha512-ccrvL1FG/3iVrHLQeZ/QyCcHvUJ3yqmrMR1WT+Mjd42s5igUVa4Z+po6s87KYJOYMn4IAWtbHLaO/ND+CHaPog==", + "version": "18.49.0", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-18.49.0.tgz", + "integrity": "sha512-oq8QVldarMFeqXuNoKVU+Hm5nQzOSu90vvCphbxbwQEPbdpSu0rXi9f/vbYaPzU4VZ1TkDjik3dpKnuQ4v1EPw==", "dependencies": { "axios": "^1.6.7", "buffer-crc32": "^1.0.0", diff --git a/package.json b/package.json index 29aa44349..f85edaffc 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "winston-transport": "^4.7.0", "ws": "^8.16.0", "zigbee-herdsman": "0.37.0", - "zigbee-herdsman-converters": "18.48.0", + "zigbee-herdsman-converters": "18.49.0", "zigbee2mqtt-frontend": "0.6.161" }, "devDependencies": { diff --git a/test/publish.test.js b/test/publish.test.js index 218628406..e5b3026a8 100644 --- a/test/publish.test.js +++ b/test/publish.test.js @@ -1009,7 +1009,7 @@ describe('Publish', () => { await MQTT.events.message('zigbee2mqtt/curtain/set', stringify(payload)); await flushPromises(); expect(endpoint.write).toHaveBeenCalledTimes(1); - expect(endpoint.write).toHaveBeenCalledWith("genAnalogOutput", {"85": {"type": 57, "value": 100}}); + expect(endpoint.write).toHaveBeenCalledWith("genAnalogOutput", {presentValue: 100}); }); it('ZNCLDJ11LM position', async () => { @@ -1019,7 +1019,7 @@ describe('Publish', () => { await MQTT.events.message('zigbee2mqtt/curtain/set', stringify(payload)); await flushPromises(); expect(endpoint.write).toHaveBeenCalledTimes(1); - expect(endpoint.write).toHaveBeenCalledWith("genAnalogOutput", {"85": {"type": 57, "value": 10}}); + expect(endpoint.write).toHaveBeenCalledWith("genAnalogOutput", {presentValue: 10}); }); it('ZNCLDJ11LM position', async () => { @@ -1029,7 +1029,7 @@ describe('Publish', () => { await MQTT.events.message('zigbee2mqtt/curtain/set', stringify(payload)); await flushPromises(); expect(endpoint.write).toHaveBeenCalledTimes(1); - expect(endpoint.write).toHaveBeenCalledWith("genAnalogOutput", {"85": {"type": 57, "value": 0}}); + expect(endpoint.write).toHaveBeenCalledWith("genAnalogOutput", {presentValue: 0}); }); it('ZNCLDJ11LM position', async () => {