Chirpstack integration

Hello,

I am currently trying to integrate ChirpStack with OpenRemote, but I have not been able to get device discovery working correctly.

According to the documentation, I have added the following tag to my ChirpStack devices:

openremote-asset-type = ThingAsset

However, when uplink messages are received, the devices are not automatically created in OpenRemote.

Interestingly, if I use a non-existent asset type, for example:

openremote-asset-type = Hello

OpenRemote does attempt to discover the device and reports an error indicating that the asset type “Hello” is unknown. This suggests that OpenRemote is receiving and processing the discovery information, but it does not seem to recognize or create devices when using the valid asset type ThingAsset.

Below is an example of the MQTT message being published by ChirpStack:

application/37c6ff4f-2029-4d84-955e-9c6b0e3f1887/device/a7a76d8a6cb1e547/event/up

JSON

{

“deduplicationId”: “299609b9-1f91-4c50-85db-66216b0275c8”,

“time”: “2026-11-24T16:12:35.736152058+00:00”,

“deviceInfo”: {

“tenantId”: “d0e11c7b-ea98-443f-b5e0-1733e502360a”,

“tenantName”: “Desalinizadora”,

“applicationId”: “37c6ff4f-2029-4d84-955e-9c6b0e3f1887”,

“applicationName”: “7d4f2274-94fe-4faa-819b-95329d400f9f”,

“deviceProfileId”: “4439c776-22dd-41f4-8793-dbc1b8397e45”,

“deviceProfileName”: “6862e7cb-1ea0-48b3-9fe4-453b446cfed7”,

“deviceName”: “a7a76d8a6cb1e547”,

“devEui”: “a7a76d8a6cb1e547”,

“deviceClassEnabled”: “CLASS_A”,

“tags”: {

“openremote-asset-type”: “ThingAsset”

}

},

“devAddr”: “019baf40”,

“adr”: false,

“dr”: 5,

“fCnt”: 68,

“fPort”: 10,

“confirmed”: false,

“data”: “AQIDBA==”,

“object”: {

“bateria”: 2.0,

“temperatura”: 1.0

}

}

I also tried manually creating a ThingAsset with attributes corresponding to the payload:

JSON

{

“bateria”: 2.0,

“temperatura”: 1.0

}

but automatic device discovery still does not occur.

Am I missing any additional configuration required for ChirpStack device discovery? Is there a specific asset type, agent configuration, or expected payload structure required for OpenRemote to create ThingAsset devices automatically?

Any assistance would be greatly appreciated.

Hi @marcoscq,

The issue is that ThingAsset does not contain the mandatory devEUI attribute required by the ChirpStack agent for asset discovery. This explains why an unknown asset type results in a warning, while ThingAsset is silently skipped. We should improve the logging here.

For automatic discovery, you currently need a custom asset type that defines the devEUI attribute and the measurement attributes with the appropriate agent link configuration.

You can find an example in the ChirpStackTestAsset class and more information in the ChirpStack agent documentation.

Also note that device discovery is performed through the ChirpStack gRPC API, rather than triggered by incoming MQTT uplink messages.

There is already an open issue (#2260) for supporting generic Thing assets during The Things Stack discovery. Since both agents share the same underlying LoRaWAN implementation, it would make sense to extend this issue to cover ChirpStack as well.

In the meantime, if you want to avoid creating a custom asset type, you can use a regular MQTT agent and manually configure the agent links on a ThingAsset.

Thank you for your answer, now I understand.

What I don’t see in the documentation is: how do I create a custom asset type with the devEUI parameter.

Best regards