@nerixs ,
if you use the endpoint https://api.viessmann.com/iot/v1/events-history/events?gatewaySerial={{gatewaySerial}}&eventType=device-error, you will get a response similar to this:
{
"data": [
{
"eventType": "device-error",
"gatewaySerial": "{{gatewaySerial}}",
"body": {
"errorCode": "05",
"deviceId": "0",
"modelId": "CU401B_S",
"active": false,
"equipmentType": "Boiler",
"errorEventType": "Error",
"errorDescription": "Fault EEV"
},
"createdAt": "2019-09-19T08:40:42.807Z",
"eventTimestamp": "2019-09-19T08:40:27.000Z",
"editedBy": "system",
"origin": null
},
{
"eventType": "device-error",
"gatewaySerial": "{{gatewaySerial}}",
"body": {
"errorCode": "05",
"deviceId": "0",
"modelId": "CU401B_S",
"active": true,
"equipmentType": "Boiler",
"errorEventType": "Error",
"errorDescription": "Fault EEV"
},
"createdAt": "2019-09-19T08:40:15.038Z",
"eventTimestamp": "2019-09-19T08:39:59.000Z",
"editedBy": "system",
"origin": null
}
],
"cursor": {
"next": ""
}
}
Notice that I filtered the response by eventType = device-error to only receive specific events. You receive the errorCode and the attribute "active" determines an an active or not active error. As the same error (05) was first active and then changed to not active, this shows that the error has been solved.
For further infos please check the documentation: https://developer.viessmann.com/en/doc/events-mw-iot/v1
... Mehr anzeigen