Skip to content

Comments

feat: enhance device registration and health management on ThingsBoard flows#65

Merged
rina23q merged 8 commits intothin-edge:mainfrom
rina23q:thingsboard/add-heart-beat-to-mea-flow
Feb 24, 2026
Merged

feat: enhance device registration and health management on ThingsBoard flows#65
rina23q merged 8 commits intothin-edge:mainfrom
rina23q:thingsboard/add-heart-beat-to-mea-flow

Conversation

@rina23q
Copy link
Member

@rina23q rina23q commented Feb 10, 2026

This PR updates many things. Highlights:

Enhance registration

  • thingsboard-registration flow: responsible for registering a new child device and service.
    • If a message for unregistered entity is coming, the flow puts it into the pending messages store.
    • When registration, adds entityId/deviceName, deviceName/entityId pairs to KV stores.
    • Other flows (thingsboard, thingsboard-rpc) can query the entityId-deviceName 1:1 mapping from context.mapper KV store.
    • The TB device name can be configurable by name in the entity registration payload. Also, the device profile can be configurable by type in the entity registration payload.
    {
       "@parent": "device/main//", <- reserved by thin-edge
       "@type": "child-device", <- reserved by thin-edge
       "name": "child device 0", <- will be used as ThingsBoard device name
       "type": "child-profile" <- will be used as ThingsBoard device profile
    }

Health management

  • thingsboard flow: responsible for the health status management
    • Converts status/health message to TB telemetry
    • Periodically publishes a heartbeat message to the main device, and keeping updates the statuses of the entities.

I'm still not sure if having 3 flows for ThingsBoard is better than having 3 steps in one flow. What is the best practice?

Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
@rina23q rina23q force-pushed the thingsboard/add-heart-beat-to-mea-flow branch 4 times, most recently from 8f13172 to 07e720f Compare February 13, 2026 16:46
@rina23q rina23q changed the title WIP: Add features to ThingsBoard MEA flow WIP: Enhance device registration and health management on ThingsBoard flows Feb 13, 2026
Handles device registration conversion and buffers messages for
unregistered devices until registration completes.

Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
@rina23q rina23q force-pushed the thingsboard/add-heart-beat-to-mea-flow branch from 7fc4c6f to 0729d18 Compare February 19, 2026 15:55
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
@rina23q rina23q force-pushed the thingsboard/add-heart-beat-to-mea-flow branch from 0729d18 to df210d3 Compare February 19, 2026 16:00
@rina23q rina23q marked this pull request as ready for review February 19, 2026 16:02
@rina23q rina23q changed the title WIP: Enhance device registration and health management on ThingsBoard flows feat: enhance device registration and health management on ThingsBoard flows Feb 24, 2026
@rina23q rina23q merged commit ea8adf4 into thin-edge:main Feb 24, 2026
3 checks passed
@rina23q rina23q deleted the thingsboard/add-heart-beat-to-mea-flow branch February 24, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant