homebridge-prometheus-exporter/tests/fixtures/tp-link.json
2022-11-07 15:23:48 +01:00

426 lines
19 KiB
JSON

{
"ipAddress": "192.168.0.1",
"instance": {
"host": "192.168.0.1",
"port": 38333,
"url": "http://192.168.0.1:38333",
"deviceID": "AA:AA:AA:AA:AA:AA",
"txt": {
"c#": "3",
"ff": "0",
"id": "AA:AA:AA:AA:AA:AA",
"md": "homebridge",
"pv": "1.1",
"s#": "1",
"sf": "0",
"ci": "2",
"sh": "RovnEA=="
},
"name": "TP-Link bridge"
},
"accessories": {
"accessories": [
{
"aid": 1,
"services": [
{
"type": "0000003E-0000-1000-8000-0026BB765291",
"iid": 1,
"characteristics": [
{
"type": "00000014-0000-1000-8000-0026BB765291",
"iid": 2,
"perms": ["pw"],
"description": "Identify",
"format": "bool"
},
{
"type": "00000020-0000-1000-8000-0026BB765291",
"iid": 3,
"value": "homebridge.io",
"perms": ["pr"],
"description": "Manufacturer",
"format": "string",
"maxLen": 64
},
{
"type": "00000021-0000-1000-8000-0026BB765291",
"iid": 4,
"value": "homebridge",
"perms": ["pr"],
"description": "Model",
"format": "string",
"maxLen": 64
},
{
"type": "00000023-0000-1000-8000-0026BB765291",
"iid": 5,
"value": "TP-Link Steckdosen Bridge 8EB6",
"perms": ["pr"],
"description": "Name",
"format": "string",
"maxLen": 64
},
{
"type": "00000030-0000-1000-8000-0026BB765291",
"iid": 6,
"value": "AA:AA:AA:AA:AA:AA",
"perms": ["pr"],
"description": "Serial Number",
"format": "string",
"maxLen": 64
},
{
"type": "00000052-0000-1000-8000-0026BB765291",
"iid": 7,
"value": "1.5.1",
"perms": ["pr"],
"description": "Firmware Revision",
"format": "string"
}
]
},
{
"type": "000000A2-0000-1000-8000-0026BB765291",
"iid": 2000000008,
"characteristics": [
{
"type": "00000037-0000-1000-8000-0026BB765291",
"iid": 9,
"value": "1.1.0",
"perms": ["pr"],
"description": "Version",
"format": "string",
"maxLen": 64
}
]
}
]
},
{
"aid": 2,
"services": [
{
"type": "0000003E-0000-1000-8000-0026BB765291",
"iid": 1,
"characteristics": [
{
"type": "00000014-0000-1000-8000-0026BB765291",
"iid": 2,
"perms": ["pw"],
"description": "Identify",
"format": "bool"
},
{
"type": "00000020-0000-1000-8000-0026BB765291",
"iid": 3,
"value": "TP-Link",
"perms": ["pr"],
"description": "Manufacturer",
"format": "string",
"maxLen": 64
},
{
"type": "00000021-0000-1000-8000-0026BB765291",
"iid": 4,
"value": "HS110(EU)",
"perms": ["pr"],
"description": "Model",
"format": "string",
"maxLen": 64
},
{
"type": "00000023-0000-1000-8000-0026BB765291",
"iid": 5,
"value": "Drucker",
"perms": ["pr"],
"description": "Name",
"format": "string",
"maxLen": 64
},
{
"type": "00000030-0000-1000-8000-0026BB765291",
"iid": 6,
"value": "AA:AA:AA:AA:AA:AA 8006106A8B451F91FA0498A6615963E019CCD80A",
"perms": ["pr"],
"description": "Serial Number",
"format": "string",
"maxLen": 64
},
{
"type": "00000052-0000-1000-8000-0026BB765291",
"iid": 7,
"value": "1.5.6 Build 191125 Rel.083657",
"perms": ["pr"],
"description": "Firmware Revision",
"format": "string"
},
{
"type": "00000053-0000-1000-8000-0026BB765291",
"iid": 8,
"value": "2.0",
"perms": ["pr"],
"description": "Hardware Revision",
"format": "string"
}
]
},
{
"type": "00000047-0000-1000-8000-0026BB765291",
"iid": 9,
"characteristics": [
{
"type": "00000023-0000-1000-8000-0026BB765291",
"iid": 10,
"value": "Drucker",
"perms": ["pr"],
"description": "Name",
"format": "string",
"maxLen": 64
},
{
"type": "00000025-0000-1000-8000-0026BB765291",
"iid": 11,
"value": 0,
"perms": ["ev", "pr", "pw"],
"description": "On",
"format": "bool"
},
{
"type": "00000026-0000-1000-8000-0026BB765291",
"iid": 12,
"value": 0,
"perms": ["ev", "pr"],
"description": "Outlet In Use",
"format": "bool"
},
{
"type": "E863F126-079E-48FF-8F27-9C2605A29F52",
"iid": 13,
"value": 0.03,
"perms": ["pr", "ev"],
"description": "Amperes",
"format": "float",
"unit": "A",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.01
},
{
"type": "E863F10C-079E-48FF-8F27-9C2605A29F52",
"iid": 14,
"value": 0.051,
"perms": ["pr", "ev"],
"description": "Total Consumption",
"format": "float",
"unit": "kWh",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.001
},
{
"type": "E863F110-079E-48FF-8F27-9C2605A29F52",
"iid": 15,
"value": 53248.8,
"perms": ["pr", "ev"],
"description": "Apparent Power",
"format": "float",
"unit": "VA",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.1
},
{
"type": "E863F10A-079E-48FF-8F27-9C2605A29F52",
"iid": 16,
"value": 230.8,
"perms": ["pr", "ev"],
"description": "Volts",
"format": "float",
"unit": "V",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.1
},
{
"type": "E863F10D-079E-48FF-8F27-9C2605A29F52",
"iid": 17,
"value": 0,
"perms": ["pr", "ev"],
"description": "Consumption",
"format": "float",
"unit": "W",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.1
}
]
}
]
},
{
"aid": 3,
"services": [
{
"type": "0000003E-0000-1000-8000-0026BB765291",
"iid": 1,
"characteristics": [
{
"type": "00000014-0000-1000-8000-0026BB765291",
"iid": 2,
"perms": ["pw"],
"description": "Identify",
"format": "bool"
},
{
"type": "00000020-0000-1000-8000-0026BB765291",
"iid": 3,
"value": "TP-Link",
"perms": ["pr"],
"description": "Manufacturer",
"format": "string",
"maxLen": 64
},
{
"type": "00000021-0000-1000-8000-0026BB765291",
"iid": 4,
"value": "HS110(EU)",
"perms": ["pr"],
"description": "Model",
"format": "string",
"maxLen": 64
},
{
"type": "00000023-0000-1000-8000-0026BB765291",
"iid": 5,
"value": "Espressomaschine",
"perms": ["pr"],
"description": "Name",
"format": "string",
"maxLen": 64
},
{
"type": "00000030-0000-1000-8000-0026BB765291",
"iid": 6,
"value": "AA:AA:AA:AA:AA:AA 800614AA26608873C919E4592765404019F64D07",
"perms": ["pr"],
"description": "Serial Number",
"format": "string",
"maxLen": 64
},
{
"type": "00000052-0000-1000-8000-0026BB765291",
"iid": 7,
"value": "1.5.6 Build 191125 Rel.083657",
"perms": ["pr"],
"description": "Firmware Revision",
"format": "string"
},
{
"type": "00000053-0000-1000-8000-0026BB765291",
"iid": 8,
"value": "2.0",
"perms": ["pr"],
"description": "Hardware Revision",
"format": "string"
}
]
},
{
"type": "00000047-0000-1000-8000-0026BB765291",
"iid": 9,
"characteristics": [
{
"type": "00000023-0000-1000-8000-0026BB765291",
"iid": 10,
"value": "Espressomaschine",
"perms": ["pr"],
"description": "Name",
"format": "string",
"maxLen": 64
},
{
"type": "00000025-0000-1000-8000-0026BB765291",
"iid": 11,
"value": 0,
"perms": ["ev", "pr", "pw"],
"description": "On",
"format": "bool"
},
{
"type": "00000026-0000-1000-8000-0026BB765291",
"iid": 12,
"value": 0,
"perms": ["ev", "pr"],
"description": "Outlet In Use",
"format": "bool"
},
{
"type": "E863F126-079E-48FF-8F27-9C2605A29F52",
"iid": 13,
"value": 0.03,
"perms": ["pr", "ev"],
"description": "Amperes",
"format": "float",
"unit": "A",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.01
},
{
"type": "E863F10C-079E-48FF-8F27-9C2605A29F52",
"iid": 14,
"value": 13.025,
"perms": ["pr", "ev"],
"description": "Total Consumption",
"format": "float",
"unit": "kWh",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.001
},
{
"type": "E863F110-079E-48FF-8F27-9C2605A29F52",
"iid": 15,
"value": 53365.6,
"perms": ["pr", "ev"],
"description": "Apparent Power",
"format": "float",
"unit": "VA",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.1
},
{
"type": "E863F10A-079E-48FF-8F27-9C2605A29F52",
"iid": 16,
"value": 231,
"perms": ["pr", "ev"],
"description": "Volts",
"format": "float",
"unit": "V",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.1
},
{
"type": "E863F10D-079E-48FF-8F27-9C2605A29F52",
"iid": 17,
"value": 0,
"perms": ["pr", "ev"],
"description": "Consumption",
"format": "float",
"unit": "W",
"minValue": 0,
"maxValue": 65535,
"minStep": 0.1
}
]
}
]
}
]
},
"deviceID": "AA:AA:AA:AA:AA:AA",
"name": "homebridge"
}