rainepretorius/olarm-ha-integration

NotFound http error when calling Olarm API device /actions endpoint

Closed this issue · 5 comments

Hi there,

I had a few issues installing this custom HA HACS plugin, it seemed to be crashing.

I narrowed it down to the Olarm API when it called /actions for the device. When emulating the API call in Postman, with the API key as the bearer auth header, it was coming back with an HTTP 404 error, "Not found". So this is obviously what was causing the errors.

When I commented out the calls to api.get_changed_by_json() then I managed to get it all working.

I'm not up to speed on whether there are possibly multiple different versions of the Olarm devices and/or APIs available?

Hi Jonathan,

Please note that this error has been generated by Olarm and means that your device could not be found. Please ensure that your deviceid is correct.

I will also have a chat with them this week to see if it is maybe a unsupported feature for your device. Can you please let me know what Model of Olarm you are using and your alarm system Manufacturer.

It seems like the API only returns actions that happened in the last few days.
So if you didn't arm or disarm the alarm in a few days, the endpoint returns a 404.