[Help Request] - Identical cluster/command combo does different things - set/get/write #16282
Replies: 2 comments 4 replies
-
I've also tried reading the power_on_behavior by changing the MQTT topic from
When clicking the refresh button next to power_on_behavior in the lights Exposes menu, the coordinator sends the Frame 5: 48 bytes on wire (384 bits), 48 bytes captured (384 bits) on interface COM7, id 0
(...)
IEEE 802.15.4 Data, Dst: 0x1b6d, Src: 0x0000
(...)
ZigBee Network Layer Data, Dst: 0x1b6d, Src: 0x0000
(...)
ZigBee Application Support Layer Data, Dst Endpt: 1, Src Endpt: 1
Frame Control Field: Data (0x00)
.... ..00 = Frame Type: Data (0x0)
.... 00.. = Delivery Mode: Unicast (0x0)
..0. .... = Security: False
.0.. .... = Acknowledgement Request: False
0... .... = Extended Header: False
Destination Endpoint: 1
Cluster: On/Off (0x0006)
Profile: Home Automation (0x0104)
Source Endpoint: 1
Counter: 113
ZigBee Cluster Library Frame, Command: Read Attributes, Seq: 75
Frame Control Field: Profile-wide (0x10)
.... ..00 = Frame Type: Profile-wide (0x0)
.... .0.. = Manufacturer Specific: False
.... 0... = Direction: Client to Server
...1 .... = Disable Default Response: True
Sequence Number: 75
Command: Read Attributes (0x00)
Attribute: StartUpOnOff (0x4003) |
Beta Was this translation helpful? Give feedback.
-
I'm very confused as to what you are trying to do. Are you trying to read/write custom payloads? Or do you just want to set/get the exposed properties you see in the frontend? The later is easy, although you can't read everything, only things that have the blue refresh icon.
Since you mentioned power_on_behavior, you can set it like this:
Or get the value like this:
You need to listen on |
Beta Was this translation helpful? Give feedback.
-
Hi. Can someone please help me with this? I've been stuck for days.
What I'm Trying To Do
Construct MQTT/JSON commands to write or read attributes.
What I've Attempted
Many things but I'll use setting the power_on_behavior of my light as an example.
Using the Zigbee2MQTT front end, I can set the power_on_behavior to previous from the Exposes menu.
I can see in my network traffic that my Zigbee coordinator sends the
Write Attributes (0x02)
command on theOn/Off (0x0006)
cluster, attaching theStartUpOnOff (0x4003)
attribute andPrevious (0xff)
value (is this field called value?).The light then responds to the coordinator with the
Write Attributes Response (0x04)
command on theOn/Off (0x0006)
cluster with theSuccess (0x00)
status.I thought I knew from all that what information I needed to build the MQTT message but something is definitely missing.
When I try to send the
Write Attributes (0x02)
command on theOn/Off (0x0006)
cluster, I'm unintentionally sending theToggle (0x02)
command on theOn/Off (0x0006)
cluster. Admittedly, I haven't figured out how to attach the attributes payload yet, but nothing I've tried putting in the json payload changes the command sent.The light responds to this toggle with the
Default Response (0x0b)
command on theOn/Off (0x0006)
cluster with theSuccess (0x00)
status.Raw Network Traffic
If you also want the responses, please let me know.
The
Write Attributes (0x02)
command I want to send.(Sorry, I have no idea what language to use in this code block for WireShark traffic, but javascript looks readable if you can ignore some of the inconsistencies)
The
Toggle (0x02)
command I unintentionally send.How I'm unintentionally sending the
Toggle (0x02)
command.Topic:
Payload
I've also tried changing the payload attributes and also removing the payload entirely.
Beta Was this translation helpful? Give feedback.
All reactions