{
    "id": "02319cfc-8b55-49ba-99bc-0588bbfab063",
    "name": "fronius",
    "displayName": "Fronius Solar",
    "vendors": [
        {
            "id": "2286fc38-afd9-4128-ab7e-0fba527d53ba",
            "name": "Fronius",
            "displayName": "Fronius",
            "thingClasses": [
                {
                    "id": "4fd79fed-42f1-4df9-be64-3df7b2e0bda2",
                    "name": "connection",
                    "displayName": "Fronius Solar",
                    "createMethods": ["discovery", "user"],
                    "interfaces": ["gateway", "networkdevice"],
                    "providedInterfaces": ["energymeter", "solarinverter", "energystorage"],
                    "paramTypes": [
                        {
                            "id": "52da0197-4b78-4fec-aa72-70f949e26edc",
                            "name": "address",
                            "displayName": "Host address",
                            "type": "QString",
                            "inputType": "IPv4Address",
                            "defaultValue": ""
                        },
                        {
                            "id": "05d05a5f-7da1-4198-b281-5199dc660acc",
                            "name": "hostName",
                            "displayName": "Host name",
                            "type": "QString",
                            "defaultValue": ""
                        },
                        {
                            "id": "2237972e-385b-4458-b5d3-1d1fb4ae8756",
                            "name": "macAddress",
                            "displayName": "Mac address",
                            "type": "QString",
                            "readOnly": true,
                            "defaultValue": "00:00:00:00:00:00"
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "98e4476f-e745-4a7f-b795-19269cb70c40",
                            "name": "connected",
                            "displayName": "Reachable",
                            "displayNameEvent": "Reachable changed",
                            "type": "bool",
                            "defaultValue": false
                        },
                        {
                            "id": "8fd0c0ed-af89-4887-bf0f-040b13c25268",
                            "name": "version",
                            "displayName": "Version",
                            "displayNameEvent": "Version changed",
                            "type": "QString",
                            "defaultValue": ""
                        }
                    ],
                    "actionTypes": [ ]
                },
                {
                    "id": "540aa956-8b8f-4982-9f58-343a76cea846",
                    "name": "inverter",
                    "displayName": "Fronius solar inverter",
                    "createMethods": ["auto"],
                    "interfaces" : ["solarinverter", "connectable"],
                    "paramTypes": [
                        {
                            "id": "f2f8c2f5-dd6a-4786-b336-82fc84e5bb98",
                            "name": "id",
                            "displayName": "Device ID",
                            "type": "QString",
                            "readOnly": true
                        },
                        {
                            "id": "5e073a9d-f2de-4ff4-95f1-065a0ef4d51b",
                            "name": "serialNumber",
                            "displayName": "Serial number",
                            "type": "QString",
                            "readOnly": true
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "eda29c50-73ac-40e0-9c92-26fee352e688",
                            "name": "connected",
                            "displayName": "Reachable",
                            "displayNameEvent": "Reachable changed",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "788accbc-b86e-471b-b37f-14c9c6411526",
                            "name": "currentPower",
                            "displayName": "Current power",
                            "displayNameEvent": "Current power changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "b6af1bf5-753d-47b6-a151-e4d801fe6ff8",
                            "name": "energyDay",
                            "displayName": "Energy produced today",
                            "displayNameEvent": "Energy produced today changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0
                        },
                        {
                            "id": "7fd2fa28-9bcc-4f01-a823-459437d185f6",
                            "name": "energyYear",
                            "displayName": "Energy produced year",
                            "displayNameEvent": "Energy produced changed",
                            "type": "int",
                            "unit": "KiloWattHour",
                            "defaultValue": 0
                        },
                        {
                            "id": "d6dbb879-4cbc-4db3-830e-b92ba91a13e5",
                            "name": "totalEnergyProduced",
                            "displayName": "Total produced energy",
                            "displayNameEvent": "Total produced energy changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0
                        }
                    ]
                },
                {
                    "id": "c3cb53a4-32dd-434d-9d9c-aada41f8129c",
                    "name": "meter",
                    "displayName": "Fronius smart meter",
                    "createMethods": ["auto"],
                    "interfaces": [ "energymeter", "connectable" ],
                    "paramTypes": [
                        {
                            "id": "cf3a7025-d368-475a-8f48-efc1344a8409",
                            "name": "id",
                            "displayName": "Device ID",
                            "type": "QString",
                            "inputType": "TextLine",
                            "readOnly": true
                        },
                        {
                            "id": "dfc2eeef-38b2-4089-9953-48186aaee060",
                            "name": "serialNumber",
                            "displayName": "Serial number",
                            "type": "QString",
                            "inputType": "TextLine",
                            "readOnly": true
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "b70b61a4-54cb-47ec-b62a-b498eb1f650e",
                            "name": "connected",
                            "displayName": "Reachable",
                            "displayNameEvent": "Reachable changed",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "e5056ea1-88a2-410b-9c5e-6322aca4cb17",
                            "name": "currentPower",
                            "displayName": "Current power usage",
                            "displayNameEvent": "Current power usage changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "267bc59f-1113-4aff-a502-4618a591aa16",
                            "name": "voltagePhaseA",
                            "displayName": "Voltage phase A",
                            "displayNameEvent": "Voltage phase A changed",
                            "type": "double",
                            "unit": "Volt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "bbcedb80-30f1-493e-81f0-5f77f2847353",
                            "name": "voltagePhaseB",
                            "displayName": "Voltage phase B",
                            "displayNameEvent": "Voltage phase B changed",
                            "type": "double",
                            "unit": "Volt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "8037557b-40dc-411b-8937-bcd1695f898a",
                            "name": "voltagePhaseC",
                            "displayName": "Voltage phase C",
                            "displayNameEvent": "Voltage phase C changed",
                            "type": "double",
                            "unit": "Volt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "a9673688-d84a-4848-8583-a70739130252",
                            "name": "currentPhaseA",
                            "displayName": "Current phase A",
                            "displayNameEvent": "Current phase A changed",
                            "type": "double",
                            "unit": "Ampere",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "15632e49-95f9-496d-830c-53a31ca6d98e",
                            "name": "currentPhaseB",
                            "displayName": "Current phase B",
                            "displayNameEvent": "Current phase B changed",
                            "type": "double",
                            "unit": "Ampere",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "10a24ba9-a57a-48a9-98f3-52671c09e855",
                            "name": "currentPhaseC",
                            "displayName": "Current phase C",
                            "displayNameEvent": "Current phase C changed",
                            "type": "double",
                            "unit": "Ampere",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "ca14cca5-d9f0-49c5-a8f7-907d4c0825f0",
                            "name": "totalEnergyProduced",
                            "displayName": "Energy produced",
                            "displayNameEvent": "Energy production changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0
                        },
                        {
                            "id": "f3451818-48d2-42a5-94fd-ad094c06967f",
                            "name": "totalEnergyConsumed",
                            "displayName": "Energy Consumed",
                            "displayNameEvent": "Energy consumption changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0
                        },
                        {
                            "id": "6dbbb062-447b-47d6-b2e4-dceac9aff795",
                            "name": "currentPowerPhaseA",
                            "displayName": "Current power phase A",
                            "displayNameEvent": "Current power phase A changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "f230e78e-15b0-47a4-b494-bae65be00755",
                            "name": "currentPowerPhaseB",
                            "displayName": "Current power phase B",
                            "displayNameEvent": "Current power phase B changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "56b5d550-d902-4c33-9288-8ee972735a75",
                            "name": "currentPowerPhaseC",
                            "displayName": "Current power phase C",
                            "displayNameEvent": "Current power phase C changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "9ff64b29-e023-4395-abd4-b6c366acfd9e",
                            "name": "frequency",
                            "displayName": "Frequency",
                            "displayNameEvent": "Frequency changed",
                            "type": "double",
                            "unit": "Hertz",
                            "defaultValue": 0.00,
                            "cached": false
                        }
                    ]
                },
                {
                    "id": "b00139fa-7386-48b1-8697-2fdd21a57ced",
                    "name": "storage",
                    "displayName": "Fronius solar storage",
                    "createMethods": ["auto"],
                    "interfaces": [ "energystorage", "connectable"],
                    "paramTypes": [
                        {
                            "id": "49087f31-abf5-4bb8-946b-a3626ee80566",
                            "name": "id",
                            "displayName": "Device ID",
                            "type": "QString",
                            "inputType": "TextLine",
                            "readOnly": true
                        },
                        {
                            "id": "8b6c7053-5ba5-4808-8ff4-9024c624d77d",
                            "name": "serialNumber",
                            "displayName": "Serial number",
                            "type": "QString",
                            "inputType": "TextLine",
                            "readOnly": true
                        }
                    ],
                    "stateTypes": [
                        {
                            "id": "2f7e1267-b0be-4b78-9aa3-832b86c4efad",
                            "name": "connected",
                            "displayName": "Reachable",
                            "displayNameEvent": "Reachable changed",
                            "type": "bool",
                            "defaultValue": false,
                            "cached": false
                        },
                        {
                            "id": "7a045257-d829-4e58-a769-047b3aeec7c5",
                            "name": "chargingState",
                            "displayName": "Charging state",
                            "displayNameEvent": "Charging state changed",
                            "type": "QString",
                            "possibleValues": ["idle", "charging", "discharging"],
                            "defaultValue": "idle"
                        },
                        {
                            "id": "5a89cd3f-3abf-4f51-ab2b-4039f1d211d9",
                            "name": "currentPower",
                            "displayName": "Current power",
                            "displayNameEvent": "Current power changed",
                            "type": "double",
                            "unit": "Watt",
                            "defaultValue": 0,
                            "cached": false
                        },
                        {
                            "id": "3b163deb-67a2-41d1-8441-b2d53ad846ef",
                            "name": "capacity",
                            "displayName": "Capacity",
                            "displayNameEvent": "Capacity changed",
                            "type": "double",
                            "unit": "KiloWattHour",
                            "defaultValue": 0
                        },
                        {
                            "id": "5c6da672-9662-41bc-8c8c-aa0f32481251",
                            "name": "batteryLevel",
                            "displayName": "Battery level",
                            "displayNameEvent": "Battery level changed",
                            "type": "int",
                            "unit": "Percentage",
                            "defaultValue": "0",
                            "minValue": 0,
                            "maxValue": 100
                        },
                        {
                            "id": "4417499c-1757-4309-868a-be5cf3455c4a",
                            "name": "cellTemperature",
                            "displayName": "Cell temperature",
                            "displayNameEvent": "Cell temperature changed",
                            "type": "double",
                            "unit": "DegreeCelsius",
                            "defaultValue": "0",
                            "cached": false
                        },
                        {
                            "id": "e5396312-b50e-4d6f-b628-5b51448971d3",
                            "name": "batteryCritical",
                            "displayName": "Battery level critical",
                            "displayNameEvent": "Battery level critical changed",
                            "type": "bool",
                            "defaultValue": false
                        }
                    ]
                }
            ]
        }
    ]
}
