07.11.2022, 13:47
(07.11.2022, 09:24)Daniel Wrote: Which groups did you create?
I createt 2 light groups in zigbee to pair a zigbee remote's buttons to each of the lights. The groups is in on/off and level mode. The pairng went fine and it did work as supposed, 30 minutes in i discovered the system popped theese logs, and got worse. (still does pop theese errors)
I have to mention i have a script to poll the ligths to update the status object's for the lights, as they don't update as i want out of the zigbee app. (disabled script when problem accoured to rule out the script making some fuzz)
The script is as follows and triggers on tag's for the GA for the lights, 16 GA is tagged to fire the script on change on the light from switch/app etc. (script complains sometimes with this faultcode)
Code:
Lys-status oppdaterlys 07.11.2022 14:42:28
User script:11: attempt to perform arithmetic on global 'binarydimvalue' (a nil value)
stack traceback:
User script:11: in main chunk
Code:
zb = require('applibs.zigbee')
--Garderobelys
garderobelys = '60a423fffecec1ed'
dimlevel = '3/5/1'
onoffstatus = '3/6/1'
-- get current level of device garderobelys
binarydimvalue = zb.cmdsync('getlevel', garderobelys)
--log(binarydimvalue)
dimverdipros = math.round((binarydimvalue / 254 * 100),0)
log(dimverdipros)
grp.write(dimlevel, dimverdipros)
-- get current level of device garderobelys
res = zb.cmdsync('getonoff', garderobelys)
log(res)
grp.write(onoffstatus, res)
--Inngangspartilys
inngangspartilys = '04cd15fffe933d28'
dimlevel2 = '3/5/0'
onoffstatus2 = '3/6/0'
-- get current level of device inngangspartilys
binarydimvalue2 = zb.cmdsync('getlevel', inngangspartilys)
--log(binarydimvalue2)
dimverdipros2 = math.round((binarydimvalue2 / 254 * 100),0)
log(dimverdipros2)
grp.write(dimlevel2, dimverdipros2)
-- get current level of device inngangspartilys
res2 = zb.cmdsync('getonoff', inngangspartilys)
log(res2)
grp.write(onoffstatus2, res2)
Current fault log from zigbee app itself.
Code:
Date Entry
2022-11-07 14:43:47 CC: resetting device
2022-11-07 14:43:27 CC: resetting device
2022-11-07 14:39:05 TASK zb_initialize aborted: stack traceback:
[C]: in function 'assert'
...tmp.zuUiif2Lpb/files/store/daemon/zigbee/zigbee/core.lua:813: in function <...tmp.zuUiif2Lpb/files/store/daemon/zigbee/zigbee/core.lua:809>
2022-11-07 14:39:05 ZB: could not start coordinator
2022-11-07 14:39:05 CC: error initializing
2022-11-07 14:39:05 CC: could not reset dongle
2022-11-07 14:38:45 CC: resetting device
2022-11-07 14:38:25 CC: resetting device
2022-11-07 14:38:05 CC: resetting device
Could the dongle be out of memory failure maybe du to to much polling?
System have 14 zigbee devices. It shall be ok du to specs from Edgars. (15 device limit)
I have the new RS232 GW in order currently.
Have tried restart of system, and uninstall and reinstall zigbee app.