This article applies to all TeamViewer IoT users who monitor their IoT network.
A key part of managing your IoT network is being able to respond as soon as possible to events or anomalies requiring action. TeamViewer IoT allows you to create flexible notifications to easily manage your messages and alerts.
Getting Started with Rules, Notifications, Topics, & Channels
Once you set up your Rules and notification preferences, you will receive alerts when a Rule exceeds its defined threshold (e.g. Temperature exceeding 25ºC).
A Rule is comprised of a Condition (e.g. Device is offline, Temperature > 25ºC) and a Topic. If the Rule condition is met, a message will be published to the specified Topic. A Topic is simply a method to associate one or more Channels to a Rule, where a Channel is a communication method (an email or webhook).
Rules can be created for any of your metrics or devices:
You can create Device Rules, which will monitor your device status, from the Devices page, by clicking the Rule icon next to your Device status.
You can create Metric Rules, which will monitor your sensors/metrics, from the Metrics page, by clicking the Rule icon next to your metric.
Topics can be created from the Notifications -> Topics page.
A Topic is comprised of a name and one or more subscribers, called Channels. Once a Topic is linked to a Rule, notifications will be sent to all Channels linked to the Topic.
Caution: Topics can be created without any Channels and linked to Rules. In this scenario, notifications will not be sent as there are no specified Channels. You can add Channels to your Topics at any time, during or after creation of the Topic.
Channels can be created from the Notifications -> Channels page.
A Channel is comprised of a Type (webhook or email) , an Endpoint (webhook URL or email address), and one or more subscribed Topics. Once a Topicis linked to a Rule, notifications will be sent to all Channelslinked to theTopic.
Webhooks and emails need to be confirmed prior to being activated (ready for use) in order to prevent abuse of non-owned mediums. Once a Channel is created, a confirmation message is sent to the endpoint to allow the owner to confirm it within a 24 hour period.
Note: Channels can be created without any subscribed Topics. You can subscribe to Topics at any time, during or after the creation of the Channel.