Automation Config Failing

HI All,

I have the below config trying to trigger a push bullet notification on a sensor change. For some reason it seems to always show an error on restart.

Any idea what I am doing wrong?

Error Message:

Invalid config

The following components and platforms could not be set up:

** automation**

Please check your config.

This is in my automation.yaml file.

####################################################
#                                                  #
#              System Automations                  #
#                                                  #
####################################################

####################################################
#        Ring Front Door Motion Automation         #
####################################################

alias: "Front door motion sensor"
trigger: 
  platform: state
  to: 'off'
  entity_id: binary_sensor.sensor
action: 
  service: notify.mobile-notification
  data:
    title: 'Hello there.'
    message: 'Testing 12345'

What does the log say that should point to a line number

I can’t find any reference to any error in the logs. That’s why I am stumpted

Since the error is about setting up automation I expect a problem in you config.yaml. Can you post the part of the config you link the automation.yaml?

I found the issues.

Even though I set the notify service name like this

name: mobile-notification

The actual service name in the services was

notify.mobilenotification

Wierd, but it works now.