Separating switches from sensors using auto discovery

I have a device that sends data for 30 sensors in the device to HA using MQTT.
This same device also has 10 switches I am sending.

They all show up using auto discovery, but the problem is that they all show up in the same list which makes it a LONG list.

I would like to separate the sensors from the switches to both have their own card automatically.

I tried this using different ids for each, but then home assistant think they are actually different devices.

How can I separate them to two card? Should I use an entities card? Or another parameter?

I would think something like the auto-entites card could do this easily if you filter on domain.

1 Like