Listen to Zigbee device messages

Hi, I am trying to learn more about how HA, Zigbee and a Device communicate. I have found several articles online that suggest going to Settings->Tools->Events and setting “Listen to events” to subscribe to “zha_event” and “Start Listening”.

I know that my device is sending a message every second or so because I can see the value change in Tools->States

but I get nothing but “Waiting for events…” in the window under “Listen to events”.
I am probable completely missunderstanding the whole system but I thought I would see a stream of messages appearing which I could then consider to see what their information content was…

Can anyone offer any suggestions ?
Please be gentle, I’m just starting to learn this stuff :slight_smile:

Thanks
PhilipJ

OK - I changed what I was listening to from “zha_event” to “state_changed” and now I am capturing a load of events so I guess I will go away and read through what I’ve captured to learn more
My first task is going to be how to filter the events to only one device…
PhilipJ

What you see when you listen for zha_event are a specific subsets of events the ZHA integration posts directly to HA’s event bus. They are not all the messages being sent over your Zigbee mesh network. They aren’t even all the events being posted by ZHA-controlled components.

Since states are bound to entities, the state_changed event really doesn’t contain any direct device information. If you are using the default generated entity ID’s there is probably a common part of the entity IDs that you could use in the “Filter events” field of the Events tool to catch all, or at least most, of the state changes of the device’s entities.