thomasgermain / pymultiMATIC

Python interface with Vaillant multiMATIC
MIT License
56 stars 11 forks source link

How would I find a list of issues in the API? #47

Closed philippbosch closed 3 years ago

philippbosch commented 3 years ago

When using the multiMATIC iOS app, on the Information tab there is a message at the top that currently reads Das System läuft ohne Probleme (🇩🇪, roughly: The system does not have any issues). When there is an issue the text is different and there's an overlay with a list of issues if I recall correctly. Where in the API would I find this status and/or the current issues?

I've checked out https://github.com/thomasgermain/pymultiMATIC/blob/97b7dbe349c931a1f949f4a20b35693820473032/pymultimatic/api/urls.py#L332 and https://github.com/thomasgermain/pymultiMATIC/blob/97b7dbe349c931a1f949f4a20b35693820473032/pymultimatic/api/urls.py#L297 but I can't find anything there. This could be because I'm blind or stupid or both, or because there aren't any issues at the moment. Could you give me a hint in the right direction where to find these issues?

Thanks for your help!

thomasgermain commented 3 years ago

You should check urls.hvac to find any error. But apparently, not all devices support the error report.

You could check this test file: https://github.com/thomasgermain/pymultiMATIC/blob/master/tests/files/responses/hvacstate_errors

This is an example of response of the API. (First message is not an error, see type = STATUS, but the second one is an error).

philippbosch commented 3 years ago

Thanks for your quick response, @thomasgermain!

Unfortunately the response body of an hvac() call is empty for me:

{
  "body": {},
  "meta": {
    "onlineStatus": {
      "status": "ONLINE"
    },
    "firmwareUpdateStatus": {
      "status": "UPDATE_NOT_PENDING"
    },
    "syncState": [
      {
        "state": "SYNCED",
        "timestamp": 1608032579875,
        "link": {
          "rel": "self",
          "resourceLink": "/facilities/…/hvacstate/v1/overview"
        }
      }
    ]
  }
}

A call to hvac_update() doesn't change that.

I'll keep digging.

thomasgermain commented 3 years ago

Yes, this is what I said earlier, some devices are not reporting any state or error. Maybe you can try to stop your boiler or heat pump. Normally you should receive an error about ebus connection

thomasgermain commented 3 years ago

Hi @philippbosch do you need more support about this issue ? Otherwise, I'm gonna close it :)

philippbosch commented 3 years ago

Well, I haven't found a way to get a list of issues. But this is very likely not an issue with your library. So I'll close this for now and will report back when I find a solution. Thanks for your help!