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

<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:** [July 14, 2024, 8:18am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1205 "2024-07-14T08:18:56Z")

</div>

So, basically that’s just saying you / I would need to add the line: `#include "esp_private/esp_int_wdt.h"` to the code. You might find just putting that before the include line for the `#include "AsyncElegantOTA"` might fix the issue.

---

<div class="post-metadata">

**Author:** ![Domino1707](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/domino1707/32/79248_2.png) [@Domino1707](https://community.homey.app/u/Domino1707)\
**Post date:** [July 14, 2024, 8:23am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1206 "2024-07-14T08:23:39Z")

</div>

for sad - does not work.

It throws the following error:

```auto
/Users/dominic/Documents/Arduino/libraries/AsyncElegantOTA/src/AsyncElegantOTA.h:18:14: fatal error: esp_int_wdt.h: No such file or directory
   18 | #include "esp_int_wdt.h"

```

---

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

</div>

OK, so you will need to include the full `"esp_private/esp_int_wdt.h"` in that #include. so locate the file and modify the line.

Edit: I am going out now, so I will try to take a look later.

---

<div class="post-metadata">

**Author:** ![Domino1707](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/domino1707/32/79248_2.png) [@Domino1707](https://community.homey.app/u/Domino1707)\
**Post date:** [July 14, 2024, 9:27am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1208 "2024-07-14T09:27:54Z")

</div>

> [@Adrian\_Rockall](#):
>
> Edit: I am going out now, so I will try to take a look later.

Thank you! To be honest for the moment i just do not really know where to change…

---

<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:** [July 14, 2024, 2:39pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1209 "2024-07-14T14:39:45Z")

</div>

I have updated the repo and the instructions to replace the obsolete library.

---

<div class="post-metadata">

**Author:** ![CSxx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/csxx/32/79444_2.png) [@CSxx](https://community.homey.app/u/CSxx)\
**Post date:** [July 14, 2024, 4:31pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1210 "2024-07-14T16:31:44Z")

</div>

Hello  
related to switchbot lock pro i would like to know if there is a possibility only to unlock the door without opening.  
In the app i can always choose between the two options → unlock and opening.

In the homey app i can only open the door which is not always wished.

Thanks a lot for feedback

---

<div class="post-metadata">

**Author:** ![Domino1707](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/domino1707/32/79248_2.png) [@Domino1707](https://community.homey.app/u/Domino1707)\
**Post date:** [July 14, 2024, 7:32pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1211 "2024-07-14T19:32:51Z")

</div>

Hey, @Adrian_Rockall.

Tried your new code - but a new error occurs:

```auto
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:58:6: error: variable or field 'handleRoot' declared void
   58 | void handleRoot( AsyncWebServerRequest* request )
      | ^ ~~~~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:58:18: error: 'AsyncWebServerRequest' was not declared in this scope
   58 | void handleRoot( AsyncWebServerRequest* request )
      | ^ ~~~~~~~~~~~~~~~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:58:41: error: 'request' was not declared in this scope
   58 | void handleRoot( AsyncWebServerRequest* request )
      | ^ ~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:65:6: error: variable or field 'handleNotFound' declared void
   65 | void handleNotFound( AsyncWebServerRequest* request )
      | ^ ~~~~~~~~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:65:22: error: 'AsyncWebServerRequest' was not declared in this scope
   65 | void handleNotFound( AsyncWebServerRequest* request )
      | ^ ~~~~~~~~~~~~~~~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:65:45: error: 'request' was not declared in this scope
   65 | void handleNotFound( AsyncWebServerRequest* request )
      | ^ ~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:472:6: error: variable or field 'WriteToBLEDevice' declared void
  472 | void WriteToBLEDevice( BLE_COMMAND* BLECommand )
      | ^ ~~~~~~~~~~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:472:24: error: 'BLE_COMMAND' was not declared in this scope
  472 | void WriteToBLEDevice( BLE_COMMAND* BLECommand )
      | ^ ~~~~~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:472:37: error: 'BLECommand' was not declared in this scope
  472 | void WriteToBLEDevice( BLE_COMMAND* BLECommand )
      | ^ ~~~~~~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:163:6: error: redefinition of 'void setup()'
  163 | void setup()
      | ^ ~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/sketch_jul14a.ino:1:6: note: 'void setup()' previously defined here
    1 | void setup() {
      | ^ ~~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:376:6: error: redefinition of 'void loop()'
  376 | void loop()
      | ^~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/sketch_jul14a.ino:6:6: note: 'void loop()' previously defined here
    6 | void loop() {
      | ^~~~
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino: In function 'void loop()':
/private/var/folders/w7/m3lx_0ns3tz2sg05tl50yhtc0000gn/T/.arduinoIDE-unsaved2024614-5575-s3poa8.u47j8/sketch_jul14a/SwitchBotBLEHub.ino:393:13: error: 'WriteToBLEDevice' was not declared in this scope; did you mean 'NimBLEDevice'?
  393 | WriteToBLEDevice( &BLECommand );
      | ^ ~~~~~~~~~~~~~~~
      | NimBLEDevice

exit status 1

Compilation error: variable or field 'handleRoot' declared void

```

---

<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:** [July 14, 2024, 9:03pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1212 "2024-07-14T21:03:20Z")

</div>

Did you edit the file to change the #define as shown in the new instructions?

---

<div class="post-metadata">

**Author:** ![Domino1707](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/domino1707/32/79248_2.png) [@Domino1707](https://community.homey.app/u/Domino1707)\
**Post date:** [July 14, 2024, 9:36pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1213 "2024-07-14T21:36:20Z")

</div>

You mean this:

change the line` ' #define ELEGANTOTA_USE_ASYNC_WEBSERVER 0' to '#define ELEGANTOTA_USE_ASYNC_WEBSERVER 1'`

yes I changed this - result is the error message in previous post.

Edit: added formatting

---

<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:** [July 15, 2024, 1:01pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1214 "2024-07-15T13:01:19Z")

</div>

Did you install the packages in step 7 as it seems there is an issue with the ESPAsyncWebServer?

---

<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:** [July 15, 2024, 1:16pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1215 "2024-07-15T13:16:34Z")

</div>

I have published a new test version that supports the water leak detector, but it only has the alarm and battery status.

The API doesn’t have nay way to silence the alarm, etc.

---

<div class="post-metadata">

**Author:** ![Domino1707](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/domino1707/32/79248_2.png) [@Domino1707](https://community.homey.app/u/Domino1707)\
**Post date:** [July 15, 2024, 2:11pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1216 "2024-07-15T14:11:16Z")

</div>

I´ll have a look this evening!

---

<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:** [July 15, 2024, 4:45pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1217 "2024-07-15T16:45:58Z")

</div>

I have added instruction to program the device with a bin file via the Flash Download Tool.  
If you still have issues getting the Arduino IDE to work then you could try that.

---

<div class="post-metadata">

**Author:** ![Domino1707](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/domino1707/32/79248_2.png) [@Domino1707](https://community.homey.app/u/Domino1707)\
**Post date:** [July 15, 2024, 7:53pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1218 "2024-07-15T19:53:14Z")

</div>

Hi Adrian,

I tried the ArduinoIDE-way without access.

Now I will give the bin file a try. For now just looking for a flash tool to use with Mac OS 😉

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [July 15, 2024, 8:53pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1219 "2024-07-15T20:53:46Z")

</div>

Hi Adrian,

For a little over a week, I’ve been having some issues with my Switchbot V2 curtains, local BLE setup, without hub, etc. From one moment to the next they didn’t work anymore from the Homey app (or flows), but work perfectly fine from the Switchbot iOS app.

Tonight I dug into it a bit deeper and noticed that the status of the curtains is returned (also in the log file I’ve just sent), but I’m unable to control the curtains. I’m using the ESP32 as well, but with and without the ESP connected I get a Network Request Timeout. Is there anything I’m missing? Any good tips, or ideas of what to try?

- Restarted the app
- Updated the 1.5.1 to 1.5.6 (test version) - same result

Just noticed a “response: No OAuth2 Client Found” - Thats from a not connected hub (used to control the TV), curtains are on BLE

Thanks 👍

---

<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:** [July 15, 2024, 10:40pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1220 "2024-07-15T22:40:07Z")

</div>

Are you using the latest version of the ESP code?  
I seem to remember at some point there was an issue with a case sensitive compare so the “fd:56:45:33:83:94” didn’t match “FD:56:45:33:83:94” and Homey changed from using lower case to upper case for the address. The lates code uses a case insensitive compare function to overcome the differences between Homey’s.

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [July 15, 2024, 11:00pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1221 "2024-07-15T23:00:36Z")

</div>

Thanks, don’t know when the latest version is released, my ESP has been running for over 6 months now, so probably have to update it. Will give that a try tomorrow 👍

Would it make sense that the status is still being updated, if I’m not running on the latest version?

---

<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:** [July 15, 2024, 11:22pm UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1222 "2024-07-15T23:22:50Z")

</div>

> [@Chris\_nl](#):
>
> Would it make sense that the status is still being updated, if I’m not running on the latest version?

Yes, the change was so the ESP32 could find the match to send the command.

---

<div class="post-metadata">

**Author:** ![Domino1707](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/domino1707/32/79248_2.png) [@Domino1707](https://community.homey.app/u/Domino1707)\
**Post date:** [July 16, 2024, 7:58am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1223 "2024-07-16T07:58:03Z")

</div>

Hey Adrian,

could you please give me a hint what this parameter does:

```auto
Set the value of the right hand field to 0x0

```

(Step 8)

---

<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:** [July 16, 2024, 8:18am UTC](https://community.homey.app/t/app-cloud-pro-switchbot-release-2-0-87-test-2-0-96/42296/1224 "2024-07-16T08:18:10Z")

</div>

It defines the start address where the code should be loaded

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

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