From 2de5802a46435ae2d76de922c3ed3789164d8a5b Mon Sep 17 00:00:00 2001 From: Finbarr Brady Date: Tue, 12 Mar 2019 12:21:56 +0000 Subject: [PATCH] Rebrand Cisco Webex Teams --- .../notify.cisco_webex_teams.markdown | 146 ++++++++++++++++++ source/_components/notify.ciscospark.markdown | 51 ------ .../cisco_webex_teams/rich_formatting.png | Bin 0 -> 476555 bytes .../supported_brands/cisco_webex_teams.png | Bin 0 -> 132860 bytes source/images/supported_brands/ciscospark.png | Bin 2765 -> 0 bytes 5 files changed, 146 insertions(+), 51 deletions(-) create mode 100644 source/_components/notify.cisco_webex_teams.markdown delete mode 100644 source/_components/notify.ciscospark.markdown create mode 100644 source/images/components/cisco_webex_teams/rich_formatting.png create mode 100644 source/images/supported_brands/cisco_webex_teams.png delete mode 100644 source/images/supported_brands/ciscospark.png diff --git a/source/_components/notify.cisco_webex_teams.markdown b/source/_components/notify.cisco_webex_teams.markdown new file mode 100644 index 00000000000..6233859e33c --- /dev/null +++ b/source/_components/notify.cisco_webex_teams.markdown @@ -0,0 +1,146 @@ +--- +layout: page +title: "Cisco Webex Teams" +description: "Instructions on how to add Cisco Webex Teams notifications to Home Assistant." +date: 2017-02-20 15:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: cisco_webex_teams.png +ha_category: Notifications +ha_release: "0.40" +--- + +The `cisco_webex_teams` notification platform allows you to deliver rich notifications from Home Assistant to [Cisco Webex Teams](https://www.webex.com/team-collaboration.html). + +To use this notification platform you will simply need an app (bot) token. To obtain a token visit [Cisco Webex for Developers](https://developer.webex.com/). Detailed instructions can be found in the section titled **Creating a Webex Teams Bot** on the [Webex Teams bot documentation](https://developer.webex.com/docs/bots). + +You also need to specify the `Cisco Webex Teams` `roomid`. The `roomid` can also be found at [Cisco Webex for Developers](https://developer.webex.com/). Just look in the Documentation under Rooms. **Note:** you must add the bot as a participant to the room specified here, in order for the bot to have permission to post in that room. + +To enable this platform in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +notify: + - name: NOTIFIER_NAME + platform: cisco_webex_teams + token: YOUR_BOT_TOKEN + roomid: CISCO_WEBEX_TEAMS_ROOMID +``` + +## {% linkable_title Rich Text Formatting %} + +Webex Teams clients can render rich text via a whitelisted set of html tags. + +For example, you could configure automations to display details in an easy to read fashion like so: + +

+ +Rich text as displayed in the macOS client. +

+ +Here are the automations for the above screenshot: + +```yaml + +# Rich Text Example 1. +# Show a one line message with a red banner +- alias: "Notify On Build Failing" + trigger: + - platform: webhook + webhook_id: build_failed + action: + service: notify.cisco_webex_teams_notify + data: + message: "
Build 0.89.5 compile failed." + + +# Rich Text Example 2. +# Show a title and multi-line message with a yellow banner, +# with lists, a person mention and a link +- alias: "Notify On Build Unstable" + trigger: + - platform: webhook + webhook_id: build_unstable + action: + service: notify.cisco_webex_teams_notify + data: + title: "Build 0.89.6 is unstable." + message: "
Version 0.89.6 failed verifications. + +
    +
  • test_osx +
  • test_win_lint + +
  • ... and 4 more. +
+

<@personEmail:sparkbotjeeves@sparkbot.io>

+

View Test Report

+ " + +# Rich Text Example 3. +# Show a title and multi-line message with a blue banner, +# with lists, a person mention and a link +- alias: "Notify On Build Passing" + trigger: + - platform: webhook + webhook_id: build_passed + action: + service: notify.cisco_webex_teams_notify + data: + title: "✅ Version 0.89.7 passed all tests and deployed to production!" + message: "
Version 0.89.7 passed all verifications. + +
    +
  • test_cov +
  • test_osx +
  • test_win +
  • test_linux +
  • ... and 45 more. +
+ " +``` + +The following is a list of the allowed html tags and attributes: + +`<@personEmail:email@examplecompany.com>` +`` +`` +`` +`` +`
`
+``
+`
` +`

` +`