Change device class for "Combine States" helper from the UI

I’d like it if we could change the device class for “Combine States” helpers from the UI.

— Original Post —

Hello,

My “combine the state of several sensors” helpers are not displaying on the same graph as the sensors it’s combining.

Can I change this so they’re on the same graph?

Thanks!

Example:


(not showing all sensors here but I checked and they will all display on the same graph)

You need to assign the device class temperature to the “Combine…” helper entity.

I don’t see where to do this, at least not within the UI (which is where I created the helper).

It has to be done via manual customization in your YAML configuration.

How unfortunate. Thanks for pointing this out.

Use Group sensor instead and it will do it for you if all the source entities have the same device class and/or state class.

1 Like

Thanks for bringing this to my attention! :blush:

This is no longer true. Do you know what happened? I’m guessing it was a recent HA update that broke it.

It shows up like this,


instead of a line graph.

Looks like it doesn’t have a proper device class and unit of measurement.

If you’re using UI to set it up the source sensors needs to have same device class and unit of measurements needs to be convertible in between for it to set the right one.

Otherwise you need to manually create it by YAML to define these things.

Turns out one of the devices was removed, causing this error. Thanks for the reply, it helped me figure that out.