02.04.2024, 07:16
@busta, we don't have plans to add any new measurement attributes at the moment.
You can read raw attributes via a script like this:
You can read raw attributes via a script like this:
Code:
zb = require('applibs.zigbee')
addr = '000d6f000b7a9d76' -- Meter address
cluster = 0x0702 -- Metering
attrs = { 769, 770, 1024 } -- Multiplier, Divisor, ActivePower
res, err = zb.cmdsync('getattributes', addr, cluster, attrs)
if res then
-- note that the returned attribute keys are strings, not numbers
power = res['1024'] * res['769'] / res['770']
log(power)
else
log('zb read error', err)
end