(Today, 08:58)admin Wrote: Check this: https://kb.logicmachine.net/libraries/zi...-attribute
For Voltage/Current/Power the formula is value * Multiplier / Divisor. In most cases multiplier and divisor are fixed values.
Thank you. I've tried:
Code:
local res, err = zb.cmd('getnamedattribute', address, 'SeMetering', 'CurrentSummDelivered')But the result from that is:
Code:
string: 21024-1Which is not very useful to convert to integer. I've also tried other combinations to get current temperature, temperature setpoint and so on, but I get the same formatted string as a result every time. err is always nil.