16.09.2024, 11:21
(16.09.2024, 07:43)admin Wrote: 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.zi
Code:zb = require('applibs.zigbee')
addr = '0123456789abcdef'
cluster = 0x0406 -- MsOccupancySensing
attrs = { 'PirOToUDelay' }
res, err = zb.cmdsync('getnamedattributes', addr, cluster, attrs)
log(res, err)
Code:
i got the following in the logs
* arg: 1
* nil
* arg: 2
* string: no response
also here is the device info, in case it maked a difference?
Manufacturer: eWeLink
Model: MS01
Device type: End device
Power source: Battery
Receive when idle: No
Endpoint 1
Profile: 260
Input clusters
- Basic (0)
- Identify (3)
- SsIasZone (1280)
- PowerCfg (1)
Output clusters
- Identify (3)
Reported attributes
- detection: false