{
    "name": "Huawei",
        "displayName": "Huawei FusionSolar",
        "id": "fc3e4509-47f3-4622-9bc4-0a90fe2b6262",
        "vendors": [
        {
            "name": "huawei",
            "displayName": "Huawei",
            "id": "f654c99d-a286-4abb-b33e-1a71843d8da0",
            "thingClasses": [
                {
                    "name": "huaweiFusionSolarInverter",
                    "displayName": "Huawei FusionSolar Inverter (SmartDongle)",
                    "id": "87e75ee0-d544-457b-add3-bd4e58160fcd",
                    "createMethods": ["discovery", "user"],
                    "interfaces": ["solarinverter", "connectable"],
                    "providedInterfaces": [ "solarinverter", "energymeter", "energystorage"],
                    "paramTypes": [
                        {
                            "id": "93517bff-1928-4c4a-8207-5fe596c86eba",
                            "name":"macAddress",
                            "displayName": "MAC address",
                            "type": "QString",
                            "inputType": "MacAddress",
                            "defaultValue": ""
                        },
                        {
                            "id": "55c4ec99-6342-4309-84a8-d1615f19b2e8",
                            "name":"port",
                            "displayName": "Port",
                            "type": "int",
                            "defaultValue": 502
                        },
                        {
                            "id": "aa6e978e-a16b-4722-8330-e706f3c7c21e",
                            "name":"slaveId",
                            "displayName": "Slave ID",
                            "type": "int",
                            "defaultValue": 1
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "a51f0ceb-bd2c-444f-8b39-77cf8a4e1bc6",
                            "name": "connected",
                            "displayName": "Connected",
                            "displayNameEvent": "Connected changed",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "f463f36e-69f9-4614-b690-664ce22d76e0",
                            "name": "currentPower",
                            "displayName": "Active power",
                            "displayNameEvent": "Active power changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": true
                        },
                        {
                            "id": "e97fe328-6ca4-4fe4-86f7-fee6e9e406a5",
                            "name": "totalEnergyProduced",
                            "displayName": "AC energy",
                            "displayNameEvent": "AC energy changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0.00,
                            "cached": true
                        }
                    ],
                    "actionTypes": [ ]
                },
                {
                    "name": "huaweiRtuInverter",
                    "displayName": "Huawei FusionSolar Inverter (Modbus RTU)",
                    "id": "77558007-5076-4ca6-bd46-169f215c3e29",
                    "createMethods": ["discovery"],
                    "interfaces": ["solarinverter", "connectable"],
                    "providedInterfaces": [ "solarinverter", "energymeter", "energystorage"],
                    "discoveryParamTypes": [
                        {
                            "id": "93a4d3a8-c7d0-470b-b6e3-d8fc43b8e8d0",
                            "name": "slaveAddress",
                            "displayName": "Slave address",
                            "type": "int",
                            "defaultValue": 1
                        }
                    ],
                    "paramTypes": [
                        {
                            "id": "5c7b28b1-3691-452e-8f49-d80ae7bcbe2c",
                            "name": "modbusMasterUuid",
                            "displayName": "Modbus RTU master",
                            "type": "QUuid",
                            "defaultValue": "",
                            "readOnly": true
                        },
                        {
                            "id": "de06f027-7940-4c45-9c96-30930ac2796d",
                            "name": "slaveAddress",
                            "displayName": "Modbus slave address",
                            "type": "uint",
                            "defaultValue": 1
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "191ffa22-de6f-4325-8698-56b817f78df5",
                            "name": "connected",
                            "displayName": "Connected",
                            "displayNameEvent": "Connected changed",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "6064d90e-1b6b-40fd-9da0-6ebc713efb7d",
                            "name": "currentPower",
                            "displayName": "Active power",
                            "displayNameEvent": "Active power changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "49b92919-301c-4ff7-ae63-0c1a2184e3f4",
                            "name": "totalEnergyProduced",
                            "displayName": "AC energy",
                            "displayNameEvent": "AC energy changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0.00,
                            "cached": true
                        }
                    ],
                    "actionTypes": [ ]
                },
                {
                    "name": "huaweiMeter",
                    "displayName": "Huawei Meter",
                    "id": "529c2a19-ca6a-4df2-b56e-3fb2673fa95f",
                    "createMethods": ["auto"],
                    "interfaces": [ "energymeter", "connectable"],
                    "paramTypes": [
                    ],
                    "stateTypes": [
                        {
                            "id": "720ece7a-b0b3-4fa3-9f52-6f23042624a5",
                            "name": "connected",
                            "displayName": "Connected",
                            "displayNameEvent": "Connected changed",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "f480dc82-68e2-44e2-839c-df38b9c10310",
                            "name": "currentPower",
                            "displayName": "Total real power",
                            "displayNameEvent": "Total real power changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "759554dd-74c5-4836-9792-96e02eb816f0",
                            "name": "totalEnergyProduced",
                            "displayName": "AC energy",
                            "displayNameEvent": "AC energy changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0.00,
                            "cached": true
                        },
                        {
                            "id": "2cf8d885-37f7-478f-819e-c4e20f2dbe01",
                            "name": "totalEnergyConsumed",
                            "displayName": "Total real energy imported",
                            "displayNameEvent": "Total real energy imported changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0.00,
                            "cached": true
                        },
                        {
                            "id": "af48ff45-11ba-401e-a812-bb1db0896449",
                            "name": "currentPhaseA",
                            "displayName": "Phase A current",
                            "displayNameEvent": "Phase A current changed",
                            "type": "double",
                            "unit": "Ampere",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "fb5082e4-a2d8-4958-a47d-e80928795ece",
                            "name": "currentPhaseB",
                            "displayName": "Phase B current",
                            "displayNameEvent": "Phase B current changed",
                            "type": "double",
                            "unit": "Ampere",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "bdd9aa8b-93fe-4b6b-8a31-08e99d85a06c",
                            "name": "currentPhaseC",
                            "displayName": "Phase C current",
                            "displayNameEvent": "Phase C current changed",
                            "type": "double",
                            "unit": "Ampere",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "ecc03e9b-88b1-424f-a179-66bbdebaaea9",
                            "name": "currentPowerPhaseA",
                            "displayName": "Current power phase A",
                            "displayNameEvent": "Current power phase A changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "7971cbde-b2ea-4474-b68a-71e040ed3b1d",
                            "name": "currentPowerPhaseB",
                            "displayName": "Current power phase B",
                            "displayNameEvent": "Current power phase B changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "7ca21c4d-6763-49e4-a056-4c9c76923971",
                            "name": "currentPowerPhaseC",
                            "displayName": "Current power phase C",
                            "displayNameEvent": "Current power phase C changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "ea5d7924-19a8-415c-aeeb-e04ce08bed33",
                            "name": "voltagePhaseA",
                            "displayName": "Voltage phase A",
                            "displayNameEvent": "Voltage phase A changed",
                            "type": "double",
                            "unit": "Volt",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "f15856d1-645f-4d34-89a7-c1585ca329cc",
                            "name": "voltagePhaseB",
                            "displayName": "Voltage phase B",
                            "displayNameEvent": "Voltage phase B changed",
                            "type": "double",
                            "unit": "Volt",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "aafb5de4-caa1-4a90-8149-cdf85ae5dc2b",
                            "name": "voltagePhaseC",
                            "displayName": "Voltage phase C",
                            "displayNameEvent": "Voltage phase C changed",
                            "type": "double",
                            "unit": "Volt",
                            "defaultValue": 0.00,
                            "cached": false
                        },
                        {
                            "id": "1e2252be-80b3-4e9a-97f7-105d6d1c50f9",
                            "name": "frequency",
                            "displayName": "Frequency",
                            "displayNameEvent": "Frequency changed",
                            "type": "double",
                            "unit": "Hertz",
                            "defaultValue": 0.00,
                            "cached": false
                        }
                    ],
                    "actionTypes": [ ]
                },
                {
                    "name": "huaweiBattery",
                    "displayName": "Huawei Battery",
                    "id": "40104aac-0456-475d-8bd6-18f946597d96",
                    "createMethods": ["auto"],
                    "interfaces": [ "battery", "connectable"],
                    "paramTypes": [
                        {
                            "id": "019287a6-c593-45a8-9695-2e1ad8e81c32",
                            "name":"unit",
                            "displayName": "Unit",
                            "type": "uint",
                            "defaultValue": 0
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "917bc284-9d43-430c-a8c3-642d302448e6",
                            "name": "connected",
                            "displayName": "Connected",
                            "displayNameEvent": "Connected changed",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "223ddf60-ff73-4acf-b8ab-6337aeb972e8",
                            "name": "batteryCritical",
                            "displayName": "Battery critical",
                            "displayNameEvent": "Battery critical changed",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "94d609bf-1f67-47c4-a23d-2fd14e7c0b21",
                            "name": "batteryLevel",
                            "displayName": "Battery level",
                            "displayNameEvent": "Battery level changed",
                            "type": "int",
                            "unit": "Percentage",
                            "minValue": 0,
                            "maxValue": 100,
                            "defaultValue": 0
                        },
                        {
                            "id": "53ca1f8a-0267-40aa-b563-762a943c8f55",
                            "name": "currentPower",
                            "displayName": "Total real power",
                            "displayNameEvent": "Total real power changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0.00,
                            "cached": true
                        },
                        {
                            "id": "3eed974a-0acb-4e38-bcb8-0e3f6fbfd51a",
                            "name": "capacity",
                            "displayName": "Capacity",
                            "displayNameEvent": "Capacity changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0.00
                        },
                        {
                            "id": "d9604513-d5a9-463a-ad18-d2f259a7a99d",
                            "name": "chargingState",
                            "displayName": "Charging state",
                            "displayNameEvent": "Charging state changed",
                            "type": "QString",
                            "possibleValues": ["idle", "charging", "discharging"],
                            "defaultValue": "idle"
                        }
                    ],
                    "actionTypes": [ ]
                }
            ]
        }
    ]
}

