ZHA Toolkit can't get ZHA devices

hi all,

Wondering if anyone can help with this, I’m trying to build an automation around information I get from zha toolkit. To start with I’m just trying to use developer tools to see what I can pull but zha toolkit seems to fail every time.

I’m running action:

zha_toolkit.zha_devices

but get this error every time;

Failed to perform the action zha_toolkit.zha_devices. Unknown error

looking into the logs I can see this error;

  File "/config/custom_components/zha_toolkit/default.py", line 51, in default
    await handler(app, listener, ieee, cmd, data, service, params, event_data)
  File "/config/custom_components/zha_toolkit/zha.py", line 48, in zha_devices
    devices = [device.zha_device_info for device in listener.devices.values()]
                                                    ^^^^^^^^^^^^^^^^
AttributeError: 'ZHAGatewayProxy' object has no attribute 'devices'

Is something up with zha_toolkit here, or am I just getting things wrong?

Thanks for the help!
Jon

I don’t know everything, but I don’t know what zha_toolkit is, and I searched the HA docs and the string doesn’t show up as far as I can tell.

Maybe the problem is I don’t know where this is:

Are you looking for this category maybe? Development - Home Assistant Community

It seems very handy, main thing that I’m looking to grab is the “last seen” variable for devices.
I use a temperature sensor in a freezer that I’ve converted into a keezer for beer and it the temp sensor fails I need to have an automation shut down the freezer quite quickly to avoid my keg of beer becoming an ice block :smiley:

more info here;