rainepretorius / olarm-ha-integration

Integration for Olarm devices created by a BSC(Computer Science and Mathematics) student.
https://raine.pretoriusse.net
BSD 2-Clause "Simplified" License
30 stars 13 forks source link

[Bug]: "Unknown error occurred" after Olarm Upgrade from 2G to 4G #113

Closed D1ac1d3 closed 3 months ago

D1ac1d3 commented 3 months ago

Contact Details

werner@nautilussoft.co.za

What happened?

I upgraded my Olarm Pro 2G device with a Olarm Pro 4G device. I created a new olarm profile for the 4G device. I tried simply changing the api with the newly generated one, but that did not work, I got the error ""Unknown error occurred". I uninstalled the Olarm Sensors Integration to see if that will solve the issue, it did not, I got the same error. I have deleted and Generated the api several times, but that did not work. I also removed the device from my olarm profile and added it again, that also did not work. I am on HA 2024.7.3.

Version

2.0.1

Relevant log output form Home Assistant

This error originated from a custom integration.

Logger: olarm_api_rainepretorius
Source: custom_components/olarm_sensors/config_flow.py:71
integration: Olarm Sensors (documentation, issues)
First occurred: 11:16:48 AM (6 occurrences)
Last logged: 12:12:13 PM

Could not get JSON data due to incorrect API key. Please update the api key
Your api key has been temporarily blocked due to too many request. Increase your scan interval

Downloaded integration debug logs.

This error originated from a custom integration.

Logger: olarm_api_rainepretorius
Source: custom_components/olarm_sensors/config_flow.py:71
integration: Olarm Sensors (documentation, issues)
First occurred: 11:16:48 AM (6 occurrences)
Last logged: 12:12:13 PM

Could not get JSON data due to incorrect API key. Please update the api key
Your api key has been temporarily blocked due to too many request. Increase your scan interval
D1ac1d3 commented 3 months ago

I solved my problem. I deleted the whole olarm_sensors folder underneath the custom_components folder. I then downloaded a fresh copy of the olarm_sensors from the github page, and uploaded that to the custom_components folder. I generated a new api key on the olarm api page, did a HA server restart and added the Olarm sensors integration again from the devices and services menu. The olarm sensors integration is not available on HACS as the documentation states. You must do a manual install/reinstall.