thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.75k stars 845 forks source link

[BUG] Device type (profile) is not applied #1547

Open devaskim opened 1 month ago

devaskim commented 1 month ago

Describe the bug

This issue is reproduced both if profile (type) is previously created on a server or not. On previous versions on gateway/server new profile is automatically created.

While debugging with PyCharm debugger, I see that device type is properly resolved by JSON converter and data packet is passed to gateway core.

JSON Converter configuration:

    {
      "topicFilter": "ESA/Toilet/Mandosi/Boys/D1",
      "converter": {
        "type": "json",
        "deviceNameTopicExpression": "(?<=ESA/Toilet/)(.*?)/(.*?)/D\\d{1,}",
        "deviceTypeTopicExpression": "Toilets Controller",
        "sendDataOnlyOnChange": false,
        "timeout": 60000,
        "attributes": [],
        "timeseries": "*"
      }
    }

Скриншот 29-09-2024 134943

Connector name (If bug in the some connector): MQTT

Versions (please complete the following information):

khoahoangqenergy commented 1 month ago

We are facing the same issue, device profile is not getting created.