Share via

how to configure a rule to send an email for boolean telemtry change

Avigdor 40 Reputation points
2025-02-25T08:54:03.03+00:00

Hello,

I want to configure a rule to send an email when telemetry value changes, the telemetry property schema is boolean.

when using a condition with integer value the rule works fine, but for the boolean i can't trigger the rule.

when a rule is configured will it trigger every time a telemetry message arrives with the correct conditions or only once after it enters the condition?User's image

Azure IoT Central
Azure IoT Central

An Azure hosted internet of things (IoT) application platform.


Answer accepted by question author

Sander van de Velde | MVP 37,066 Reputation points MVP
2025-02-26T08:56:26.64+00:00

Hello Avigdor,

welcome to this moderated Azure community forum.

I noticed you are interested in sending an email on changes of data.

I created something like that using Azure Stream Analytics in Azure. Check the blog post.

This is not part of Azure IoT Central.

Azure IoT Central is capable of forwarding incoming messages to Azure resources:

User's image

Via an eventhub, you can forward data to this stream analytics job.

As an alternative, you can also look at using Azure Data Explorer and use Azure monitoring to raise alerts based on Azure Data Explorer queries.

So you need to extend your Azure IoT Central solution to get to this data.


If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Dominic 1,706 Reputation points Microsoft Employee
    2025-02-25T11:00:09.1633333+00:00

    VQ0EGEsdzh

    I have a rule with a single condition that checks if a Boolean telemetry value is true. This rule triggers every time the telemetry value is true - this is the standard behavior for rules.

    You may be able to use the time aggregation - with Boolean values you can count how many times the value is true within a specified time window. However, I think you need to set the aggregate count value in a cloud property on the device. In the screenshot, "Threshold" is a cloud property:

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.