LogicMachine Forum
Zigbee gateway integration - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Zigbee gateway integration (/showthread.php?tid=3320)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


RE: Zigbee gateway integration - FatMax - 18.12.2025

(18.12.2025, 08:58)admin Wrote: Check this: https://kb.logicmachine.net/libraries/zigbee/#get-device-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.


RE: Zigbee gateway integration - Andi2010 - 20.12.2025

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


RE: Zigbee gateway integration - Daniel - 22.12.2025

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?


RE: Zigbee gateway integration - Andi2010 - 22.12.2025

(22.12.2025, 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


RE: Zigbee gateway integration - Daniel - 23.12.2025

Did you perform the actions I described above?


RE: Zigbee gateway integration - Andi2010 - 23.12.2025

(23.12.2025, 08:53)Daniel Wrote: Did you perform the actions I described above?

Yes, Have I followed all the steps described?


RE: Zigbee gateway integration - Daniel - 24.12.2025

Double check the cables but if still not ok contact us via email for replacement.


RE: Zigbee gateway integration - tigi - 02.02.2026

Hi,

Do other people also experience problems and instable operation with the zigbee rs232 gateway the last couple of months?
More specific, showing a red dot in the zigbee app instead of the green dot - button 'network state: closed'
I experienced this 3 or 4 times now over the past couple of months and today again.
A reboot of the logicmachine doesn't help, only disconnecting the power input of the rs232 zigbee gateway and a logicmachine reboot solves the problem.

My first post in this thread about this dates from 17.12.2025, before that I never had any problems.
Apparently Andy2010 also experienced a similar problem reading his post from 20.12.2025


Apart from this I now have an enocean TMC310 usb gateway which doesn't show up anymore in the logicmachine. I first thought it was the enocean TMC310 usb which was broken but I tested it on my pc with dolphinview advanced and there it is detected and recieves telegrams from the other enocean devices, ensuring me there is nothing wrong with the enocean TMC310 usb device.
In this case, neither restarting the logic machine nor performing a rescan or refresh helps, making it inoperable for now.

Something to look into I guess.

Thanks in advance!


RE: Zigbee gateway integration - tigi - 04.02.2026

(02.02.2026, 20:47)tigi Wrote: Hi,

Do other people also experience problems and instable operation with the zigbee rs232 gateway the last couple of months?
More specific, showing a red dot in the zigbee app instead of the green dot - button 'network state: closed'
I experienced this 3 or 4 times now over the past couple of months and today again.
A reboot of the logicmachine doesn't help, only disconnecting the power input of the rs232 zigbee gateway and a logicmachine reboot solves the problem.

My first post in this thread about this dates from 17.12.2025, before that I never had any problems.
Apparently Andy2010 also experienced a similar problem reading his post from 20.12.2025


Apart from this I now have an enocean TMC310 usb gateway which doesn't show up anymore in the logicmachine. I first thought it was the enocean TMC310 usb which was broken but I tested it on my pc with dolphinview advanced and there it is detected and recieves telegrams from the other enocean devices, ensuring me there is nothing wrong with the enocean TMC310 usb device.
In this case, neither restarting the logic machine nor performing a rescan or refresh helps, making it inoperable for now.

Something to look into I guess.

Thanks in advance!

Update: Solved the EnOcean TMC310 USB gateway issue. I had a hunch this problem was unrelated to the Zigbee RS-232, so I suspected the USB hub, especially since only 2 out of 4 LEDs were lit. I plugged the EnOcean TMC310 into another port, and LogicMachine immediately detected the device.


RE: Zigbee gateway integration - admin - 05.02.2026

What is your ZigBee gateway hardware version (check the sticker on the side)? Post what you have in the ZigBee app logs.


RE: Zigbee gateway integration - balatis - 05.02.2026

(05.02.2026, 06:51)admin Wrote: What is your ZigBee gateway hardware version (check the sticker on the side)? Post what you have in the ZigBee app logs.
These are the logs from the app. I have the same problem with the connection. ZIG2MV1122110047.


RE: Zigbee gateway integration - admin - 06.02.2026

You have older HW v1.1 which LM cannot reset if the gateway does not respond. Contact us via e-mail for replacement.


RE: Zigbee gateway integration - tigi - 06.02.2026

(05.02.2026, 06:51)admin Wrote: What is your ZigBee gateway hardware version (check the sticker on the side)? Post what you have in the ZigBee app logs.

Here you go:
   


RE: Zigbee gateway integration - admin - 06.02.2026

See my post above, yours is also HW v1.1.

When replacing the gateway make sure to turn off all powered ZigBee devices beforehand. Otherwise network won't be created. Some devices might need to be paired again.


RE: Zigbee gateway integration - tigi - 06.02.2026

(06.02.2026, 12:40)admin Wrote: See my post above, yours is also HW v1.1.

When replacing the gateway make sure to turn off all powered ZigBee devices beforehand. Otherwise network won't be created. Some devices might need to be paired again.

Hi admin,

does this also apply to battery powered sensors?

Thx


RE: Zigbee gateway integration - Daniel - 06.02.2026

Only mains powered devices, not battery


RE: Zigbee gateway integration - admin - 06.02.2026

Keep the ZigBee app open when replacing the gateway. You will get an error message if the network cannot be formed when the gateway starts.