Git Product home page Git Product logo

Comments (13)

realpicard avatar realpicard commented on July 21, 2024

Hi! I hope someone can help. My homebridge server was running flawlessly for a long time, controlling a few Switchbot Tilts. Recently, it started breaching the limit of requests to the switchbot API. Best I can tell, it is because every 10 minutes it tries to get status of the blinds, but gets the following error:
[09/02/2024, 19:00:02] [SwitchBot] Blind Tilt: KN1 Unknown statusCode: 500, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[09/02/2024, 19:00:02] [SwitchBot] Blind Tilt: KN1 Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
I can't figure this one out. I would really appreciate it if Donavan or someone else could help, or point me in the right direction. Thank you!

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 21, 2024

Looking at your config, it looks like you are using the updateRate and RefreshRate wrong. Looks like it is opposite of the design, so you are using the default refreshRate. Set a per device, refreshRate and remove the updateRate.

from homebridge-switchbot.

realpicard avatar realpicard commented on July 21, 2024

I removed the updateRate (set it back to default), but my problem predates me messing with it. Here is what I am getting today:
[10/02/2024, 21:10:25] [SwitchBot] Blind Tilt: FR1 Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[10/02/2024, 21:10:25] [SwitchBot] Blind Tilt: FR1 Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[10/02/2024, 21:10:25] [SwitchBot] Blind Tilt: FR3 Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[10/02/2024, 21:10:25] [SwitchBot] Blind Tilt: FR3 Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

from homebridge-switchbot.

realpicard avatar realpicard commented on July 21, 2024

Here is my revised config:

"options": {
                "devices": [
                    {
                        "deviceId": "fae31454c325",
                        "configDeviceName": "KN1",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "C1AD487BB291",
                        "configDeviceName": "FR1",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "EDEF7496290F",
                        "configDeviceName": "FR2",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "CB2519D8D4C7",
                        "configDeviceName": "FR3",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "F18C577FE4B5",
                        "configDeviceName": "FR4",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "D26D27A8299B",
                        "configDeviceName": "FR5",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "C2BE046D57C9",
                        "configDeviceName": "MB1",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "D4F91D93322C",
                        "configDeviceName": "MB2",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    },
                    {
                        "deviceId": "F1044586BCE3",
                        "configDeviceName": "MB3",
                        "configDeviceType": "Blind Tilt",
                        "connectionType": "OpenAPI",
                        "blindTilt": {
                            "mode": "only_up"
                        }
                    }
                ],
                "pushRate": 5
            },
            "platform": "SwitchBot"

from homebridge-switchbot.

realpicard avatar realpicard commented on July 21, 2024

I did update this plugin to 3.3.0 today

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 21, 2024

@realpicard add refreshRate to each device. With them being window covers you really don't need to refresh as much.

image

Maybe set to 900? Would be ever 15 mins.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 21, 2024

Also remove the platform pushRate

from homebridge-switchbot.

realpicard avatar realpicard commented on July 21, 2024

I don't see pushRate in the GUI, should I just remove it from the config text?

from homebridge-switchbot.

realpicard avatar realpicard commented on July 21, 2024

Sorry, found it and removed.

from homebridge-switchbot.

realpicard avatar realpicard commented on July 21, 2024

I just tried opening one of the blinds from the Accessories tab in HomeBridge, and it did open. But here is the log:
[10/02/2024, 21:40:03] [SwitchBot] Blind Tilt: KN1 Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[10/02/2024, 21:40:03] [SwitchBot] Blind Tilt: KN1 Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 21, 2024

Retry re-generating your token/secret and put the new one in your config

from homebridge-switchbot.

github-actions avatar github-actions commented on July 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from homebridge-switchbot.

github-actions avatar github-actions commented on July 21, 2024

This issue has been closed as no further activity has occurred.

from homebridge-switchbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.