13.09.2023, 11:56
Full status read is done in the user UI part so it cannot be called from scripts. You can read attributes like LocalTemperature via a script:
Code:
zb = require('applibs.zigbee')
addr = '0123456789abcdef'
cluster = 0x0201 -- HvacThermostat
attrs = { 'LocalTemperature' }
res, err = zb.cmdsync('getnamedattributes', addr, cluster, attrs)
log(res, err)
if type(res) == 'table' and res.LocalTemperature then
temperature = res.LocalTemperature / 100
log(temperature)
end