I'm trying to set up an IoT scenario with Azure. For demo purpose I've used this temperature monitoring scenario: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-monitoring-notifications-with-azure-logic-apps
- An IoT device is sending temperature data to IoT Hub
- IoT Hub is routing messages with a temperature > 30 to a service bus
- A logic app is reading that service bus and sends a warning e-mail
Now I have the problem that the logic app sends an e-mail for every message that exceeds the temperature limit (every message that is in my service bus). So my inbox will be spammed as soon as I heat up my IoT device.
In reality I would only want to receive one e-mail if my IoT Device overheats, then wait a certain time. How would I handle that in my logic app?