# \[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:** 57

<div class="post-metadata">

**Author:** ![Michael\_Evans](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_evans/32/80256_2.png) [@Michael\_Evans](https://community.homey.app/u/Michael_Evans)\
**Post date:** [May 24, 2024, 5:54am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1124 "2024-05-24T05:54:46Z")

</div>

There’s an auto lock feature for the lock in the settings of the SwitchBot app.

---

<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:** [May 24, 2024, 9:40am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1125 "2024-05-24T09:40:43Z")

</div>

This is from the API documentation:  
The response may contain the following codes and messages,

| Status Code | Body Content | Message | Description |
| --- | --- | --- | --- |
| 100 | Device list object | success | Returns an object that contains two device lists |
| n/a | n/a | Unauthorized | Http 401 Error. User permission is denied due to invalid token. |
| 190 | n/a | System error | Device internal error due to device states not synchronized with server |

All I can suggest is to contact SwitchBot via their mobile app and explain the issue. They will probably say they don’t handle API problems, so make sure you quote the error code and message from their document to make sure they check you account state.

I will also report it to my contact again, so they are aware that this problem is getting worse.

---

<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:** [May 24, 2024, 9:48am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1126 "2024-05-24T09:48:41Z")

</div>

> [@TornadoBarrage](#):
>
> I checked the switchbot app to make the automation but doesnt have the option to lock under “then”.

Do you mean these ones:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c83b9b0b3441da12ee4b3e4f94c0019a4aeed0c5.png)

---

<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:** [May 24, 2024, 10:02am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1127 "2024-05-24T10:02:26Z")

</div>

As a quick test, could you switch off your phones Bluetooth and then try controlling the devices from the SwitchBot phone app. I believe the phone app will use direct BLE connections if it can and revert back to cloud if it’s not there. This might rule out any issues with the hub not being close enough to the devices and therefore not synchronising the data with the cloud. However, this is just a theory and not based on firm knowledge 🙂

---

<div class="post-metadata">

**Author:** ![Ben](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ben/32/12538_2.png) [@Ben](https://community.homey.app/u/Ben)\
**Post date:** [May 24, 2024, 10:28am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1128 "2024-05-24T10:28:26Z")

</div>

I contacted Switchbot and waiting for their response.

Thanks

---

<div class="post-metadata">

**Author:** ![Lipas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lipas/32/72447_2.png) [@Lipas](https://community.homey.app/u/Lipas)\
**Post date:** [May 24, 2024, 11:30am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1129 "2024-05-24T11:30:54Z")

</div>

@Adrian_Rockall any update on this case?

---

<div class="post-metadata">

**Author:** ![TornadoBarrage](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@TornadoBarrage](https://community.homey.app/u/TornadoBarrage)\
**Post date:** [May 24, 2024, 11:07pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1130 "2024-05-24T23:07:17Z")

</div>

the switch bot app that isn’t in homey, my issue is that there isn’t a “When the door is closed” option in the homey app only when the contact alarm is on or off

---

<div class="post-metadata">

**Author:** ![TornadoBarrage](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@TornadoBarrage](https://community.homey.app/u/TornadoBarrage)\
**Post date:** [May 24, 2024, 11:10pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1131 "2024-05-24T23:10:14Z")

</div>

I want it to lock when the door closes not at a certain amount of time, I cannot use the magnet part for the lock because of how my door is, so im trying to make a flow where when the door sensor detects that the door is closed it locks it right there, had moments where I held the door open and it activates

---

<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:** [May 25, 2024, 7:46am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1132 "2024-05-25T07:46:12Z")

</div>

Sorry, you have totally confused me, as now I don’t know what app you are referring to for what.  
Also you first asked about an action to lock the door, but now you seem to be asking about a trigger for when the door is closed.  
Maybe you could start the question again, stating what you want from the Homey app, as I have no control over the SwitchBot phone app.

---

<div class="post-metadata">

**Author:** ![TornadoBarrage](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@TornadoBarrage](https://community.homey.app/u/TornadoBarrage)\
**Post date:** [May 25, 2024, 8:52pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1134 "2024-05-25T20:52:02Z")

</div>

I would like to have “When the door is closed” as a trigger option to lock the door right when it closes.

Sorry, I was complaining about my other issue with the switchbot phone app, I wasn’t hoping you would fix the switchbot phone app issue

---

<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:** [May 25, 2024, 10:28pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1135 "2024-05-25T22:28:02Z")

</div>

OK, “The contact alarm turned on” is the door closed trigger. The app uses the standard capability but I rename it in the device view to “Door Closed”. However, there is no way to rename the standard Flow trigger that comes with the capability, so it still says contact alarm.

But, the issue is, SwitchBot don’t send a webhook when the door is opened or closed, so the app can only detect the state change by polling the API. As SwitchBot impose a limit to the number of API calls per day, the polling is slow and can miss the event. I, and others, have requested that information to be sent via a webhook for a long time but still no change.

---

<div class="post-metadata">

**Author:** ![TornadoBarrage](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@TornadoBarrage](https://community.homey.app/u/TornadoBarrage)\
**Post date:** [May 25, 2024, 10:50pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1136 "2024-05-25T22:50:04Z")

</div>

Oh i thought contact alarm on is when its activated either open or closed and contact alarm off is when its not doing anything

---

<div class="post-metadata">

**Author:** ![SamHomey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/samhomey/32/79234_2.png) [@SamHomey](https://community.homey.app/u/SamHomey)\
**Post date:** [May 30, 2024, 8:09pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1137 "2024-05-30T20:09:16Z")

</div>

Sorry if this has been asked before (hard to search here).

I am having periodic issues with my SwitchBot Switches not responding to Homey. See screenshot from within SwitchBot logs. I am using a Hub. I tried doing the Repair.

Any tips on how to stop this from happening?

 ![IMG_4466](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/b/5bf05596a216cef64bf97bf1c1ad30444ba13df9.png)

---

<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:** [May 30, 2024, 8:35pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1138 "2024-05-30T20:35:21Z")

</div>

Can you open the app settings page, select the Log tab and then tap on Send Log.

---

<div class="post-metadata">

**Author:** ![SamHomey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/samhomey/32/79234_2.png) [@SamHomey](https://community.homey.app/u/SamHomey)\
**Post date:** [May 30, 2024, 9:16pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1139 "2024-05-30T21:16:50Z")

</div>

Yes, I just sent with the “detailed” option. Thank you 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:** [May 30, 2024, 11:25pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1140 "2024-05-30T23:25:33Z")

</div>

Now you have the advanced option enabled, could you send the Log again after you see a new error. The Log i have only has a few entries and no errors are showing.

---

<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:** [May 31, 2024, 7:13pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1141 "2024-05-31T19:13:07Z")

</div>

I have had a reply from my contact at SwitchBot saying they will review the error 190 issues next week, so fingers crossed it will be resolved soon.

---

<div class="post-metadata">

**Author:** ![Ben](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ben/32/12538_2.png) [@Ben](https://community.homey.app/u/Ben)\
**Post date:** [June 3, 2024, 3:07pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1142 "2024-06-03T15:07:32Z")

</div>

thanks

---

<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:** [June 6, 2024, 7:18am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1143 "2024-06-06T07:18:19Z")

</div>

Any idea what’s the cause of this message?

- 2024-06-06T07:11:54.272Z  
!!! Invalid response: No OAuth2 Client Found

---

<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:** [June 6, 2024, 8:37am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1144 "2024-06-06T08:37:00Z")

</div>

It means you are not logged in. Try using the repair option on one of your SwitchBot devices in Homey. Session tokens last for 1 year, so maybe it has expired.

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

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