{
    "displayName": "Modbus Commander",
    "name": "ModbusCommander",
    "id": "7dda1b6d-c37e-4c9f-a696-1666f9de66e6",
    "paramTypes":[
        {
            "id": "0606c221-b157-4086-885d-7e7b166540a1",
            "name": "updateInterval",
            "displayName": "Update interval",
            "type": "uint",
            "unit": "Seconds",
            "defaultValue": 1
        }
    ],
    "vendors": [
        {
            "name": "nymea",
            "displayName": "nymea",
            "id": "2062d64d-3232-433c-88bc-0d33c0ba2ba6",
            "thingClasses": [
                {
                    "id": "35d3e7dc-1f33-4b8c-baa3-eb10b4f157a7",
                    "name": "modbusTCPClient",
                    "displayName": "Modbus TCP client",
                    "createMethods": ["user", "discovery"],
                    "interfaces": ["connectable"],
                    "settingsTypes": [
                        {
                            "id": "a6aa4eff-205b-426d-ad05-90971a122138",
                            "name": "timeout",
                            "displayName": "Timeout",
                            "type": "uint",
                            "minValue": 10,
                            "defaultValue": 100
                        },
                        {
                            "id": "b27c95c9-7584-46e1-9e62-89890c7bde67",
                            "name": "numberOfRetries",
                            "displayName": "Number of retries",
                            "type": "uint",
                            "defaultValue": 3
                        }
                    ],
                    "paramTypes": [
                        {
                            "id": "2a3fcb23-931b-4ba1-b134-c49b656c76f7",
                            "name": "ipAddress",
                            "displayName": "IP Address",
                            "type": "QString",
                            "defaultValue": "127.0.0.1"
                        },
                        {
                            "id": "bee8b151-815a-4159-9d8a-42b76e99b42c",
                            "name": "port",
                            "displayName": "Port",
                            "type": "uint",
                            "defaultValue": 502
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "725b541a-9e0c-4634-81eb-e415c0b8f012",
                            "name": "connected",
                            "displayName": "Connected",
                            "type": "bool",
                            "defaultValue": false
                        }
                    ]
                },
                {
                    "id": "776df314-6186-4eb5-b824-f0d916f6d9c3",
                    "name": "modbusRTUClient",
                    "displayName": "Modbus RTU client",
                    "createMethods": ["discovery"],
                    "interfaces": ["connectable"],
                    "paramTypes": [
                        {
                            "id": "ed49f7d8-ab18-4c37-9b80-1004b75dcb91",
                            "name": "modbusMasterUuid",
                            "displayName": "Modbus RTU master",
                            "type": "QUuid",
                            "defaultValue": ""
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "dffc59fe-b230-4345-81d6-0a55f9e16520",
                            "name": "connected",
                            "displayName": "Connected",
                            "type": "bool",
                            "defaultValue": false
                        }
                    ]
                },
                {
                    "id": "f53524ea-1d06-40a9-b7a4-041297b21e84",
                    "name": "coil",
                    "displayName": "Coil",
                    "createMethods": ["discovery"],
                    "interfaces": ["connectable"],
                    "paramTypes": [
                        {
                            "id": "d85977a2-4f9c-40f8-9aff-76cea7bd17a3",
                            "name": "slaveAddress",
                            "displayName": "Slave address",
                            "type": "uint",
                            "defaultValue": 1
                        },
                        {
                            "id": "9d40c4ce-d251-43bb-a55e-a8780567bbac",
                            "name": "registerAddress",
                            "displayName": "Register address",
                            "type": "uint",
                            "defaultValue": 0
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "9b3852ac-1518-4417-8a0a-452fcfec8963",
                            "name": "connected",
                            "displayName": "Connected",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "1cd4cd53-3043-4ed9-9ba8-62985000c599",
                            "name": "value",
                            "displayName": "Value",
                            "displayNameAction": "Write value",
                            "type": "bool",
                            "writable": true,
                            "defaultValue": false
                        }
                    ]
                },
                {
                    "id": "d7a15b39-48d3-4591-bdad-ec5e799aa6e5",
                    "name": "discreteInput",
                    "displayName": "Discrete input",
                    "createMethods": ["discovery"],
                    "interfaces": ["connectable"],
                    "paramTypes": [
                        {
                            "id": "044d951d-7b58-4099-a9a6-a6dff61746a8",
                            "name": "slaveAddress",
                            "displayName": "Slave address",
                            "type": "uint",
                            "defaultValue": 1
                        },
                        {
                            "id": "d37be0cc-6155-4894-b70f-cbc9adfbe48b",
                            "name": "registerAddress",
                            "displayName": "Register address",
                            "type": "uint",
                            "defaultValue": 0
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "dbe7c801-0888-4e7f-a88b-ba342efb11b6",
                            "name": "connected",
                            "displayName": "Connected",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "c772bd7f-6e51-4b28-b182-3b979c1298ce",
                            "name": "value",
                            "displayName": "Value",
                            "type": "bool",
                            "defaultValue": false
                        }
                    ]
                },
                {
                    "id": "e4c34050-d115-440f-b332-63d36e3e12b8",
                    "name": "inputRegister",
                    "displayName": "Input register",
                    "createMethods": ["discovery"],
                    "interfaces": ["connectable"],
                    "paramTypes": [
                        {
                            "id": "f66956ac-07cb-45ab-90e0-61c2a950b85a",
                            "name": "slaveAddress",
                            "displayName": "Slave address",
                            "type": "uint",
                            "defaultValue": 1
                        },
                        {
                            "id": "264e381c-d259-4e11-b4b3-332b518ebba3",
                            "name": "registerAddress",
                            "displayName": "Register address",
                            "type": "uint",
                            "defaultValue": 0
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "0f3768cf-5fb2-4fbf-8614-8389f65f1e9d",
                            "name": "connected",
                            "displayName": "Connected",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "eabe2d1b-abe5-4063-adab-3cdd8500b286",
                            "name": "value",
                            "displayName": "Value",
                            "type": "int",
                            "defaultValue": 0
                        }
                    ]
                },
                {
                    "id": "61a2382c-3d9f-41a1-a2fd-27b2af203c56",
                    "name": "holdingRegister",
                    "displayName": "Holding register",
                    "createMethods": ["discovery"],
                    "interfaces": ["connectable"],
                    "paramTypes": [
                        {
                            "id": "35879cf9-631c-4fe0-95c0-a4bb2e9039e6",
                            "name": "slaveAddress",
                            "displayName": "Slave address",
                            "type": "uint",
                            "defaultValue": 1
                        },
                        {
                            "id": "c771e09e-15fe-4ea9-9662-c44e2df556a8",
                            "name": "registerAddress",
                            "displayName": "Register address",
                            "type": "uint",
                            "defaultValue": 0
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "1f55b72a-5d13-4ae1-b136-bfd84fd9761f",
                            "name": "connected",
                            "displayName": "Connected",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "585cc4fc-07da-415f-a176-12f3baeef025",
                            "name": "value",
                            "displayName": "Value",
                            "displayNameAction": "Write value",
                            "type": "uint",
                            "writable": true,
                            "defaultValue": 0
                        }
                    ]
                }
            ]
        }
    ]
}
