Min_Max values from sensor

Hello,
I am running 0.115.2 HA and I like to have something showing min / max values on temperature until I reset and clears the values.

I added:

sensor:
  - platform: min_max
    entity_ids:
     - sensor.viking_0203502038_c7_00_temperature

Developer Tools I now find sensor.max_sensor and this shows:

count_sensors: 1
max_value: 1.1
max_entity_id: sensor.viking_0203502038_c7_00_temperature
mean: 1.1
median: 1.1
min_value: 1.1
min_entity_id: sensor.viking_0203502038_c7_00_temperature
last: 1.1
last_entity_id: sensor.viking_0203502038_c7_00_temperature
unit_of_measurement: °C
friendly_name: Max sensor
icon: 'mdi:calculator'

Where can I find the min values?
How can I add this to lovelace?
Thanks for help, I need it :slight_smile:

My understanding on how these work

is

  - platform: min_max
    name: House Temp
    type: mean
    entity_ids:
      - sensor.office_temperature
      - sensor.lounge_temperature
      - sensor.temperature_hall
      - sensor.master_temperature
      - sensor.garage_temperature
      - sensor.spare_temperature
      - sensor.bathroom_temperature
      - sensor.kids_temperature
      - sensor.kitchen_temperature

will give me the avg temp of my house

and to get the mean max min of the Lounge/kitchen
I have

#=======================================================================  
  - platform: min_max
    name: Living Temp
    type: mean
    entity_ids:
      - sensor.lounge_temperature
      - sensor.kitchen_temperature
#=======================================================================
#
#=======================================================================
  - platform: min_max
    name: Living Temp max
    type: max
    entity_ids:
      - sensor.Living_Temp
      - sensor.Living_Temp_max
#=======================================================================
#
#=======================================================================
  - platform: min_max
    name: Living Temp min
    type: min
    entity_ids:
      - sensor.Living_Temp
      - sensor.Living_Temp_min
#=======================================================================
#
#=======================================================================

the lovelace bit

  - type: section
  - entity: sensor.living_temp
    name: Living
    primary:
      entity: sensor.living_temp_max
      name: max
    secondary:
      entity: sensor.living_temp_min
      name: min
    type: 'custom:multiple-entity-row'
  - type: section

which create this

image

2 Likes

Thanks a lot for this input! - (updated the post since I got further and made basic mistakes)
I managed to create a Min and Max value but add those in lovelace with

type: section

really gives e headache…

I have this in configuration.yaml

#test min / max
sensor:
  - platform: min_max
    name: Växthus mean temp
    type: mean
    entity_ids:
      - sensor.viking_0203502038_c7_00_temperature
      - sensor.viking_0203502038_87_00_temperature
      - sensor.vaxthus_mean_temp
      
      
  - platform: min_max
    name: Växthus temp max
    type: max
    entity_ids:
      - sensor.vaxthus_mean_temp
      - sensor.vaxthus_temp_max
   
  - platform: min_max
    name: Växthus temp min
    type: min
    entity_ids:
      - sensor.vaxthus_mean_temp
      - sensor.vaxthus_temp_min

Lovelace - here is where I seems to have problems, never configured raw before :confused:
Trying to make a new view called test with the Min/Max but it failes:

Custom element doesn’t exist: multiple-entity-row.

  - title: test min max
    cards:
      - type: entities
        entities:
          - type: section
          - entity: sensor.vaxthus_mean_temp
            name: greenhouse
            primary:
              entity: greenhouse_temp_max
              name: max
            secondary:
              entity: sensor.greenhouse_temp_min
              name: min
            type: 'custom:multiple-entity-row'
          - type: section

lovelace