History Tab keeping sensor separate from others

Hi there,
I created a combined sensor to get the minimum temperature from my outdoor sensors.
The idea being that if one of them is not in the sun, it will be more likely to show a realistic reading.

I have a few sensor and they all show together if listed in the history page, but this one shows separate and I can’t quite get why. I tried use the same number of decimals and even the same icon (silly, but it was the last obvious difference that remained at one point).
In the picture, if I added however many temperature sensors to my history selection, they would all show up in the top graph, the combined sensor is the only one singled out.
anyone has an idea why this may be and how to fix it?

This is the “combine sensors” page where I selected all the sensors.

Check the attributes of the sensors in Developer Tools → States.

Is the combined sensor missing attributes the other sensor has?

Like device_class or state_class?

My Min sensor has these:

state_class: measurement
min_entity_id: sensor. cam1
unit_of_measurement: °C
icon: mdi:thermometer
friendly_name: Outdoor Temperature

the other sensors are not all the same:

  • for some of them temperature is an attribute of another device (camera),
  • for some other devices is the state of the device itself,
    regardless they are grouped together

Not an answer to my question, but here’s the workaround I ended up using:

created a different template sensor using a this:

{% set temperatures = [
states('sensor.cam_1_temperature'),
states('sensor.dev_2_temperature'),
states('sensor.thermometer_2_temperature')
] %}
{{ min(temperatures) }}

this works :slight_smile:

You need to add a float filter to your numbers, or you’re comparing strings. If your sensors are at 8, 9 and 10 it’ll give you 10 as the minimum as it’s first “alphanumerically”.

{% set temperatures = [
states('sensor.cam_1_temperature')|float(99),
states('sensor.dev_2_temperature')|float(99),
states('sensor.thermometer_2_temperature')|float(99)
] %}
{{ min(temperatures) }}

Using 99 as the default effectively disregards that sensor if it goes unavailable for any reason, assuming you use °C.