Data presented and visualised in the ALSO IoT Ground are graphically awesome, but you can improve the solution by sending notifications directly to your Teams channel!
Introduction
Create a new webhook integration in MS Teams


- If you are already a member of the Team, you'll need dedicated channel for incoming messages,
- Go to that channel and click on the three dots "•••" in the upper right > click on Connectors,
- Write "webhook" in the search bar and click on the Configure next to the "Incoming Webhook" result,
- Write the Channel name, Description (if wanted) and Privacy settings for the incoming webhook and click on the Create button,
- Once you've created the Webhook, you'll get the URL to use it as a destination point when sending the messages to this channel. Copy-paste this URL as you'll need it afterwards,
- The setup for webhooks in MS Teams is done. Now go to the ALSO IoT Platform.
Create a Rule in ALSO IoT Ground

- Click on RULES sidebar on the left side in your Ground,
- Click on the + NEW RULE button on the top of the page,
- Drag one of your Devices into the TRIGGERS block and select the asset (one or more) you want to monitor and do actions with,
- Under the "COMPONENTS" , drag the "Webhook" block to the ACTIONS block
- Next to the "POST" section, paste the Incoming Webhook URL given in the previous configuration process within MS Teams,
- In the "BODY" section, paste the code similar to the one below.
{ "@context": "https://schema.org/extensions",
"@type": "MessageCard",
"themeColor": "c6002b",
"title": "CO2 level warning!",
"text": "CO2 concentration is TOO HIGH {insert the asset value herein}!",
} - You have to add the actual state of the CO2 sensor after the "text:" line and under the following quotes mark by clicking on the "+" button within the BODY section and then choosing the related asset. The code will look similar to the one below
Use-case: CO2 monitoring
The image below shows the use-case of the Environmental device within the Workplace+ Solution Accelerator. Environmental device is an advanced indoor climate sensor that measures CO2 levels, temperature, humidity, light intensity, and detects motion.
Using our Rule engine, integration with MS teams made the meeting room monitoring far easier when it comes to notify the responsible staff to take actions upon received data (e.g. to open the window or turn on the air conditioning if the workplace humidity is too low). Also, if using the MS Teams mobile app, these notifications will be immediately received in dedicated channel and thus the meeting room (or any other area) can be prepared better for the incoming meetings.
Get more info about the Workplace+ Solution Accelerator on our official page
