All solutions I find about get addon state need create a REST sensor and token… I think the addon status sensor should come as standard, just like the available update one.
This would allow automation based on the state of the addon. For example, if z2m hasn’t initialized properly, post a warning, or if MariaDB hasn’t initialized manually start it and restart HA.