Je ne crois pas qu’il y ait un équivalent du « get=all » avec l’ensemble des entrées / sorties disponibles, mais il y a un retour d’état par type « module » en « GET » :
IPX : http://xxxx/api/system/ipx?ApiKey=xxxx
JSON de réponse :
{
"_id": 9437184,
"errorStatus": 0,
"ioDInput": [
"off",
"off",
"off",
"off",
"off",
"off",
"off",
"off"
],
"ioRelays": [
"off",
"on",
"off",
"on",
"off",
"off",
"off",
"off"
],
"ioRelayState": [
"off",
"on",
"off",
"off",
"off",
"off",
"off",
"off"
],
"ana_IPX_Input": [
13637,
13645,
13608,
13532
],
"ioCollInput": [
"off",
"off",
"off",
"off"
],
"ioCollOutput": [
"off",
"off",
"off",
"off"
],
"ioCollOutputState": [
"off",
"off",
"off",
"off"
],
"ioIPXReset": "off",
"ioLexanSelBP": "off",
"anaIPXChargePeriod": 4,
"anaIPXChargeApp": 0,
"anaIPXChargeRules": 3,
"anaIPXChargeEbx": 0,
"anaIPXChargeBsp": 0,
"anaIPXCyclePeriod": 393,
"anaIPXCycleApp": 228,
"anaIPXCycleRules": 3046,
"anaIPXCycleEBX": 0,
"anaIPXCycleBSP": 9,
"anaHeapFree": 182248,
"anaDeltaHeapFree": 0,
"anaMonitorConnections": 0,
"anaIPXClock": 1645377491,
"ioDetectionAC": "off"
}
X8R : http://xxxx/api/ebx/x8r/4259840?ApiKey=xxxx
JSON de réponse :
{
"_id": 4259840,
"name": "X8R1",
"codeExt": "20aa0470",
"errorStatus": "0x0000",
"pushDelais": [
0,
0,
0,
0,
0,
2,
2,
0
],
"ioLongPush": [
"off",
"off",
"off",
"off",
"off",
"off",
"off",
"off"
],
"ioOutput": [
"off",
"off",
"off",
"off",
"off",
"off",
"off",
"off"
],
"ioOutputState": [
"off",
"off",
"off",
"off",
"off",
"off",
"off",
"off"
]
}
XDIMMER : http://xxxx/api/ebx/xdimmer/4849664?ApiKey=xxxx
JSON de réponse :
{
"_id": 4849664,
"name": "XDIMMER N°0",
"codeExt": "0a00008a",
"minLvlLed": 0,
"maxLvlLed": 100,
"minLvlHalo": 0,
"maxLvlHalo": 100,
"typeCh1": true,
"typeCh2": true,
"typeCh3": true,
"typeCh4": true,
"errorStatus": "0x0000",
"ioOn": [
"off",
"off",
"on",
"off"
],
"ioOnAll": "off",
"anaSpeedTransition": 2,
"anaCommand": [
100,
100,
100,
100
],
"anaPosition": [
0,
0,
100,
0
]
}
X4FP : http://xxxx/api/ebx/x4fp/4784128?ApiKey=xxxx
JSON de réponse :
{
"_id": 4784128,
"name": "X4FP",
"codeExt": "6001daf2",
"errorStatus": "0x0000",
"ioComfort": [
"off",
"off",
"off",
"off"
],
"ioEco": [
"off",
"off",
"off",
"off"
],
"ioAntiFreeze": [
"on",
"off",
"off",
"off"
],
"ioStop": [
"off",
"off",
"off",
"on"
],
"ioComfort_1": [
"off",
"off",
"off",
"off"
],
"ioComfort_2": [
"off",
"on",
"on",
"off"
],
"ioAllComfort": "off",
"ioAllEco": "off",
"ioAllAntiFreeze": "off",
"ioAllStop": "on",
"ioAllComfort_1": "off",
"ioAllComfort_2": "off"
}
X4VR : http://xxxx/api/ebx/x4vr/4456448?ApiKey=xxxx
JSON de réponse :
{
"_id": 4456448,
"name": "X4VR1",
"codeExt": "5001cc77",
"mode": 0,
"pulseTimeBso": [
0,
0,
0,
0
],
"calibration": false,
"degradeModeEnabled": false,
"timeToOpen": [
0,
0,
0,
0
],
"timeToClose": [
0,
0,
0,
0
],
"errorStatus": "0x0000",
"ioCommandBsoUp": [
"off",
"off",
"off",
"off"
],
"ioCommandBsoDown": [
"off",
"off",
"off",
"off"
],
"ioCommandUp": [
"off",
"off",
"off",
"off"
],
"ioCommandDown": [
"off",
"off",
"off",
"off"
],
"ioCommandStop": [
"off",
"off",
"off",
"off"
],
"anaPosition": [
0,
0,
0,
0
],
"anaCommand": [
20,
0,
100,
75
]
}
A++