en_lorithai
en_lorithai

Reputation: 1260

Enabling rule chain alarms with MQTT doesn't work in thingsboard

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

enter image description here

enter image description here

Anyone have an idea of what I am doing wrong?

Other sources I have checked:

Same problem, but he fixed it by changing the DEFAULT_STATE_CHECK_INTERVAL in the configuration yml file. My file seems to have reasonable values for this - https://github.com/thingsboard/thingsboard/issues/1334 [![enter image description here][3]][3]

Upvotes: 1

Views: 685

Answers (1)

DSE dashboard
DSE dashboard

Reputation: 1

Maybe mqtt is keeping the heartbeat alive and keeping the device always active.

Upvotes: 0

Related Questions