16.09.2024, 07:43
Try running this script to check if the delay can be read from the sensor. Change the addr variable to the sensor address and wake up the sensor manually right before running the script.
Code:
zb = require('applibs.zigbee')
addr = '0123456789abcdef'
cluster = 0x0406 -- MsOccupancySensing
attrs = { 'PirOToUDelay' }
res, err = zb.cmdsync('getnamedattributes', addr, cluster, attrs)
log(res, err)