grossmann
(S Grossmann)
April 20, 2020, 8:58am
1
Hi,
I’d like to display min/max values of an outside temperature sensor.
sensor:
- platform: min_max
name: minimum_temperature_exterieure
type: min
entity_ids:
- sensor.temperature_exterieure
- platform: min_max
name: maximum_temperature_exterieure
type: max
entity_ids:
- sensor.temperature_exterieure
But I always get the current temperature, not the min or max :
entity_ids
(list | string)(Required)
At least two entities to monitor. The unit of measurement of the first entry will be the one that’s used. All entities must use the same unit of measurement.
At least two entities
grossmann
(S Grossmann)
April 20, 2020, 9:16am
3
Oh, so this sensor isn’t what I searched for.
I’m looking to get the min/max values of a sensor, for 24h for example.
pwgdrx
April 20, 2020, 9:19am
4
Hello,
the min-max sensor compares several sensors,
you need the statistics sensor.
grossmann
(S Grossmann)
April 20, 2020, 10:06am
5
Thanks, I got the expected values with :
sensor:
- platform: statistics
entity_id: sensor.temperature_exterieure
max_age:
minutes: 1440
name: stats_temperature_exterieure
- platform: template
sensors:
exterieur_temp_min:
value_template: "{{ state_attr('sensor.stats_temperature_exterieure', 'min_value') }}"
exterieur_temp_max:
value_template: "{{ state_attr('sensor.stats_temperature_exterieure', 'max_value') }}"
1 Like
Vlak5364
(Re De Valk)
December 7, 2020, 9:42am
6
hello people, can someone help me to register the minimum temperature at night.
I want to be able to see in the morning how cold the night has been
knorian
December 16, 2021, 2:47pm
7
Unfortunately, this type no longer works since the last update on 2021.12.2. is there a simple solution?
grossmann
(S Grossmann)
December 21, 2021, 5:32pm
8
Yes, just use following :
sensor:
- platform: statistics
name: "Temp Ext min for 12 Hours"
entity_id: sensor.temperature_exterieure_rounded
state_characteristic: value_min
max_age:
hours: 12
- platform: statistics
name: "Temp Ext max for 12 Hours"
entity_id: sensor.temperature_exterieure_rounded
state_characteristic: value_max
max_age:
hours: 12
knorian
December 22, 2021, 8:21am
9
thanks, i will test that this we
knorian
January 12, 2022, 8:30am
10
max value is currently the current value