13.11.2025, 14:02
Run this once, change addr value to your ZigBee device address.
Code:
zb = require('applibs.zigbee')
addr = '0123456789abcdef'
cluster = 0xFCC0
attr = 0x0201
value = true
dtype = 'bool'
manufcode = 0x115F
res, err = zb.cmdsync('setrawattribute', addr, cluster, attr, value, dtype, manufcode)