I have added an automation to notify me when a recycling collection is expected the following day, but I am getting an error which I don’t understand.
This is my automation:
- alias: Grey Recycling Notification
id: grey_recycling_notification
mode: single
trigger:
- platform: template
value_template: "{{ '1' in state_attr('sensor.grey' ,'days') }}"
condition: time
at: '16:00:00'
action:
- service: notify.mobile_app_martins_iphone
data:
message: "Recycling Reminder! GREY bin"
This is the error in logs when I check configuration:
- Invalid config for [automation]: Expected a dictionary @ data[‘condition’][0]. Got None extra keys not allowed @ data[‘value_template’]. Got None. (See /config/configuration.yaml, line 9).
- Invalid config for [automation]: Expected a dictionary @ data[‘condition’][0]. Got None extra keys not allowed @ data[‘at’]. Got None. (See /config/configuration.yaml, line 9).
Can anyone please advise on where my automation has gone wrong?