Skip to content

Commit 2f71eb6

Browse files
Khabifabaff
authored andcommitted
Updates for Slack Notification changes (home-assistant#923)
* Updates for Slack Notification changes * Updates for Slack Notification changes
1 parent 09a8b6d commit 2f71eb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/_components/notify.slack.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ notify:
3030
platform: slack
3131
api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
3232
default_channel: '#general'
33+
icon: ':robot_face:'
34+
username: 'Home-Assistant'
3335
```
3436
3537
Configuration variables:
3638
3739
- **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`.
3840
- **api_key** (*Required*): The slack API token to use for sending slack messages.
3941
- **default_channel** (*Required*): The default channel to post to if no channel is explicitly specified when sending the notification message.
42+
- **username** (*Optional*): Setting username will allow homeassistant to post to slack using the username specified. By default not setting this will post to slack using the user account or botname that you generated the api_key as.
43+
- **icon** (*Optional*): Use one of the slack emoji's as an Icon for the supplied username. Slack uses the standard emoji sets used [here](http://www.webpagefx.com/tools/emoji-cheat-sheet/).
4044

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

0 commit comments

Comments
 (0)