Template all ZHA Devices

Hello to everyone,
did someone now how can we print all ZHA devices in a template?

My idea is to create and automation and if some device from all ZHA devices is unavailable send a notification.

I hope someone could help me
Best Regards
Stefano