I want to calculate the minimum of different sensors I created in the configuration.yaml. I would like to use the min/max integration of HA. I added this to my configuration
- sensor:
- platform: min_max
entity_ids:
- sensor.temperature_forecast_hour_next_1
- sensor.temperature_forecast_hour_next_2
- sensor.temperature_forecast_hour_next_3
and I get the following error
“Invalid config for ‘template’ at configuration.yaml, line 176: ‘platform’ is an invalid option for ‘template’, check: sensor->0->platform Invalid config for ‘template’ at configuration.yaml, line 176: required key ‘state’ not provided Invalid config for ‘template’ at configuration.yaml, line 177: ‘entity_ids’ is an invalid option for ‘template’, check: sensor->0->entity_ids”
I created the temperature sensors in this way
- trigger:
- platform: time_pattern
hours: /1
action:
- service: weather.get_forecasts
target:
entity_id:
- weather.forecast_home
data:
type: hourly
response_variable: stundenvorhersage
sensor:
- name: Temperatur-Vorhersage Stunde plus 1
unique_id: temperature_forecast_hour_next_1
state: "{{ stundenvorhersage['weather.forecast_home'].forecast[1].temperature }}"