Twilio send SMS

I trying to send an SMS. When I place this in automation.yaml, the HA won’t load

  • action:
    • data:
      service: notify.twilio_sms
      message: ‘Hello World’
      target:
      - + 4540901111
      alias: “Send SMS”
      trigger:
      • event: sunrise
        platform: sun

I guess I’ve made a simple mistake, when trying to implement the sample
automation:

  • alias: The sun has set
    trigger:
    platform: sun
    event: sunset
    action:
    service: notify.twilio_sms
    data:
    message: ‘The sun has set’
    target:
    - +14151234567
    - +15105555555

Thanks in advance

Torben