This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Zigbee gateway integration
(Yesterday, 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-1


Which 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.
Reply


Forum Jump: