I get this error on my automation.
I copied the code from a github repository so i don’t know why on my HA it doesn’t work,
Invalid config for [automation]: required key not provided @ data[‘action’]. Got None required key not provided @ data[‘trigger’]. Got None. (See ?, line ?)
I don’t use packages but I know when using includes you can’t have the “automations:” line at the top of your yamls … that comes from the include line in config… it should just start with your first automation.
- alias: Trash Pickup Day Changed
initial_state: true
trigger:
- platform: state
entity_id: input_select.trash_pickup_day
action:
- service: mqtt.publish
data_template:
Is OP using actual packages or just splitting it and calling it a package?
Like I said and the docs show in the examples…remove the first line that says “automation:”