Update notifications.markdown

This commit is contained in:
Nikolas Beutler 2017-04-16 23:50:31 +02:00 committed by GitHub
parent 5e59bbeccb
commit 50e6ce4f52

View File

@ -12,4 +12,19 @@ redirect_from: /ecosystem/ios/notifications/
The `ios` notify platform enables sending push notifications to the Home Assistant iOS app.
The 'ios' component will automatically load the notify service. No extra configuration is needed or supported.
The 'ios' component will automatically load the notify service.
The service component can be called using `service: notify.ios.<your_device_name>`.
Your device name can be found in the `ios.conf` file in the homeassistant configuration folder:
`{"devices": {"iphone": {"deviceId": "iphone", "pushToken": "", "permissions": ["location"], "battery": {"state": "Unplugged", "level": 100}, "pushSounds": [], "pushId": "", "app": {"buildNumber": 1, "bundleIdentifer": "io.robbie.HomeAssistant"}, "device": {"systemName": "iOS", "name": "iPhone", "systemVersion": "10.2.1", "localizedModel": "iPhone", "type": "iPhone 7", "model": "iPhone", "permanentID": ""}}}}
Configuration variables:
- **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`.
- **message** (*Required*): Your message to show up in the notification
Example Automation:
```yaml
- service: notify.ios.<your_device_name>
data_template:
message: "This is the message"
```