Skip to content

Commit b830c19

Browse files
authored
Fix syntax and clarify some things
1 parent 50e6ce4 commit b830c19

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

source/_docs/ecosystem/ios/notifications.markdown

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@ redirect_from: /ecosystem/ios/notifications/
1313
The `ios` notify platform enables sending push notifications to the Home Assistant iOS app.
1414

1515
The 'ios' component will automatically load the notify service.
16-
The service component can be called using `service: notify.ios.<your_device_name>`.
17-
Your device name can be found in the `ios.conf` file in the homeassistant configuration folder:
18-
`{"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": ""}}}}
16+
The service component can be called using `service: notify.ios_<your_device_ID>`.
17+
Your device ID can be found in the `ios.conf` file in your configuration folder. The file is compressed JSON. You can view it easier by copying the file contents and pasting them into [JSONLint](http://jsonlint.com).
1918

20-
21-
Configuration variables:
22-
- **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`.
23-
- **message** (*Required*): Your message to show up in the notification
24-
25-
Example Automation:
26-
```yaml
27-
- service: notify.ios.<your_device_name>
28-
data_template:
29-
message: "This is the message"
19+
In this example, the device ID is `robbiet480_7plus`, so the notify service to use is `notify.ios_robbiet480_7plus`:
20+
```json
21+
{"devices":{"robbiet480_7plus":{"app":{"bundleIdentifer":"io.robbie.HomeAssistant","versionNumber":1,"buildNumber":53},"pushSounds":[],"permissions":["location"],"deviceId":"robbiet480_7plus","device":{"type":"iPhone 7 Plus","systemName":"iOS","systemVersion":"10.3","permanentID":"AB9F02FE-6AC6-47B8-ADEB-5DD87B489156","localizedModel":"iPhone","name":"Robbie's iPhone 7 Plus","model":"iPhone"},"battery":{"state":"Full","level":100},"pushToken":"SECRET","pushId":"SECRET"}}}
3022
```
23+
24+
You can find more information in the [Basic Notifications](https://home-assistant.io/docs/ecosystem/ios/notifications/basic/) documentation.

0 commit comments

Comments
 (0)