Help on Automation

Hi All,
i’d like to run a script with an automation at a defined time.
Following the piece on configuration.yaml :

automation:

  • alias: Giorgio Abat Jour Off
    trigger:

    • platform: time
    • at: ‘17:40:00’

    action:

    • service: script.gio_abat_off

This was built coping from community, but it doesn’t works.
Configuration checking says : Invalid config for [automation]: expected dict for dictionary value @ data[‘action’][1][‘data’]. Got None required key not provided @ data[‘trigger’][1][‘platform’]. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 84).

Can please you help me to understand what is wrong ?
Thank you.
Ciao.
Giorgio

action:
   - service: script.turn_on
     entity_id: script.gio_abat_off

This should work. Please read the documentation on automations :slight_smile:

Thanks. I will try.
Thank you.