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
(18.12.2025, 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
he Zigbee gateway does not work after a network outage and shows an error message: 
lua: /tmp/tmp.mtkFYYoRG4/files/store/daemon/zigbee/lib/ctx.lua:191: ...tmp.mtkFYYoRG4/files/store/daemon/zigbee/zigbee/core.lua:979: ZB: could not start coordinator
stack traceback:
[C]: in function 'error'
/tmp/tmp.mtkFYYoRG4/files/store/daemon/zigbee/lib/ctx.lua:191: in function 'task_resume'
/tmp/tmp.mtkFYYoRG4/files/store/daemon/zigbee/lib/ctx.lua:204: in function 'callback'
/tmp/tmp.mtkFYYoRG4/files/store/daemon/zigbee/lib/ctx.lua:158: in function 'task_timer_run'
/tmp/tmp.mtkFYYoRG4/files/store/daemon/zigbee/lib/ctx.lua:39: in function 'run'
/tmp/tmp.mtkFYYoRG4/files/store/daemon/zigbee/app.lua:493: in main chunk
[C]: at 0x00014afc
Reply
Try rebooting LM. If this will not help try powering down all zigbee routers(all mains powered devices) and reboot again.
What are the LEDs says?
------------------------------
Ctrl+F5
Reply
(Yesterday, 09:25)Daniel Wrote: Try rebooting LM. If this will not help try powering down all zigbee routers(all mains powered devices) and reboot again.
What are the LEDs says?

Hi Daniel,

There is 1 LED on the ZigBee RS232, one red for power.
On the logicmachine there is one green LED flashing and one solid yellow LED for PoE.
I also noticed that inside the logicmachine housing on the RS232 ports side there is a red LED flashing at the same frequency. Restarted the device with no result
Andi
Reply
Did you perform the actions I described above?
------------------------------
Ctrl+F5
Reply


Forum Jump: