I would suggest that you utilize the MQTT connection to listen to events and send messages. A couple of places I would start to look at:
- My blueprint for managing button presses (it listens directly to MQTT events through Home Assistant)
- This blueprint for handling notification commands through Z2M
Feel free to ping me on Github once you have some code available. I’m happy to review and test. For context, I’ve done a lot of work recently on the Z2M converters for Inovelli devices so I’m very familiar with how this stuff fits together. Unfortunately, I don’t really have the time in the next few weeks to help with development but should have time for review/testing.