I have just created two new scripts and associated automations, but when I check config in Dev Tools I keep getting this error which I don’t understand:
Logger: homeassistant.config
Source: config.py:820
First occurred: 10:52:36 AM (5 occurrences)
Last logged: 12:30:25 PM
Invalid config for [script]: expected a dictionary. Got OrderedDict([('default_config', {}), ('media_source', {}), ('tts', [OrderedDict([('platform', 'google_translate')])]), ('group', OrderedDict([('battery_levels', OrderedDict([('name', 'Battery Levels'), ('entities', ['sensor.living_room_sensor_battery', 'sensor.kitchen_sensor_battery', 'sensor.staircase_sensor_battery', 'sensor.guest_room_dimmer_battery_level', 'sensor.living_room_dimmer_battery_level', 'sensor.master_bedroom_dimmer_battery_level', 'sensor.landing_sensor_battery'])])), ('doors.... (See /config/configuration.yaml, line 12).
I have no scripts with any of the above entities and have commented out the new scripts and automations but still receive the error so I’m confused and don’t know what the above is referring to and would appreciate any help.
My configuration.yaml line 12 is automation: !include automations.yaml
I think I’ve literally just figured out what was causing the errors and it has nothing to do with what was stated in the logs.
configuration.yaml line 12 is automation: !include automations.yaml
However, I had another script that had a dash (-) in front of alias that shouldn’t have been there. I had that particular script commented out for a while and only removed the comments (#) earlier today.
So, the log didn’t accurately point to the relevant script/automation, but I’ve found that’s usually the case.
Frustrating when it tells you there’s an error but can’t pinpoint it.