nuimo-openhab-python icon indicating copy to clipboard operation
nuimo-openhab-python copied to clipboard

Handle HTTP errors from the openHAB REST API

Open pfink opened this issue 7 years ago • 1 comments

Sometimes, the openHAB REST API throws errors, those are currently not catched / handled by this application. The most likely error to handle would be 503 which is thrown when openHAB is overloaded handling the requests (which could easily happen if computing-intensive actions are triggered via the rotation wheel when not using sendFrequency).

pfink avatar May 10 '18 22:05 pfink

The basic implementation is done, now an error icon is shown if any exception occurs during event handling. Special topics:

  • schedule auto-retry after an HTTP 503 error occurred
  • show specific icons on standard cases (e.g.: TOGGLE on NULL state)
  • ...?

pfink avatar May 11 '18 00:05 pfink