Skip to content

Commit fab9b30

Browse files
authored
Minimizing of the configuration sample (home-assistant#1034)
1 parent a175486 commit fab9b30

29 files changed

+146
-158
lines changed

source/_components/notify.aws_lambda.markdown

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@ To use this notification platform in your installation, add the following to you
2121
```yaml
2222
# Example configuration.yaml entry
2323
notify:
24-
platform: aws_lambda
25-
name: NOTIFIER_NAME
26-
aws_access_key_id: AWS_ACCESS_KEY_ID
27-
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
28-
profile_name: AWS_PROFILE
29-
region_name: 'us-east-1'
30-
context:
31-
...
24+
- name: NOTIFIER_NAME
25+
platform: aws_lambda
26+
aws_access_key_id: AWS_ACCESS_KEY_ID
27+
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
28+
region_name: 'us-east-1'
3229
```
3330
3431
Configuration variables:

source/_components/notify.aws_sns.markdown

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ To use this notification platform in your installation, add the following to you
1919
```yaml
2020
# Example configuration.yaml entry
2121
notify:
22-
platform: aws_sns
23-
name: NOTIFIER_NAME
24-
aws_access_key_id: AWS_ACCESS_KEY_ID
25-
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
26-
profile_name: AWS_PROFILE
27-
region_name: 'us-east-1'
22+
- name: NOTIFIER_NAME
23+
platform: aws_sns
24+
aws_access_key_id: AWS_ACCESS_KEY_ID
25+
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
26+
region_name: 'us-east-1'
2827
```
2928
3029
Configuration variables:

source/_components/notify.aws_sqs.markdown

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ To use this notification platform in your installation, add the following to you
1919
```yaml
2020
# Example configuration.yaml entry
2121
notify:
22-
platform: aws_sqs
23-
name: NOTIFIER_NAME
24-
aws_access_key_id: AWS_ACCESS_KEY_ID
25-
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
26-
profile_name: AWS_PROFILE
27-
region_name: 'us-east-1'
22+
- name: NOTIFIER_NAME
23+
platform: aws_sqs
24+
aws_access_key_id: AWS_ACCESS_KEY_ID
25+
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
26+
region_name: 'us-east-1'
2827
```
2928
3029
Configuration variables:

source/_components/notify.command_line.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ To enable those notifications in your installation, add the following to your `c
1919
```yaml
2020
# Example configuration.yaml entry
2121
notify:
22-
name: NOTIFIER_NAME
23-
platform: command_line
24-
command: "espeak -vmb/mb-us1"
22+
- name: NOTIFIER_NAME
23+
platform: command_line
24+
command: "espeak -vmb/mb-us1"
2525
```
2626
2727
Configuration variables:

source/_components/notify.ecobee.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ To use this notification platform in your installation, add the following to you
1919
```yaml
2020
# Example configuration.yaml entry
2121
notify:
22-
name: NOTIFIER_NAME
23-
platform: ecobee
22+
- name: NOTIFIER_NAME
23+
platform: ecobee
2424
```
2525
2626
Configuration variables:

source/_components/notify.file.markdown

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ To enable file notifications in your installation, add the following to your `co
2020
```yaml
2121
# Example configuration.yaml entry
2222
notify:
23-
name: NOTIFIER_NAME
24-
platform: file
25-
filename: FILENAME
26-
timestamp: true or false
23+
- name: NOTIFIER_NAME
24+
platform: file
25+
filename: FILENAME
2726
```
2827
2928
Configuration variables:
3029
3130
- **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`.
3231
- **filename** (*Required*): Name of the file to use. The file will be created if it doesn't exist and saved in your `config/` folder.
33-
- **timestamp** (*Optional*): Setting `timestamp` to True adds a timestamp to every entry.
32+
- **timestamp** (*Optional*): Setting `timestamp` to `True` adds a timestamp to every entry.
3433

3534
To use notifications, please see the [getting started with automation page](/getting-started/automation/).

source/_components/notify.free_mobile.markdown

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ To enable SMS notifications in your installation, add the following to your `con
3131
```yaml
3232
# Example configuration.yaml entry
3333
notify:
34-
platform: free_mobile
35-
username: YOUR_ACCOUNT_ID
36-
access_token: TOKEN
34+
- name: NOTIFIER_NAME
35+
platform: free_mobile
36+
username: YOUR_ACCOUNT_ID
37+
access_token: TOKEN
3738
```
3839
3940
Configuration variables:

source/_components/notify.gntp.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ To use GNTP notifications, add the following to your `configuration.yaml` file:
2020
```yaml
2121
# Example configuration.yaml entry
2222
notify:
23-
name: NOTIFER_NAME
24-
platform: gntp
23+
- name: NOTIFER_NAME
24+
platform: gntp
2525
```
2626
2727
GNTP will attempt to connect to a local server running on port 23053 if no `hostname` is provided.

source/_components/notify.group.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ To use this notification platform in your installation, add the following to you
1919
```yaml
2020
# Example configuration.yaml entry
2121
notify:
22-
name: MyDevices
23-
platform: group
24-
services:
25-
- service: html5
26-
data:
27-
target: "macbook"
28-
- service: html5_nexus
22+
- name: NOTIFIER_NAME
23+
platform: group
24+
services:
25+
- service: html5
26+
data:
27+
target: "macbook"
28+
- service: html5_nexus
2929
```
3030
3131
Configuration variables:

source/_components/notify.html5.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ To enable this platform, add the following lines to your `configuration.yaml` fi
2020
```yaml
2121
# Example configuration.yaml entry
2222
notify:
23-
name: HTML5
24-
platform: html5
25-
gcm_api_key: 'gcm-sender-key'
26-
gcm_sender_id: 'gcm-sender-id'
23+
- name: NOTIFIER_NAME
24+
platform: html5
25+
gcm_api_key: 'gcm-sender-key'
26+
gcm_sender_id: 'gcm-sender-id'
2727
```
2828
2929
Configuration variables:

0 commit comments

Comments
 (0)