akenza.io
WebsiteAPI DocumentationWhat's newLogin
  • Overview
  • Getting Started
    • Connect a Device
  • Changelog
  • General
    • Applications
    • Organization context
    • Workspace Context
    • Users
      • User Roles
  • Device Management
    • Managing an organization
      • API keys
      • Users (Organization)
        • Add & removing users from your organization
    • Managing a workspace
      • General Settings
        • Device Lifecycle Reports
        • Workspace properties
        • Occupancy settings
        • Device Setup Assistant
      • Custom fields
      • Tags
      • Users (Workspace)
    • Devices
      • Device
      • Device Simulator
      • Bulk actions
      • Bulk import CSV templates
    • Rules
      • Input
      • Logic blocks
        • Comparison
        • Custom Logic
          • Logic Block Scripting
      • Timed Rules
      • Rule Actions
        • Downlink
    • Data Flows
      • Device Connectors
        • Device Security
          • Using Device Credentials
            • Creating Public/Private Key Pairs
            • Using JSON Web Tokens (JWTs)
              • Python
              • Java
        • HTTP
        • MQTT
        • CoAP
        • LoRaWAN
          • Connectivity Management
          • Swisscom LoRaWAN
          • The Things Network
          • Loriot
          • Actility’s ThingPark Wireless
          • EWZ
          • Cibicom
          • Helium
          • ChirpStack
        • NB-IoT
        • mioty
        • Disruptive Technologies
        • VergeSense
        • Spaceti
        • Haltian
      • Device Types
        • Custom Device Types
          • Uplink
          • Downlink
          • Scripting
        • Library
      • Output Connectors
        • Databases
          • akenza DB
          • InfluxDB
          • SQL Databases
        • Streaming
          • Webhook
          • Azure IoT Hub
          • AWS Kinesis
          • Google Cloud Pub/Sub
          • Apache Kafka
        • Notifications
          • E-Mail
          • SMS
          • Microsoft Teams
          • Slack
    • Custom Components
    • Integrations
    • Reference
      • REST API
        • Filtering
        • Querying Device Data
      • WebSocket API
      • Scripting
        • Stateful Operations
        • Utility Functions
      • Payload Templating
  • Reference
  • Dashboard Builder
    • Managing Dashboards
      • Embedding dashboards
    • Components
      • Map
      • Floorplan
  • Device Setup Assistant
    • Device Setup Assistant - Overview
  • Tutorials
    • BI Tools
      • Grafana Data Source Plugin
      • How to build a dashboard with Retool
      • How to analyze data with AWS QuickSight
    • Devices
      • How to integrate the XDK device from Legic via MQTT on akenza
      • How to connect the Disruptive Technologies-cloud on akenza
      • How to send Downlinks to the Kuando Busylight device
      • How to integrate an Arduino device via MQTT on akenza
      • Integrate a MClimate Vicki LoRaWAN Radiator Thermostat on akenza
      • How to integrate an ERS Elsys device with Loriot on akenza
      • How to integrate the IAM Decentlab device with TTN on akenza
      • How to integrate the Seeed SenseCAP T1000 tracker on akenza
      • How to integrate a Swisscom Multisense device on akenza
    • Notifications
      • How to send SMS notifications
      • How to send notifications to Slack
      • How to send notifications to Microsoft Teams
    • Enterprise solutions
      • How to send data to Azure IoT Hub
      • How to send data to the Google Cloud Pub/Sub
      • How to send data to InfluxDB
      • How to send data to AWS Kinesis
      • How to send data to Azure Event Hubs with Apache Kafka
    • IoT Starter Kits
      • How to integrate the IAQ Kit with Actility on akenza
      • How to integrate the CoWork Kit with Actility on akenza
      • How to integrate the Smart Building Kit with Actility on akenza
      • How to integrate the Pepperl+Fuchs Kit with Actility on akenza
  • Support Center
    • FAQ
    • Status Page
    • Service Desk
    • Request a feature
  • Deprecated
    • SIM-Cards
    • Everynet
    • Sigfox
    • How to connect the Yanzi Lifecycle cloud on akenza
Powered by GitBook
On this page
  • 1. Create a rule
  • 2. Create a webhook connector on your Slack channel
  • 3. Test your notification service

Was this helpful?

  1. Tutorials
  2. Notifications

How to send notifications to Slack

In this tutorial you will learn how to send notifications to Slack

PreviousHow to send SMS notificationsNextHow to send notifications to Microsoft Teams

Last updated 3 years ago

Was this helpful?

In this tutorial, you will learn how to set up a rule to send notifications to Slack. We make use of the , to test your rule set up right away. So just make sure, that you have your HTTP device created and available on your Asset Inventory.

Find out more about how to use the device simulator .

The following steps are explained in more detail:

1. Create a rule

Select as a Rule Input your created HTTP device. Add a logic connector to your rule by selecting the Logic Block Comparison. Connect the dots from your device to the comparison block. All available data sources from your device will appear on the dropdown of Data source 1. In this example, we have the following available data sources from the device simulator:

  • Occupancy

  • Temperature

  • CO2

We choose Temperature as a data source, as we want to send a notification to Slack if a temperature threshold is reached.

In Condition field 1 of your comparison block, you are free to choose the individual condition of your rule. In this example, we want to trigger an alert, if the temperature is smaller than 19 degrees.

Proceed now with adding the action connector Slack to your rule.

All Slack connectors which were already created in your organization are displayed as available connectors. For now, we create a new one. Choose New Slack connector and type in your specific information:

  • Connector name (free text)

  • Message (free text & optional payload data)

Optional: Add payload data to your text by using such a syntax: {{myPropertyName}}. By adding payload data to your text, you will get informed about the actual measured value of your device. Use also the preview function, to preview your text content before you set it live.

Once your connector is filled out, select Save connector. Make sure, that you connect your connector to the comparison block. Proceed by selecting Save Rule and choose an appropriate name for your rule.

Your notification rule is now saved and displayed on the Rule Overview Page.

2. Create a webhook connector on your Slack channel

Following steps are required to create your incoming webhook connector on your Slack channel:

  1. Go to the Slack channel where you want to add the webhook and open Channel Details

  2. Go to Integrations and add a new App

  3. Search and select Incoming Webhooks

  4. Proceed with the Webhook by selecting Configuration and further Add to Slack

  5. Select the channel name where the notification text is going to be sent to

  6. The slack app directory presents a webhook URL that maps to the channel. Copy and save the webhook URL select Save.

  7. Paste the Webhook URL on the Slack Output Connector on akenza in the field Notification URL and select Save connector.

3. Test your notification service

To test your notification service, you now can send test data from the device simulator to your HTTP device. By selecting a temperature value smaller than the set 19 degrees on your rule, you will receive a notification on your Slack channel.

To send test data from the device simulator to your HTTP device, you need to copy the Uplink URL from your HTTP device. Go to Asset Inventory, select your HTTP device, and open API-Configuration.

In this example, we choose a temperature value of 18 degrees that the rule gets triggered. Proceed by selecting Send Message. Check your Slack channel with the incoming notification.

Congratulations, you have successfully created a Slack notification service on akenza.

Notification URL (Webhook URL of your Slack connector) See chapter 2,

Learn more about , how to create your incoming webhook connector on Slack.

Copy the Uplink URL and insert this URL on the Uplink URL field on the .

here
device simulator
Create a rule
Create a webhook connector on your Slack channel
Test your notification service
how to create a webhook connector on your Slack channel
device simulator
here
Slack template
Apps on Slack
Slack app directory
API-configuration
Slack channel notification