mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-11 22:28:50 +00:00
Update zigbee-herdsman-converters to 12.0.146
* Update zigbee-herdsman-converters to 12.0.146 * Update publish.test.js * Update homeassistant.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
committed by
GitHub
parent
edcf1edae6
commit
ad0bbbec97
@@ -1783,6 +1783,7 @@ const mapping = {
|
||||
'X712A': [switchEndpoint('l1'), switchEndpoint('l2')],
|
||||
'TYZS1L': [cfg.light_brightness_colortemp_colorxy],
|
||||
'43102': [cfg.switch],
|
||||
'1746430P7': [cfg.light_brightness_colortemp_colorxy],
|
||||
};
|
||||
|
||||
const defaultStatusTopic = 'homeassistant/status';
|
||||
|
||||
Generated
+3
-3
@@ -14711,9 +14711,9 @@
|
||||
}
|
||||
},
|
||||
"zigbee-herdsman-converters": {
|
||||
"version": "12.0.141",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.141.tgz",
|
||||
"integrity": "sha512-GmhicEGWuYCSTwMMG4ENewnX+kQVwqFpxvkdb/RK6jHPukgBzmUxIzldgYLas+LSxyOWr7E4j3tLeBgxI/KLqg==",
|
||||
"version": "12.0.146",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.146.tgz",
|
||||
"integrity": "sha512-cYdSs0YK/ABkLWt2pdv8sAdt753GWBArnqkqIrGmWjEXcBrfZDO/6Y/SzuaczmWSjFTN/THNTmYmBpSE1gbOtA==",
|
||||
"requires": {
|
||||
"axios": "^0.19.2",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
"winston": "^3.3.3",
|
||||
"winston-syslog": "^2.4.4",
|
||||
"zigbee-herdsman": "0.12.108",
|
||||
"zigbee-herdsman-converters": "12.0.141"
|
||||
"zigbee-herdsman-converters": "12.0.146"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "*",
|
||||
|
||||
@@ -640,6 +640,29 @@ describe('Publish', () => {
|
||||
expect(endpoint.command.mock.calls[0]).toEqual(["genLevelCtrl", "moveToLevelWithOnOff", {level: 20, transtime: 200}, {}]);
|
||||
});
|
||||
|
||||
it('Should turn bulb on with full brightness when transition is used and no brightness is known', async () => {
|
||||
// https://github.com/Koenkk/zigbee2mqtt/issues/3799
|
||||
const device = zigbeeHerdsman.devices.bulb_color;
|
||||
const endpoint = device.getEndpoint(1);
|
||||
await MQTT.events.message('zigbee2mqtt/bulb_color/set', JSON.stringify({"state": "OFF", "transition": 0.5}));
|
||||
await flushPromises();
|
||||
await MQTT.events.message('zigbee2mqtt/bulb_color/set', JSON.stringify({"state": "ON", "transition": 0.5}));
|
||||
await flushPromises();
|
||||
expect(MQTT.publish).toHaveBeenNthCalledWith(1,
|
||||
'zigbee2mqtt/bulb_color',
|
||||
JSON.stringify({state: 'OFF', brightness: 0}),
|
||||
{retain: false, qos: 0}, expect.any(Function)
|
||||
);
|
||||
expect(MQTT.publish).toHaveBeenNthCalledWith(2,
|
||||
'zigbee2mqtt/bulb_color',
|
||||
JSON.stringify({state: 'ON', brightness: 254}),
|
||||
{retain: false, qos: 0}, expect.any(Function)
|
||||
);
|
||||
expect(endpoint.command).toHaveBeenCalledTimes(2);
|
||||
expect(endpoint.command.mock.calls[0]).toEqual(["genLevelCtrl", "moveToLevelWithOnOff", {level: 0, transtime: 5}, {}]);
|
||||
expect(endpoint.command.mock.calls[1]).toEqual(["genLevelCtrl", "moveToLevelWithOnOff", {level: 254, transtime: 5}, {}]);
|
||||
});
|
||||
|
||||
it('Transition parameter should not influence brightness on state ON', async () => {
|
||||
// https://github.com/Koenkk/zigbee2mqtt/issues/3563
|
||||
const device = zigbeeHerdsman.devices.bulb_color;
|
||||
|
||||
Reference in New Issue
Block a user