Closed itsmepetrov closed 6 years ago
This PR brings an ability to specify cluster attributes as an object for the following Bridge methods:
Bridge
read
write
report
Example:
// attribute id ep1.report('msTemperatureMeasurement', 'measuredValue', 3, 5, 100, (err) => { if (!err) { console.log('Successfully configure ep1 report temperature attribute!'); } }); // attribute definition (example for Xiaomi devices proprietary attribute) ep1.report('genBasic', { id: 65281, type: 'charStr' }, 1, 60, 100, (err) => { if (!err) { console.log('Successfully configure ep1 report proprietary attribute!'); } });
It allows us to use proprietary attributes without updating zigbee-bridge-definitions module.
zigbee-bridge-definitions
Other changes in this PR:
zutils
This PR brings an ability to specify cluster attributes as an object for the following
Bridge
methods:read
write
report
Example:
It allows us to use proprietary attributes without updating
zigbee-bridge-definitions
module.Other changes in this PR:
zutils
module