Hi guys,
I wanted to implement this great project in my Home Assistant: Google Weather Frog Card
Everything worked out fine so far, however, there is a minor issue that I can’t resolve. The code in the configuration.yaml looks like this:
sensor:
- trigger:
- platform: time_pattern
minutes: "30"
- platform: homeassistant
event: start
- platform: event
event_type: event_template_reloaded
action:
- service: weather.get_forecasts
target:
entity_id: weather.hamburgairport
data:
type: hourly
response_variable: forecast
sensor:
- name: "Wetter_HamburgA_Niederschlagsmenge"
unique_id: wetter_hamburga_niederschlagsmenge
state: >
{{
forecast['weather.hamburgairport'].forecast[0].precipitation
}}
#Froschi23
- trigger:
- platform: time_pattern
hours: "1"
- platform: homeassistant
event: start
- platform: event
event_type: event_template_reloaded
action:
- service: weather.get_forecasts
target:
entity_id: weather.hamburgairport
data:
type: daily
response_variable: forecast
sensor:
- name: "Wetter_HamburgA_Vorhersage_Status"
unique_id: wetter_hamburga_vorhersage_status
state: >
{{
forecast['weather.hamburgairport'].forecast[0].condition
}}
- name: "Wetter_HamburgA_Vorhersage_Temperatur"
unique_id: wetter_HamburgA_vorhersage_temperatur
unit_of_measurement: °C
state: >
{{
forecast['weather.hamburgairport'].forecast[0].temperature
}}
The error that I get is as following:
Konfigurationswarnungen
Invalid config for 'sensor' at configuration.yaml, line 24: required key 'platform' not provided
Invalid config for 'sensor' at configuration.yaml, line 48: required key 'platform' not provided
What am I doing wrong?
Best regards,
Dennis