moin zusammen, auch ich treibe mich grad mit der template.yaml rum und erhalte einen Fehler, aus dem ich nicht schlau werde!
Fehler wäre folgender:
Logger: homeassistant.config
Quelle: config.py:592
Erstmals aufgetreten: 09:09:20 (3 Vorkommnisse)
Zuletzt protokolliert: 09:12:32
Invalid config for 'template' at template.yaml, line 32: 'platform' is an invalid option for 'template', check: sensor->1->platform Invalid config for 'template' at template.yaml, line 32: required key 'state' not provided Invalid config for 'template' at template.yaml, line 34: 'entity_ids' is an invalid option for 'template', check: sensor->1->entity_ids Invalid config for 'template' at template.yaml, line 37: 'type' is an invalid option for 'template', check: sensor->1->type Invalid config for 'template' at template.yaml, line 38: 'round_digits' is an invalid option for 'template', check: sensor->1->round_digits
Invalid config for 'template' at template.yaml, line 1: 'template' is an invalid option for 'template', check: template
Invalid config for 'template' at template.yaml, line 31: 'platform' is an invalid option for 'template', check: sensor->1->platform Invalid config for 'template' at template.yaml, line 31: required key 'state' not provided Invalid config for 'template' at template.yaml, line 33: 'entity_ids' is an invalid option for 'template', check: sensor->1->entity_ids Invalid config for 'template' at template.yaml, line 36: 'type' is an invalid option for 'template', check: sensor->1->type Invalid config for 'template' at template.yaml, line 37: 'round_digits' is an invalid option for 'template', check: sensor->1->round_digits
Den erhalte ich, wenn ich den letzten Sensor in die template.yaml eintrage (letzen 7 Zeilen).
- trigger:
- platform: time_pattern
hours: /1
- platform: homeassistant
event: start
- platform: event
event_type: event_template_reloaded
action:
- service: weather.get_forecasts
data:
type: hourly
target:
entity_id: weather.lehrte_sievershausen
response_variable: hourly
sensor:
- name: Weather Hourly lehrte
state: "{{ states('weather.lehrte_sievershausen') }}"
attributes:
temperature: "{{ state_attr('weather.lehrte_sievershausen', 'temperature') }}"
temperature_unit: "{{ state_attr('weather.lehrte_sievershausen', 'temperature_unit') }}"
humidity: "{{ state_attr('weather.lehrte_sievershausen', 'humidity') }}"
pressure: "{{ state_attr('weather.lehrte_sievershausen', 'pressure') }}"
pressure_unit: "{{ state_attr('weather.lehrte_sievershausen', 'pressure_unit') }}"
wind_bearing: "{{ state_attr('weather.lehrte_sievershausen', 'wind_bearing') }}"
wind_speed: "{{ state_attr('weather.lehrte_sievershausen', 'wind_speed') }}"
wind_speed_unit: "{{ state_attr('weather.lehrte_sievershausen', 'wind_speed_unit') }}"
#condition1: "{{ state_attr['weather.lehrte_sievershausen'].forecast[7].condition}}"
forecast (7 Std): "{{ hourly['weather.lehrte_sievershausen'].forecast[0].condition}}"
forecast: "{{ hourly['weather.lehrte_sievershausen'].forecast}}"
- platform: min_max
name: combine_temp
entity_ids:
- sensor.e3_vitodens_300_0821_aussentemperatur
- sensor.t_h_sensor_aussen_temperatur
type: mean
round_digits: 1
Der Fehler tritt wie gesagt nur auf, wenn ich den Helper eintrage, ansonsten funktioniert das alles.
Ich hoffe ihr habt einen Hinweis für mich 