When I am sending telemetry to devices in thingsboard using MQTT the alarms I have set up (using this guide https://thingsboard.io/docs/user-guide/rule-engine-2-0/tutorials/create-inactivity-alarm/) doesn't work. It does work to begin with when using POST requests, but it stops working as soon as I use MQTT for a device. The device seems to always be active as indicated by the server attribute "active".
The setup
- send inactivity to alarm trigger (rule chain)
- send activity to alarm clear (rule chain)
- save server attributes (rule chain)
- set inactivityTimeout server attribute to a value (60000ms in my case) for a device
Anyone have an idea of what I am doing wrong?
Maybe mqtt is keeping the heartbeat alive and keeping the device always active.