Extreme number of triggers from energy measurement
Posted: Sunday 11 August 2024 22:09
I have multiple energy measuring devices, from different manufactureres, all zigbee (MQTT, autodiscovery).
The purpose was to monitor the update frequency to determine the stability of the zigbee network.
The results got me flabbercasted, the amount of updates/triggers is INSANE.
What is happening/wrong here?
The code:
Devices monitored:


Counters after ~15minutes:

Resulting (ofcourse) in the following overflow entries:
The purpose was to monitor the update frequency to determine the stability of the zigbee network.
The results got me flabbercasted, the amount of updates/triggers is INSANE.
What is happening/wrong here?
The code:
Code: Select all
return {
on = {
devices = {
'Blitzwolf 01 Koelkast energy',
'Tuya SurroundSpeakers energy'
}
},
logging = {},
execute = function(dz, device, triggerInfo)
if device.name=='Blitzwolf 01 Koelkast energy' then
local actual = dz.devices('Zigbee_update_koelkast').counter + 1
dz.devices('Zigbee_update_koelkast').updateCounter(actual)
do return end
end
if device.name=='Tuya SurroundSpeakers energy' then
local actual = dz.devices('Zigbee_update_surround').counter + 1
dz.devices('Zigbee_update_surround').updateCounter(actual)
do return end
end
end
}

Counters after ~15minutes:

Resulting (ofcourse) in the following overflow entries:
Code: Select all
2024-08-11 21:50:00.607 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1684, sValue: '885443715983617949696', sUsage: '0', dType: 243, sType: 28)
2024-08-11 21:55:00.094 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1684, sValue: '14507109848176000042532864', sUsage: '0', dType: 243, sType: 28)
2024-08-11 22:00:00.628 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1684, sValue: '59421121957798200420987830272', sUsage: '0', dType: 243, sType: 28)