AdyRock / com.switchbot

GNU General Public License v3.0
9 stars 5 forks source link

Switchbot Motion Sensor W1101500, flows not working in Homey Pro 2023 #85

Open Dragonovic opened 10 months ago

Dragonovic commented 10 months ago

I've been testing this motion sensor a lot together with Homey Pro 2023. Of course using it in a flow; "When the motion sensor is on, then do...." When testing, clearly the Switchbot sensor registers the motion (ligths indicate that, and I can see it in the logs) but in the flow nothing happens.

I've removed and reinstalled:

I also have a Switchbot light-bulb which is working fine with the Homey Flows. No issues.,

Also checked with https://tools.developer.homey.app. Logs are filled (see below) but again, in the homey flow the motion activation is not triggered.

Am getting an error when pressing "read status" in the "Get Status" screen (debug use):

tools.developer.homey.app
Error: Invalid response code: 190 param no deviceId

If other info is required, let me know.

switchbot W1101500 homey log .txt

AdyRock commented 10 months ago

Have you enable the cloud service for the motion sensor?

Dragonovic commented 10 months ago

Tried but failed... See print screen. Can select anything when I go to the cloud on / off setting. Screenshot_2023-10-22-22-47-01-18_4c78499a84130131c925091a7f26a9c9

AdyRock commented 10 months ago

Try moving the hub and motion sensors closer together as I guess they can't connect to each other.

JurekChleb commented 1 month ago

Hi, have same problem, motion sensor detects motion (light goes on + s-b app registers motion) nothing happens in Homey (set a simple push notification triggered by motion alarm on - nothing comes to me)… any solution pls 🙏🙏🙏?

AdyRock commented 1 month ago

Can you set the log in the app settings to Basic Information, trigger the motion, and then about 30 seconds later, tap on Send Log. Screenshot_20240723_221216_Homey.jpg

JurekChleb commented 1 month ago

Just sent log. This is what the app reports:Same timeframe.Best and thanks. JWysłane z iPhone'aWiadomość napisana przez Adrian Rockall @.***> w dniu 23/7/24, o godz. 23:14: Can you set the log in the app settings to Basic Information, trigger the motion, and then about 30 seconds later, tap on Send Log.

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

AdyRock commented 1 month ago

As suspected, no updates are being received. Could you leave the logging set to Basic Information and update the app to the latest test version (1.1.57). Once it has finished starting up, send the log again so I can see if it is registering the webhook OK.

JurekChleb commented 1 month ago

Done just a minute ago. Additionally screen from app attached. Thanks and best, J.

On Wed, Jul 24, 2024 at 5:56 AM Adrian Rockall @.***> wrote:

As suspected, no updates are being received. Could you leave the logging set to Basic Information and update the app to the latest test version (1.1.57). Once it has finished starting up, send the log again so I can see if it is registering the webhook OK.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/85#issuecomment-2246814571, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJZJFOXWVBNDCFXKERNWYCLZN4QXRAVCNFSM6AAAAABLLGFETCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWHAYTINJXGE . You are receiving this because you commented.Message ID: <AdyRock/com. @.***>

-- Jurek Chlebowski

AdyRock commented 1 month ago

That is a very short log. Did you have the log set to Basic Information when the app restarted? You should see something like:


* 2024-07-24T05:39:03.331Z
* ****** App has initialised. ******

* 2024-07-24T05:39:03.472Z
* server listening 0.0.0.0:1234

* 2024-07-24T05:39:04.008Z
* server got: Are you there SwitchBot? from 192.168.1.32:1234

* 2024-07-24T05:39:04.390Z
* SwitchBot webhook already registered

* 2024-07-24T05:39:04.726Z
* Polling hub: 1346 API calls today

* 2024-07-24T05:39:04.729Z
* Next HUB polling interval = 15s: 1346 API calls today

* 2024-07-24T05:39:07.322Z
* Homey Webhook registered for devices {
  "$keys": [
 ...

Could you restart the app again with the log option set and send the log again?

JurekChleb commented 1 month ago

I have cleared it before sending, but I will send it again in a second without clearing it, it will be since 6:56 am.

Let me know if it is OK.

Many thanks for your kind support Adrian.

J.

On Wed, Jul 24, 2024 at 7:42 AM Adrian Rockall @.***> wrote:

That is a very short log. Did you have the log set to Basic Information when the app restarted? You should see something like:

  • 2024-07-24T05:39:03.331Z

  • ** App has initialised. **

  • 2024-07-24T05:39:03.472Z

  • server listening 0.0.0.0:1234

  • 2024-07-24T05:39:04.008Z

  • server got: Are you there SwitchBot? from 192.168.1.32:1234

  • 2024-07-24T05:39:04.390Z

  • SwitchBot webhook already registered

  • 2024-07-24T05:39:04.726Z

  • Polling hub: 1346 API calls today

  • 2024-07-24T05:39:04.729Z

  • Next HUB polling interval = 15s: 1346 API calls today

  • 2024-07-24T05:39:07.322Z

  • Homey Webhook registered for devices { "$keys": [ ...

Could you restart the app again with the log option set and send the log again?

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/85#issuecomment-2246947931, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJZJFOSSFQTVATLWZBZBNU3ZN45D7AVCNFSM6AAAAABLLGFETCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWHE2DOOJTGE . You are receiving this because you commented.Message ID: <AdyRock/com. @.***>

-- Jurek Chlebowski

JurekChleb commented 1 month ago

Hi Adrian,

have you managed to have a look? Many thanks in advance...

Best

J.

On Wed, Jul 24, 2024 at 8:10 AM Jurek Chlebowski @.***> wrote:

I have cleared it before sending, but I will send it again in a second without clearing it, it will be since 6:56 am.

Let me know if it is OK.

Many thanks for your kind support Adrian.

J.

On Wed, Jul 24, 2024 at 7:42 AM Adrian Rockall @.***> wrote:

That is a very short log. Did you have the log set to Basic Information when the app restarted? You should see something like:

  • 2024-07-24T05:39:03.331Z

  • ** App has initialised. **

  • 2024-07-24T05:39:03.472Z

  • server listening 0.0.0.0:1234

  • 2024-07-24T05:39:04.008Z

  • server got: Are you there SwitchBot? from 192.168.1.32:1234

  • 2024-07-24T05:39:04.390Z

  • SwitchBot webhook already registered

  • 2024-07-24T05:39:04.726Z

  • Polling hub: 1346 API calls today

  • 2024-07-24T05:39:04.729Z

  • Next HUB polling interval = 15s: 1346 API calls today

  • 2024-07-24T05:39:07.322Z

  • Homey Webhook registered for devices { "$keys": [ ...

Could you restart the app again with the log option set and send the log again?

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/85#issuecomment-2246947931, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJZJFOSSFQTVATLWZBZBNU3ZN45D7AVCNFSM6AAAAABLLGFETCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWHE2DOOJTGE . You are receiving this because you commented.Message ID: <AdyRock/com. @.***>

-- Jurek Chlebowski

-- Jurek Chlebowski