for a few days HA tells me that it has a problem with my config in line 28, something to do with automation.
I cannot figure out what is wrong here or where to look otherwise. I would be really thankful if someone could help me sort this out.
The eleventh action in one of your automations is missing a valid target:
Ignore the listed line number. That is just pointing to your !include automations.yaml file. Line numbers in your editor dont start counting at zero though, so it shows up as line 29, rather than 28.
Look at the last action in the last automation he posted. Looks like script.turn_on with no entity, and a template for the entire data field without template notation.
since i thought this might be the issue i already changed the name, before it was called “automations” and now it is called “alarmanlage”.
so i hoped if there was a mistake i could tell it apart by the other name, but i think this seems to be fine. here are pictures of the structure:
this doesnt seem to be the issue, i have tried your suggestion and also deleted the automation since the error message appeared again.
I have also deleted the first empty line in the config, now it says line 27 (the sensors line again).
Logger: homeassistant.config
Source: config.py:455
First occurred: 12:30:19 PM (1 occurrences)
Last logged: 12:30:19 PM
Invalid config for [automation]: expected a dictionary for dictionary value @ data['action'][10]['target']. Got None. (See /config/configuration.yaml, line 27).
config file:
# Loads default set of integrations. Do not remove.
default_config:
#Remote Access
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
ip_ban_enabled: true
login_attempts_threshold: 3
# Text to speech
tts:
- platform: google_translate
#Automationen für Alarmanlage
automation split: !include_dir_list ./alarmanlage/
alarm_control_panel: !include alarm_control_panel.yaml
#Allgemein
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml
automation: !include automations.yaml
#Tankerkönig
tankerkoenig: !include tankerkoenig.yaml
#Alexa
alexa:
smart_home:
#Frage Antwort
input_text:
alexa_actionable_notification:
name: Alexa Actionable Notification Holder
max: 255
initial: '{"text": "Dies ist ein Test des Alexa-Skills. Hat es funktioniert?", "event": "actionable.skill.test"}'
#Themes
frontend:
themes: !include_dir_merge_named themes
#Saugroboter
camera:
- platform: xiaomi_cloud_map_extractor
host: !secret xiaomi_vacuum_host
token: !secret xiaomi_vacuum_token
username: !secret xiaomi_cloud_username
password: !secret xiaomi_cloud_password
draw: ['all']
attributes:
- calibration_points
and the new automations yaml: i deleted unused automations, to clear it out a bit.
- id: '1654371747948'
alias: Back ups Issue Notification
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.backups_stale
from: 'Off'
to: 'On'
condition: []
action:
- service: notify.mobile_app_sm_f926b
data:
message: Access the Google Drive Back Up Add On for Details
title: There is an Issue with the back ups.
data:
clickAction: /hassio/ingress/cebe7a76_hassio_google_drive_backup
mode: single
- id: '1654618714639'
alias: 'Abfallkalender '
description: ''
trigger:
- platform: calendar
event: start
offset: '-6:0:0'
entity_id: calendar.abfallkalender
condition: []
action:
- service: notify.mobile_app_sm_f926b
data:
title: Abfallkalender
message: '{{ trigger.calendar_event.summary }}'
mode: single
- id: '1655291223426'
alias: 'Vacuum: Execute vacuum zone'
description: ''
trigger: []
condition: []
action:
- service: vacuum.stop
data: {}
target:
entity_id: vacuum.saugi
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: script.turn_on
data:
if states.input_select.vacuum_zone.state == "Küche": script.vacuum_zone_kitchen
elif states.input_select.vacuum_zone.state == "Bad": script.vacuum_bathroom
mode: single
- id: '1658344308206'
alias: Waschkeller
description: ''
trigger:
- type: power
platform: device
device_id: 0301f500271eaac1ba91b7fc5ccbb011
entity_id: sensor.waschkeller_power
domain: sensor
below: 10
for:
hours: 0
minutes: 3
seconds: 0
condition: []
action:
- service: notify.mobile_app_sm_f926b
data:
message: Die Wäsche ist fertig!
title: Waschkeller
- service: notify.alexa_media
data:
message: Die Wäsche ist fertig!
target:
- media_player.alexa_bad
- media_player.alexa_display
- media_player.show_kuche
data:
type: tts
- type: turn_off
device_id: 0301f500271eaac1ba91b7fc5ccbb011
entity_id: switch.waschkeller_socket_1
domain: switch
mode: single
ok i was able to figure out with automation caused the issue, there was bad spacing/intendation which caused that the entity was not recognized. but now another error message appears:
Logger: homeassistant.config
Source: config.py:455
First occurred: 10:33:50 AM (10 occurrences)
Last logged: 10:45:54 AM
Invalid config for [automation]: template value is None for dictionary value @ data['action'][0]['data']. Got None. (See /config/configuration.yaml, line 27).
this means the first action in an automation is missing data value? is that right?