Hi again @Koenkk,
I think I found a generic issue with the poll function.
To reproduce, here's what I do with the ZLinky:
- Add a log line here:
|
const endpoint = device.getEndpoint(1); |
- Start with the device's poll interval set to some value, e.g. 7
- Change the value to 8
Logs now show two poll instances running at once:
[2025-10-25 22:31:49] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:02] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:32:06] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:11] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:32:13] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:19] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:32:21] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:27] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:32:28] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:35] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:36] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:32:43] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:44] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:32:50] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:32:52] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:32:58] info: zhc:lixee: Running poll with interval 7
[2025-10-25 22:33:01] info: zhc:lixee: Running poll with interval 8
[2025-10-25 22:33:05] info: zhc:lixee: Running poll with interval 7
My locally-applied patch:
@@ -1830,6 +1830,7 @@
"The default poll interval for these is 600 seconds. Set to -1 to disable polling. " +
"Polled attributes are those marked as read-only at https://github.com/fairecasoimeme/Zlinky_TIC/"),
poll: async (device, options) => {
+ logger_1.logger.info(`Running poll with interval ${options.measurement_poll_interval}`, NS);
const endpoint = device.getEndpoint(1);
const measurement_poll_chunk = options?.measurement_poll_chunk ? options.measurement_poll_chunk : 4;
utils.assertNumber(measurement_poll_chunk);
Hi again @Koenkk,
I think I found a generic issue with the poll function.
To reproduce, here's what I do with the ZLinky:
zigbee-herdsman-converters/src/devices/lixee.ts
Line 1908 in b80ebbd
Logs now show two poll instances running at once:
My locally-applied patch: