#Intercept ZHA messages?

1 messages · Page 1 of 1 (latest)

leaden pewter
#

Is there a way to intercept Zigbee messages received by the controller before they are consumed by ZHA? I'm running running tests on an ESP32-C6 sensor I created using the 3.2.0 Espressif Arduino library. I'm sending a monotonically increasing value at about 20 second intervals and charting the value in HA. I get no errors return in the program but occasionally i'm missing data. I expect to see a regular stair-step pattern but occasionally ... steps (data) are missing. I'm trying to figure "who" the guilty party is: ZHA, coordinator, or the EP code and/or libraries.

leaden pewter
#

I don't need to sniff the air

manic hedge
#

i meant u can use a zigbee network sniffer

#

to see if the esp sends them

#

and if the "reciever" zigbee coordinator is dropping them

#

altho if u enable zigbee end device debug in arduino you might see the messages notbeing recieved

leaden pewter
#

I think these are instances where the device didn't connect.

novel frost
#

Debug logging of the radio lib in zha will show the data coming and going as well. Sniffing and watching the data over the air can tell you if something is missing too

leaden pewter
#

The debug level logging on the ESP32-C6 indicates that there were no errors raised connecting and sending the data. I'm collecting ZHA debug logs but that data is hard (for me) to decode. I'll be searching for relevant entries by Network ID

leaden pewter
#

It looks like the ESP32-C6 occasionally glitches on startup initialization after awakening from deep sleep . I missed seeing the glitch until I changed my logging.
https://github.com/espressif/arduino-esp32/issues/11230

GitHub

Board Adafruit ESP32-C6 Feather Device Description Nothing attached Hardware Configuration Nothing attached Version v3.2.0 IDE Name Arduino 3.3.5 Operating System Windows 11 Flash frequency 40 MHz ...

leaden pewter