No longer get push notifications any more


#1

Here is my updated automation but notify_ios doesn’t work.

- alias: Notify_iOS_On
  trigger:
    platform: state
    entity_id: light.front_door_outside_light
    to: 'on'
  #condition:
    #- condition: state
      #entity_id: device_tracker.iphone
      #state: home
  action:    
    service: notify.ios_iphone
    data:
      message: water has been detected in the garage
      data:
        push:
          badge: 0
          sound: "US-EN-Alexa-Water-Detected-In-Garage.wav"

- alias: Notify_iOS_Off
  trigger:
    platform: state
    entity_id: light.front_door_outside_light
    to: 'off'
  #condition:
    #- condition: state
      #entity_id: device_tracker.iphone
      #state: not_home
  action:
    service: notify.ios_iphone
    data:
      message: water has been detected in the kichen
      data:
        push:
          badge: 0
          sound: "US-EN-Alexa-Water-Detected-In-Kitchen.wav"

Configuration.yaml entry

# Enable ios push notifications
ios:

Here is the error I’m getting in my .log file.
2019-03-02 07:46:03 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.notify_ios_on. Service not found for call_service at pos 1: (ServiceNotFound(…), ‘Service notify.ios_iphone not found’)
2019-03-02 07:46:06 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.notify_ios_off. Service not found for call_service at pos 1: (ServiceNotFound(…), ‘Service notify.ios_iphone not found’)


#2

I forgot to mention that I do not have a ios.conf file in my config folder.


#3

Maybe the name has changed?
Look in Dev Tools/Services.


#4

You mean Dve Tools/States?
Yes… The names are the same.
Thx


#5

No, i mean Dev Tools/Services.
Just look for the notify… services.


#6

This has been happening a lot with the iOS app recently. Simply going the the app notification settings and updating push settings corrects it.

However this only used to be required when changing or adding an actionable notification. Now it seems to be happening after HA restarts or automation reloads.


#7

Thanks for your reply…
Only one of our phones was showing up.
After powering down the pi both iphones are showing up.Only one of the phones in the HA phone app has check marks three loaded options but the other has “X’s” no mater what I do.


#8

Update!! After powering down my phone I now have check marks.
But when I call either service I get a “failed to call service notify/ios_name”.
Same message for both phones…


#9

okay… figured out the issue with not been able to call the service… Needed to add JSON {“message”: “Hello”}. Still not able to do with an automation…