[Question] Create asset inactivity alarm
Component
- Generic
Description I have a system where each device is connected to many sensors which monitors the temperature of different assets. So, I propagate the telemetry from the device to each related asset. That is fine. I also set up an inactivity alarm for the devices (following this). The device inactivity alarm triggers appropriately when a device becomes inactive.
Now, I am looking to establish an alarm for asset inactivity. Specifically, I want to trigger an alarm if a sensor becomes disconnected from its associated device, resulting in no data transmission to the asset for more than 15 minutes. In other words, I want to detect when the asset telemetry is not updated due to a sensor being disconnected. Similar to what is done with devices. How can I implement this functionality?
Environment
- OS: Ubuntu
- ThingsBoard: version 3.6.2
- Browser: CHrome
Hi @gcorthey , you may propagate an inactivity alarm from the device to the asset level via rule node or in the device profile alarms configuration. This is the only "easy" option I see. This option should work fine if you have a 1:1 relationship between your asset and device.
Hi @ashvayka Thanks for your answer. This is not an option for us, unfortunatelly. I'm already using that to trigger a device inactivity alarm but, as I monitor 3 different assets with one device (3 sensors conected to it) I'm interested in the telemetry status of the asset and I need to monitor that to trigger an alarm in case of sensor not sending data (inactive asset).
How can I do it from the rule chain? I could set a generator node to generate a Date.now() every 30 seconds or so but I don´t know how can I then check the ts of the latest telemetry of each asset. Appreciate your help!
Hello, any solution for this? Thanks!