PlusPlus-ua / ha_mobilealerts

Moble-Alerts integration for Home Assistant
MIT License
18 stars 13 forks source link

Unable to send data to cloud #7

Closed Sergeant-Steve closed 1 year ago

Sergeant-Steve commented 1 year ago

After updating Home Assistant to 2022.12.1 data is no longer sent to the cloud.

The logs say:

Error resending request to cloud: <InvalidURL /gateway/put>

Sergeant-Steve commented 1 year ago

Hi, I am still unable to send sensor updates to the cloud under Home Assistant Core version 2022.12.x as the python dependency is throwing an error about the invalid URL.

Is there a way to fix this?

hiatsu0 commented 1 year ago

I have this same error now that I updated to 2023.3.1. Data arrives to HA just fine but will no longer appear in the cloud.

Could it potentially be an issue on the API side? Meaning that www.data199.com/api/ would be blocking access after receiving some erreous data?

https://mobile-alerts.eu/info/public_server_api_documentation.pdf

API Rate Limits Rate limiting is considered on a per sensor basis. Allowed are up to 3 calls for a sensor within one minute. If more than 3 calls are made within one minute further calls are blocked for 7 minutes. If rate limiting is applied the server returns the HTTP response code “429 Too Many Requests”.

Invalid call blocking To prevent misuse, if more than 5 calls with invalid parameters are made from the same ip address within 15 minutes, further calls from the same ip address within the 15 minute time window will be blocked. If invalid call blocking is applied the server returns the HTTP response code “403 Forbidden”.

PlusPlus-ua commented 1 year ago

I've just created a new release, check it out, please.

hiatsu0 commented 1 year ago

Perfect timing :) Just updated, and looking at the logs after reboot there is no error. Let's hope this is now resolved. Thank you!

Edit: Just received some updated data to the mobile app. So seems to be working again!