MQTT Discovery support for Groups

I am playing with the MQTT Discovery to add a number of sensors and switches as part of controlling the Sureflap Connect hub directly from within the home and not using the cloud service.
What I would like to do is inject events via discovery to create a group, then all the sensors and switches within that group in one go.
Or would it be better to create a new surepetcare component https://github.com/home-assistant/core/tree/dev/homeassistant/components/surepetcare such as surepetcarelocal and bundle everything in there. As the surepet hub talks mqtt it “might” be possible to create mqtt templates to read the particular sensor states but it would be horridly complicated so I plan to have an external process that listens to the topics and then sends messages to the HA MQTT using discovery to configure everything.

1 Like