@B_lex wrote:
I was hoping my first post here was not going to be a question, but unfortunately I’m able to setup my first automations.
I’ve recently installed Home Assistant Core running in docker on an Odroid N2The goal of my automations is to lower screens based on the position of the sun(azimuth). While taking into account cloud coverage (high coverage means the screens are not necessary) and wind speed (high wind speed could damage the screens).
The config validation is HA returns: Invalid config for [automation]: required key not provided @ data[‘trigger’][0][‘platform’]. Got None. (See /config/configuration.yaml, line 10).
I’ve validated that both files are valid YAML and scoured the form for a solution without result.Can someone please have a look and tell me what I’m missing?
My configuration:
# Configure a default setup of Home Assistant (frontend, api, etc) default_config: # Uncomment this if you are using SSL/TLS, running in Docker container, etc. # http: # base_url: example.duckdns.org:8123 # inclusions group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml # Text to speech tts: - platform: google_translate # Weather sensor sensor: - platform: openweathermap api_key: APIKEY forecast: true monitored_conditions: - weather - temperature - wind_speed - humidity - pressure - clouds - rain - snow - weather_code - platform: buienradar monitored_conditions: - stationname - condition - symbol - humidity - temperature - feeltemperature - windspeed - pressure - irradiance
My automations.yaml:
# Covers # Eastside - alias: "Lower sunscreens on Eastside of the house" trigger: value_template: "{{ state_attr('sun.sun', 'azimuth') }}" # Can be a positive or negative number above: 55 condition: condition: and conditions: # Prefix the first line of each condition configuration # with a '-'' to enter multiple - condition: numeric_state entity_id: sensor.owm_cloud_coverage below: 80 - condition: numeric_state entity_id: sensor.owm_wind_speed below: 13 action: service: cover.close_cover entity_id: - cover.overkapping - cover.slaapkamer_1_links - cover.slaapkamer_1_rechts - cover.slaapkamer_2_groot # Southside - alias: "Lower sunscreens on Southside of the house" trigger: value_template: "{{ state_attr('sun.sun', 'azimuth') }}" # Can be a positive or negative number above: 105 condition: condition: and conditions: - condition: numeric_state entity_id: sensor.owm_cloud_coverage below: 80 - condition: numeric_state entity_id: sensor.owm_wind_speed below: 13 action: service: cover.close_cover entity_id: - cover.raam_bij_berging - cover.woonkamer_hoekraam - cover.slaapkamer_2_klein - cover.raam_inloopkast # Westside - alias: "Lower sunscreens on Westside of the house" trigger: value_template: "{{ state_attr('sun.sun', 'azimuth') }}" # Can be a positive or negative number above: 205 condition: condition: and conditions: - condition: numeric_state entity_id: sensor.owm_cloud_coverage below: 80 - condition: numeric_state entity_id: sensor.owm_wind_speed below: 13 action: service: cover.close_cover entity_id: - cover.master_bedroom - cover.woonkamer_links_hoek - cover.woonkamer_schuifpui - cover.woonkamer_keuken # Northside - alias: "Lower sunscreens on Northside of the house" trigger: value_template: "{{ state_attr('sun.sun', 'azimuth') }}" # Can be a positive or negative number above: 280 condition: condition: and conditions: - condition: numeric_state entity_id: sensor.owm_cloud_coverage below: 80 - condition: numeric_state entity_id: sensor.owm_wind_speed below: 13 action: service: cover.close_cover entity_id: cover.vide
Posts: 1
Participants: 1