This is not debugging, so maybe you are already beyond this, but have you tried observing the ‘zha_event’ events ?
Developer Tools
Events
Listen to events
Event to subscribe to
zha_event
START LISTENING
You will get data such as this that I get for a Aqara Cube:
event_type: zha_event
data:
device_ieee: 00:15:8d:00:02:a3:72:aa
unique_id: 00:15:8d:00:02:a3:72:aa:2:0x0012
device_id: f660b35dcfd0aeefe0be987aa2b21ec0
endpoint_id: 2
cluster_id: 18
command: flip
args:
value: 104.0
flip_degrees: 90
activated_face: 1.0
origin: LOCAL
time_fired: '2021-01-05T19:09:27.755162+00:00'
context:
id: 19609fa5c2ceb782582a0b2580277820
parent_id:
user_id:
This blueprint might give you some ideas as you get the zha_event events of your device: