{
    "name": "WaveshareRelayD8",
    "displayName": "Waveshare Relay D8",
    "id": "028e7851-a6cc-4480-b174-b94ca638cf56",
    "vendors": [
        {
            "name": "waveshare",
            "displayName": "Waveshare",
            "id": "1b021659-70ae-4dbf-b837-f96db1ede396",
            "thingClasses": [
                {
                    "name": "waveshareRelayD8",
                    "displayName": "Waveshare Relay D8",
                    "id": "8e8e5643-7dcf-4438-af9b-3d003e0fa0f5",
                    "createMethods": ["discovery"],
                    "interfaces": ["connectable"],
                    "paramTypes": [
                        {
                            "id": "b4a727f1-ca3d-4674-864f-f625debf57e4",
                            "name": "rtuMaster",
                            "displayName": "Modbus RTU master UUID",
                            "type": "QString",
                            "defaultValue": ""
                        },
                        {
                            "id": "ab68c9cd-4785-4b12-8752-b50e9fc60520",
                            "name": "slaveAddress",
                            "displayName": "Modbus slave address",
                            "type": "int",
                            "defaultValue": 1,
                            "minValue": 1,
                            "maxValue": 247
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "a43070ac-9784-4923-bc7f-16c206b822e1",
                            "name": "connected",
                            "displayName": "Connected",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "29fcfe96-989d-494d-9717-ce08f992e281",
                            "name": "relay1State",
                            "displayName": "Relay 1",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "ba8e4946-6402-459b-bb92-e72b74294627",
                            "name": "relay2State",
                            "displayName": "Relay 2",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "00904d40-eb47-4165-8776-ee6452bd2cb5",
                            "name": "relay3State",
                            "displayName": "Relay 3",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "111db305-23f5-49e2-8999-ae29cacb13cf",
                            "name": "relay4State",
                            "displayName": "Relay 4",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "83a781a8-c4be-406f-9da3-8c64185a945d",
                            "name": "relay5State",
                            "displayName": "Relay 5",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "526a35bf-9529-40f9-bd50-9865ba7e9776",
                            "name": "relay6State",
                            "displayName": "Relay 6",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "0624aea8-805c-4504-8781-2e64f5d88cfa",
                            "name": "relay7State",
                            "displayName": "Relay 7",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "01c3d958-0de1-4c43-a30c-799fc74244ac",
                            "name": "relay8State",
                            "displayName": "Relay 8",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "d380da7f-00c9-4458-ba4c-ed0d10060a24",
                            "name": "input1State",
                            "displayName": "Input 1",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "1e990bb6-912a-4805-b03a-e41d95ee2494",
                            "name": "input2State",
                            "displayName": "Input 2",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "bb460c57-2690-4ddd-8d0c-efcedc74cc53",
                            "name": "input3State",
                            "displayName": "Input 3",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "0285f664-a46b-478f-b27d-4fd2b171883e",
                            "name": "input4State",
                            "displayName": "Input 4",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "d09da37c-ccb9-4583-a42a-1d5b4e074751",
                            "name": "input5State",
                            "displayName": "Input 5",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "45aca74d-12ed-4fce-a332-22535d91cf87",
                            "name": "input6State",
                            "displayName": "Input 6",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "ef593976-820b-4eb2-9156-8c14e46e9dfe",
                            "name": "input7State",
                            "displayName": "Input 7",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "6c46fb18-2f34-49c0-b22c-0eb561a9c7b0",
                            "name": "input8State",
                            "displayName": "Input 8",
                            "type": "bool",
                            "defaultValue": false
                        }
                    ],
                    "actionTypes": [
                        {
                            "id": "19526ec5-991d-4b6f-855a-d2b61da05caa",
                            "name": "setRelay",
                            "displayName": "Set relay",
                            "paramTypes": [
                                {
                                    "id": "f7b2830a-182c-4de5-b689-9ff599add6ac",
                                    "name": "channel",
                                    "displayName": "Channel (1-8)",
                                    "type": "int",
                                    "defaultValue": 1,
                                    "minValue": 1,
                                    "maxValue": 8
                                },
                                {
                                    "id": "dee4196d-586a-4735-8c3e-12e01f849787",
                                    "name": "state",
                                    "displayName": "State",
                                    "type": "bool",
                                    "defaultValue": false
                                }
                            ]
                        },
                        {
                            "id": "0c0e9c8f-bf97-4f34-bd31-3252aade9168",
                            "name": "setAllRelays",
                            "displayName": "Set all relays",
                            "paramTypes": [
                                {
                                    "id": "791becf8-78aa-4c84-96df-2689d87970c8",
                                    "name": "state",
                                    "displayName": "State",
                                    "type": "bool",
                                    "defaultValue": false
                                }
                            ]
                        }
                    ],
                    "eventTypes": [
                        {
                            "id": "63212751-793d-4147-89d0-47d71669c672",
                            "name": "inputChanged",
                            "displayName": "Input changed",
                            "paramTypes": [
                                {
                                    "id": "42779413-d416-4211-a1fb-76bcbc90a5cd",
                                    "name": "channel",
                                    "displayName": "Channel (1-8)",
                                    "type": "int",
                                    "defaultValue": 1
                                },
                                {
                                    "id": "d3f66c2f-ed95-46ae-be06-ce151c1793d3",
                                    "name": "state",
                                    "displayName": "State",
                                    "type": "bool",
                                    "defaultValue": false
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}
