Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Request: Continuously hitting daily API limits #1108

Open
nodialtone opened this issue Nov 7, 2024 · 13 comments
Open

Support Request: Continuously hitting daily API limits #1108

nodialtone opened this issue Nov 7, 2024 · 13 comments
Assignees
Labels
question Further information is requested

Comments

@nodialtone
Copy link

Describe Your Problem

Dail API limits reached even after modifying Refresh Rate

Relevant log output

[11/7/2024, 9:00:40 AM] [SwitchBot] [DEBUG] Got devices: {"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
[11/7/2024, 9:00:40 AM] [SwitchBot] [DEBUG] statusCode: 200
[11/7/2024, 9:00:40 AM] [SwitchBot] [DEBUG] response: {"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
[11/7/2024, 9:00:40 AM] [SwitchBot] [DEBUG] SwitchBot Device Config Not Set: undefined
[11/7/2024, 9:00:40 AM] [SwitchBot] [DEBUG] SwitchBot API Has No Devices With Cloud Services Enabled
[11/7/2024, 9:00:40 AM] [SwitchBot] [DEBUG] IR Device Config Not Set: undefined

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                "token": "XXXXXXXXXXX",
                "secret": "XXXXXXXX",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "refreshRate": 360,
                "updateRate": 5,
                "pushRate": 1,
                "logging": "debug"
            },
            "_bridge": {
                "name": "Hub",
                "username": "0E:B6:1C:9A:0C:C2",
                "port": 47620,
                "manufacturer": "SwitchBot",
                "model": "Hub 2"
            },
            "platform": "SwitchBot"

Screenshots

No response

Device & Model

Switchbot Hub 2

Node.js Version

20.18.0

NPM Version

10.8.2

Homebridge Version

1.8.5

Homebridge SwitchBot Plugin Version

4.1.3

Homebridge Config UI X Plugin Version

4.62.0

Operating System

Docker

@donavanbecker
Copy link
Collaborator

360 isn't much of a refreshRate, that should probably be moved up.

@nodialtone
Copy link
Author

What would you recommend? I originally had the defaults but that seemed to hit the limit?
Screenshot 2024-11-07 at 11 00 34 AM

@donavanbecker
Copy link
Collaborator

How many devices?

@nodialtone
Copy link
Author

nodialtone commented Nov 7, 2024 via email

@nodialtone
Copy link
Author

[11/9/2024, 9:56:25 AM] [SwitchBot] [DEBUG] Curtain3: Curtain 4 statusCode: 190, deviceStatus: {"statusCode":190,"body":{},"message":"Requests reached the daily limit"}
I'm still hitting daily request limits. Do you have any recommendations for the different retries and, refresh, update, and push rates?

@sirkirby
Copy link

Same here, hitting limits from Curtain status checks

@nodialtone
Copy link
Author

Any thoughts or suggestions or tweaks to the API hitting the daily limit? Does each device hit the API and therefore count towards the limit or is it all from the hub?

@Kohle81
Copy link

Kohle81 commented Nov 19, 2024

Hello, since yesterday I have had the following logs, see attachment. Is this the same cause?
@switchbot_homebridge-switchbot.log 2.txt

@L041S
Copy link

L041S commented Nov 20, 2024

Same here, daily api reached and error 190

@Kohle81
Copy link

Kohle81 commented Nov 20, 2024

Because of this problem, none of my devices are responding. Has anyone found a solution to get it working again?

@L041S
Copy link

L041S commented Nov 20, 2024

It looks like the problem is from SwitchBot api

OpenWonderLabs/SwitchBotAPI#365

@corasaniti
Copy link

Hi, As written here in this my Issue

OpenWonderLabs/SwitchBotAPI#365

Since yesterday everything has stopped working. I am not able to use API1.0 and API1.1.
All commands fail with error 190.

{"statusCode":190,"body":{},"message":"Requests reached the daily limit"}

I am not even able to call getDevices
https://api.switch-bot.com/v1.0/devices
https://api.switch-bot.com/v1.1/devices

I hope they can fix it asap, so I can't use Nodered and Home-bridge
Thank

@corasaniti
Copy link

Update
Since this morning API1.0 and API1.1 are working correctly
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

10 participants