# \[APP\]\[Cloud & Pro\] SwitchBot (Release 2.0.87, Test 2.0.96)

**URL:** <https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296>\
**Category:** Apps\
**Tags:** app\
**Created:** [February 2, 2021, 7:31pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296 "2021-02-02T19:31:36Z")\
**Posts on this page:** 20\
**Page:** 53

<div class="post-metadata">

**Author:** ![Sannie](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sannie](https://community.homey.app/u/Sannie)\
**Post date:** [April 3, 2024, 12:27pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1044 "2024-04-03T12:27:33Z")

</div>

Hi @Adrian_Rockall, I have sent the log file

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 3, 2024, 1:11pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1045 "2024-04-03T13:11:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sannie](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sannie](https://community.homey.app/u/Sannie)\
**Post date:** [April 3, 2024, 2:12pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1046 "2024-04-03T14:12:49Z")

</div>

sure I will raise a request at Swichbot

---

<div class="post-metadata">

**Author:** ![Sannie](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sannie](https://community.homey.app/u/Sannie)\
**Post date:** [April 3, 2024, 2:51pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1047 "2024-04-03T14:51:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 3, 2024, 3:00pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1048 "2024-04-03T15:00:33Z")

</div>

Fingers crossed 🤞

---

<div class="post-metadata">

**Author:** ![Sannie](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sannie](https://community.homey.app/u/Sannie)\
**Post date:** [April 5, 2024, 6:21am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1049 "2024-04-05T06:21:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 5, 2024, 9:45am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1050 "2024-04-05T09:45:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tannersnacks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tannersnacks/32/89901_2.png) [@tannersnacks](https://community.homey.app/u/tannersnacks)\
**Post date:** [April 5, 2024, 9:07pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1051 "2024-04-05T21:07:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 5, 2024, 9:17pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1052 "2024-04-05T21:17:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Paul\_Graumans](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_graumans/32/81084_2.png) [@Paul\_Graumans](https://community.homey.app/u/Paul_Graumans)\
**Post date:** [April 8, 2024, 8:21am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1053 "2024-04-08T08:21:57Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 8, 2024, 8:44am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1054 "2024-04-08T08:44:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Edweena](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edweena/32/87487_2.png) [@Edweena](https://community.homey.app/u/Edweena)\
**Post date:** [April 8, 2024, 9:10am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1055 "2024-04-08T09:10:42Z")

</div>

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 🙂  
I just want a physical remote.

Thanks!  
A response is appreciated!

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 8, 2024, 9:31am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1056 "2024-04-08T09:31:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Paul\_Graumans](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_graumans/32/81084_2.png) [@Paul\_Graumans](https://community.homey.app/u/Paul_Graumans)\
**Post date:** [April 8, 2024, 10:05am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1057 "2024-04-08T10:05:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Edweena](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edweena/32/87487_2.png) [@Edweena](https://community.homey.app/u/Edweena)\
**Post date:** [April 8, 2024, 10:52am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1058 "2024-04-08T10:52:48Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 8, 2024, 11:09am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1059 "2024-04-08T11:09:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Edweena](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edweena/32/87487_2.png) [@Edweena](https://community.homey.app/u/Edweena)\
**Post date:** [April 8, 2024, 11:31am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1060 "2024-04-08T11:31:40Z")

</div>

Thanks anyway, I got it all wrong 😀

---

<div class="post-metadata">

**Author:** ![Paul\_Graumans](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_graumans/32/81084_2.png) [@Paul\_Graumans](https://community.homey.app/u/Paul_Graumans)\
**Post date:** [April 8, 2024, 12:00pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1061 "2024-04-08T12:00:06Z")

</div>

Hi @Adrian_Rockall , maybe you missed my message 🫣. 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”?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 8, 2024, 12:33pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1062 "2024-04-08T12:33:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sannie](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sannie](https://community.homey.app/u/Sannie)\
**Post date:** [April 10, 2024, 6:56am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1063 "2024-04-10T06:56:55Z")

</div>

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 🙂

```auto
> 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.

```

> <https://github.com/OpenWonderLabs/SwitchBotAPI/issues/291#issuecomment-2046132976>
>
> \### Current Situation
> 
> I get the following messages when I try to use the API fo…r my home automations. I have no indication on wat is allowed. I use 1 switch and 5 curtain drivers. I like to implement more, but due to the limit I am hassitant to by new ones
> 
> \* 2024-04-08T20:24:27.901Z
> !!!!!! Curtains getHubDeviceValues: 190: Requests reached the daily limit (2347) API calls
> 
> \* 2024-04-08T20:24:27.935Z
> !!!!!! Bot getHubDeviceValues: 190: Requests reached the daily limit (2347) API calls
> 
> In my opinion I only send a few requests a day. 6 to start/close curtains and a few (max 15) to trigger a switch to start a vent.
> 
> I am using a developer app on Homey smarthome platform
> 
> 
> \### Logs
> 
> \`\`\`markdown
> \* 2024-04-08T20:24:27.901Z
> !!!!!! Curtains getHubDeviceValues: 190: Requests reached the daily limit (2347) API calls
> 
> \* 2024-04-08T20:24:27.935Z
> !!!!!! Bot getHubDeviceValues: 190: Requests reached the daily limit (2347) API calls
> \`\`\`
> 
> 
> \### Configuration
> 
> \`\`\`json
> \-
> \`\`\`
> 
> 
> \### Environment
> 
> Homey
> 
> \### Additional Context
> 
> \-

[Previous page](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296.md?page=52)

[Next page](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296.md?page=54)
