OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://openwonderlabs.github.io/homebridge-switchbot/
ISC License
244 stars 54 forks source link

Bug: API Request Failed #665

Closed lawiltshire closed 1 year ago

lawiltshire commented 1 year ago

Describe The Bug

When trying to open or close blinds in HomeKit app. Doesn’t respond. Homebridge logs show error

To Reproduce

Controlling blinds in HomeKit

Expected behavior

Open or close blinds

Relevant log output

API Request: TypeError: Cannot read properties of undefined (reading 'map'),

Config for homebridge-switchbot

"name": "SwitchBot",
            "credentials": {
                "token": "xxxxxxxx",
                "secret": "xxxxxxx",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "refreshRate": 10
            },
            "platform": "SwitchBot"
        }

Screenshots

No response

Device & Model

Switchbot tilt blinds

Node.js Version

14.7.6

NPM Version

7.22.0

Homebridge Version

1.3.4

Homebridge Switchbot Plugin Version

2.5.1

Homebridge Config UI X Plugin Version

4.50.2

Operating System

Raspian pi

lawiltshire commented 1 year ago

I’m not a pro with homebridge but noticed the link to say report bug so I have tried my best to provide all the info I can. Sorry if I have missed anything

donavanbecker commented 1 year ago

I got this to recently. Might be something ok SwitchBot side or you reaches your daily refresh limit.

lawiltshire commented 1 year ago

Hey, I contacted Switchbot support and they have upped the refresh limit

“Please kindly notice the amount of API calls per day is limited to 10000 times now.”

DJay-X commented 1 year ago

Same problem here. No device is responding via homebride anymore. 🫤 [4.2.2023, 18:16:20] [SwitchBot] API Request: TypeError: Cannot read properties of undefined (reading 'map'), Submit Bugs Here: https://tinyurl.com/SwitchBotBug

SwitchBot API Status is showing “Operational”. 🤷‍♂️ https://status.switch-bot.com

However, in the SwitchBot App there is an error in the option for developers, showing “Failed to load, please try again later”. Usually, my token is showing up there.

Samstag, 04 Feb  2023 18:35:34

lawiltshire commented 1 year ago

I thought mine was fixed but mine does it every day around about midday and then resolves after midnight Thanks LukeOn 4 Feb 2023, at 17:21, DJay @.***> wrote: Same problem here. No device is responding via homebride anymore. 🫤 [4.2.2023, 18:16:20] [SwitchBot] API Request: TypeError: Cannot read properties of undefined (reading 'map'), Submit Bugs Here: https://tinyurl.com/SwitchBotBug

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

donavanbecker commented 1 year ago

I am experiencing this as well. This has to be a SwitchBot API issue

FlorinFrance commented 1 year ago

same here

GConger66 commented 1 year ago

Im getting this as well...I have tried everything removed all devices from switchbot app, removed from Hoobs, reinstalled everything same error...I do have the correct token

donavanbecker commented 1 year ago

Im getting this as well...I have tried everything removed all devices from switchbot app, removed from Hoobs, reinstalled everything same error...I do have the correct token

This plugin hasn't been designed for HOOBs, so I would recommend switching to Homebridge.

GConger66 commented 1 year ago

Im getting this as well...I have tried everything removed all devices from switchbot app, removed from Hoobs, reinstalled everything same error...I do have the correct token

This plugin hasn't been designed for HOOBs, so I would recommend switching to Homebridge.

agreed! seems to be working with homebridge no problem

GConger66 commented 1 year ago

can you please reopen this because of course now the same issue is happening in homebridge...exact same api error in homebridge. Any fixes?