Min value: `group:` v `platform: group` v `platform: min_max`

Hi,

I know I can do the following to get the min value from a group.

sensor:
  - platform: group
    name: 'min temp group platform'
    type: min
    ignore_non_numeric: true
    unit_of_measurement: °C
    device_class: temperature
    entities:
      - sensor.hallway_temp
      - sensor.bedrooom_1_temp

I am also aware that I could get min using the min_max integration:

sensor:
  - platform: min_max
    name: min temp min_max platform
    type: min
    entity_ids:
      - sensor.hallway_temp
      - sensor.bedrooom_1_temp

Q1]
Is one method considered better or the future over the other or is it simply that the group platform is both a group (that can be expanded etc etc) as well as giving a min result?

Also, Is the following now considered the ‘old’ way and to be avoided?

group:
  min_temp:
    entities:
      - sensor.hallway_temp
      - sensor.bedrooom_1_temp

Q2]
I appreciate the 3rd one is a group and the 1st/2nd ones are sensors derived from a list, but I thought the 3rd one was still supposed to be able to have type: min as a state based on this from the docs.

Any guidance would be appreciated.

Yep just that.

Nope. Nowhere in old style groups does it say type: is supported (because it isn’t).

@tom_i always patient, always to the rescue!

Thanks; I got lost in the weeds and can now see that those docs are referring to ‘sensor groups’.

So, to be clear, the following is considered ‘old style’?

group:
  min_temp:
    entities:
      - sensor.hallway_temp
      - sensor.bedrooom_1_temp

Thanks again!

Yes it is “old style”.

1 Like