hirakujira/homebridge-ambiclimate-platform

The plugin generated a warning from the characteristic 'Current Temperature' & 'Current Relative Humidity'

Closed this issue · 6 comments

Describe The Bug:
The plugin generated warning after homebridge updated.
I am running onzu-homebridge on Docker, homebridge v1.5, Node.js Version | v16.16.0

To Reproduce:
Error happening after v1.5

Expected behavior:
The error message kept posting.

Logs:

[8/10/2022, 4:57:07 PM] [homebridge-ambiclimate-platform] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[8/10/2022, 4:57:07 PM] [homebridge-ambiclimate-platform] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[8/10/2022, 4:57:07 PM] [homebridge-ambiclimate-platform] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[8/10/2022, 4:57:08 PM] [homebridge-ambiclimate-platform] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[8/10/2022, 4:57:08 PM] [homebridge-ambiclimate-platform] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[8/10/2022, 4:57:08 PM] [homebridge-ambiclimate-platform] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.

Plugin Config:

        "clientId": "XXXXX",
        "clientSecret": "XXXXX",
        "username": "XXX@gmail.com",
        "password": "XXXX",
        "showFeedbacks": true,
        "heaterCoolerMode": true,
        "accessories": [
            {
                "roomName": "Living Room",
                "locationName": "Home".

**Screenshots:**
<!-- If applicable, add screenshots to help explain your problem. -->

**Environment:**

* **Plugin Version**: v1.1.6
* **Homebridge Version**: V1.5
* **Node.js Version**:  v16.16.0
* **NPM Version**: <!-- npm -v -->
* **Operating System**: Ubuntu Focal Fossa (20.04.4 LTS)

<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->

I got this page when trying to call the APIs. This is the reason. The response value is not a JSON object, but a HTML page...

Now I updated the plugin so that the warning message won't show. But please note that there's nothing I can do to fix the unresponding API.

CleanShot 2022-08-10 at 18 39 43@2x

I got this page when trying to call the APIs. This is the reason. The response value is not a JSON object, but a HTML page...

Now I updated the plugin so that the warning message won't show. But please note that there's nothing I can do to fix the unresponding API.

CleanShot 2022-08-10 at 18 39 43@2x

Thanks for your prompt action, the system shows
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get current humidity API is busy, please try again later.
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get current temperature API is busy, please try again later.
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get fan rotation API is busy, please try again later.
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get fan status API is busy, please try again later.
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get ac current active status API is busy, please try again later.
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get switch status API is busy, please try again later.
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get target heater cooler status API is busy, please try again later.
[8/10/2022, 6:44:16 PM] [homebridge-ambiclimate-platform] Get ac current temperature API is busy, please try again later.
I think it is good enough for now as it would not slow down the home bridge. :)

So after talking to support, it seems like they have added a new limit of 5 API calls per 60 seconds for each account meaning that there won't be enough API quota for this plugin to function correctly.

I think when this plugin loads up, it

  1. current temperature
  2. current humidity
  3. current appliance_states

If you have 2 devices, that converts to 6 API calls already.

@hirakujira maybe you can write to support as well and try to ask them to lift the limit.

Reply from AmbiClimate:

Thank you for your message and our apologies for the inconvenience.
We have imposed a rate limit for now to optimize our services while we improve our OpenAPI infrastructure.
We are looking into grouping the data so users just need to poll once.
No time frame at the moment but we will update you once we have news.

Update:

Please try v1.2.0 and enable "Experimental Mode" to test whether the connection is more stable.