User`s manual
80
write_attributes
Writes to ZCL attributes on the given cluster on the given device and endpoint. Writes
may be normal or undivided. If any attribute in an undivided write cannot be written then
none of the attributes will be written. In a normal write all attributes are written individually
with success or failure returned for each.
Parameter Type Description
cluster_id int 16-bit identifier of the cluster to which the ZCL command
will be sent.
server_or_client int Indicates whether the target cluster is a se
rver (0) or client (1) cluster.
destination_endpoint_id int 8-bit identifier of the endpoint on which the target cluster exists.
source_endpoint_id
(
optional)
int 8-bit identifier of the endpoint from which the ZCL command will be sent. Only
required for remote commands.
destination_address
(
optional)
MAC 64-bit extended address of the device to send the ZCL command to. If not pro-
vided, the command will be to the local
device.
command_identifier
(
optional)
int 8-bit ZCL command identifier to specify Write Attributes Command (0x02) or
Write Attributes Undivided Command (0x05). Defaults to Write Attributes Com-
mand.
manufacturer_code
(
optional)
int If included, this is the 16-bit manufacturer code of the attributes in the record
list.
record_list list List of records which will make up the p
ayload of the ZCL Write Attributes Com-
mand.
item - W
riteAttributeRecord (See “WriteAttributeRecord” on page 119)
write_attributes Parameters:
write_attributes_response Parameters:
manufacturer_code (optional) int 16-bit manufacturer code of the attributes in the record list.
record_list list List of records which made up the payload of the ZCL Read
Attributes Response Command.
item -
ReadAttributeStatusRecord
(See “ReadAttributeStatusRecord” on page 120.)
Parameter Type Description
cluster_id int 16-bit identifier of the target cluste
r from which the response was sent.
server_or_client int Target cluster is a server (0) or client (1) cluster.
profile_id int 16-bit profile identifier of the endpoint from which the response was sent.
source_endpoint_id int 8-bit identifier of the endpoint from which the response was sent.
Parameter Type Description










