Automation errors

Hi all

I’ve got HA working with my ASUS router and its tracking devices perfectly

I’m trying to make some automation messages when people home and away

I added the following into notify.yaml

- platform: ios
  name: iOSApp
  target: MY KEY HERE

I added the following into the automation.yaml

  trigger:
    platform: state
    entity_id: device_tracker.my-iphone
    from: 'not_home'
    to: 'home'
  action:
    service: notify.iOSApp
    data:
      message: 'Person is now home'

I now get this error message

Invalid config for [automation]: Entity ID device_tracker.my-iphone is an invalid entity id for dictionary value @ data[‘trigger’][0][‘entity_id’]. Got None
Service notify.iOSApp does not match format . for dictionary value @ data[‘action’][0][‘service’]. Got None. (See /config/configuration.yaml, line 100). Please check the docs at https://home-assistant.io/components/automation/

I know that the entity device_tracker.my-iphone is right and its working in UI showing away or home

Also is the service iOSApp wrong does it need to be ios not the alias ?

Thanks in advance

Looks like I need to call notify.ios rather than the name iOSApp

So now just have the error

Invalid config for [automation]: Entity ID device_tracker.my-iphone is an invalid entity id for dictionary value @ data[‘trigger’][0][‘entity_id’]. Got None

The error is saying the entity_id is invalid. Does the entity_id match the states page?

It should be my_iphone, not my-iphone.

Cheers guys

That was the problem and got it all working via pushover and HA IOS app

One question, when I use the push messaging via the HA IOS app I end up with 2 messages each time, is that a bug or fixable ?

When using pushover I get a single message