[APP][Cloud & Pro] SwitchBot (Release 1.1.43, Test 1.1.48)

Hi @Adrian_Rockall, I have sent the log file

Hmm, the log is showing a lot of “Internal server errors” which is causing the app to retry the fetch and that apparently using the call quota.
I need to find a way to fix the retries so they limit.
However, I’m not sure why you are getting the Internal server errors. Could you raise a support request with Switchbot via their phone app and ask them to check your account, explaining that you are seeing the errors.

sure I will raise a request at Swichbot

1 Like

I had a chat with Switchbot support. They told me everything looks fine, but she had no access to API information. She did push a new vermware version to my hub. Since that is installed I did not see error messages yet.

Fingers crossed :crossed_fingers:

Last night, the error message reappeared. Log indicates too many requests. Unfortunately, Switchbot support cannot help me in this area :frowning:

When the error occurs, could you clear the log and then set the Log to Basic Information in the app settings. Wait for some more errors to appear in the log and then send the log.

I have been looking at the timings in your previous log and it seems like the calls are not always failing, but only errors are logged by default, so i can’t say for sure. Hopefully, I can also see the route that is being taken to try and track down why it is getting to the rate limit.

WIth Switchbot Hub2 having matter support. Does it mean that we can connect it directly to the Homey Hub so it operates locally now? Or am I not understanding the hub2’s matter connection (like it serves as its’ own hub and doesn’t connect to other hubs.) I was thinking it might connect to another hub because it kept saying that Apple Homekit would connect to it through Matter.

It means you can include it and hosted devices in Homey without an app. Only certain devices will be compatible and the hub is limited to hosting 6 devices from what I can remember.
I must admit, I don’t know if it can be added to more than one controller, so you might have to choose either Homey or something else.

Hi @Adrian_Rockall , i’m using a switchbot hub as an IR remote for some devices. Setting it up and adding it to Homey was quite easy and I have some flows that work great, most of the time.

I’ve been getting an error from time to time and I can’t figure out what’s wrong. The log states: No OAuth2 Client Found. I am able to “repair” the app in the settings, log in again, and then the app and flows work again. After some period of time, days/weeks, I get the same error again and the connection is lost.

I have been searching for a solutions but haven’t been able to find the root cause of the problem. Do you have any idea how I can solve this?

Thanks in advance!

Strange as the token should be valid for a year now. It used to be 1 month, but they extended it a while ago.

Do know if it could be related to an app or Homey restart?

Sorry if this is a simple question, but I am completely new to Homey and Switchbot.

I have a Homey pro 2023 and Sonos and would like to control the Sonos with a physical (!) remote.

Before purchasing a Switchbot, is this correct?

  • Switchbot can learn the IR codes of each remote
  • Switchbot can be connected to Homey via the app described here
  • I can then create flows in Homey that connect a physical button of the remote to Sonos (e.g. louder, softer, mute, etc.)

Or is the Switchbot-app just a replacent for the remote?
In this case that’s useless for me: I already have the Sonos-app to control my Sonos, I don’t need the Switchbot-app to do that :slight_smile:
I just want a physical remote.

A response is appreciated!

I’m not sure I understand what you mean, but the Switchbot hub can learn IR codes and you assign them to a virtual ‘remote device’ in their app.
The Homey app can then include that remote as a device, which can be controlled with buttons in the Homey device of the Homey app or via flows.

The communication is one way, so the IR codes are only ever sent to the physical device and won’t respond to button presses on the original physical remote.

Hi Adrian, thanks for the quick reply. I did not restart the app or Homey myself, and I don’t have any flows restarting anything.

The same problem does indeed occur when I do restart the homey, or the app, so I stopped doing that, but it seems to be happening as well without a restart.

Hi Adrian, thanks for the quick reply!
Sorry if I’m not clear.

Now I think about it: the purpose of the Switchbot is to get rid of remote controls.
And I want the opposite: I want to use remotes (at least for my Sonos)
So, I think I’ve got it all wrong.

Anyway, this is what I was thinking:

I have some old remote controls from my stereo, dvd player etc.
I would like to use those remotes to control my Sonos.
I understood it is not possible to learn Homey the IR-codes of a remote control.
So I cannot directly make a flow in Homey like this: when I push button X then increase volume.

So I thougt maybe Switchbot can be ‘the man in the middle’.
First: learn Switchbot what the IR-codes means and then connect Switchbot to Homey with the app.
So when I push button X on my remote, Switchbot recognizes it.
Because the Switchbot is connected with Homey, Homey also knows what is happening and I can make a flow like ‘if button X is pressed then increase volume’.

But I probably misunderstood the use of the Switchbot. :slight_smile:

OK, I understand now and the SwitchBot hub won’t be suitable. I haven’t seen anything to do what you want either, so I can’t be any help, sorry.

Thanks anyway, I got it all wrong :grinning:

Hi @Adrian_Rockall , maybe you missed my message :face_with_peeking_eye:. Do you have any advice on what I could do to prevent this disconnect from happening? Or something I can test to find the root cause?

If I can’t solve this issue, would buying a switchbot hub 2 with matter be a good “workaround”?

I saw your message, but I am still pondering on that one, trying to figure out what it could be or how to diagnose it further.

1 Like

Hi Adrian,

As my daily limits still appear, I also posted the error message on the API developer’s Github. They refer me back to you :slight_smile:

> It is not related to homey. Switchbot support directed me to this thread. The limit is a response from switchbot

It is related to homey, because homey is requesting updates to the API and that is causing you to go over your daily limit.