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’)