You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/notify.slack.markdown
+4
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,17 @@ notify:
30
30
platform: slack
31
31
api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
32
32
default_channel: '#general'
33
+
icon: ':robot_face:'
34
+
username: 'Home-Assistant'
33
35
```
34
36
35
37
Configuration variables:
36
38
37
39
- **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`.
38
40
- **api_key** (*Required*): The slack API token to use for sending slack messages.
39
41
- **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/).
40
44
41
45
To use notifications, please see the [getting started with automation page](/getting-started/automation/).
0 commit comments