AdyRock / com.switchbot

GNU General Public License v3.0
11 stars 6 forks source link

Switchbot BOT and homey #114

Open mult1pl1c1ty opened 6 months ago

mult1pl1c1ty commented 6 months ago

When I connect the switchbot bot to homey (no Switchbot hub) then the switchbot app workds perfectly and the Homey hub works, but takes approx 20 seconds each time I press. Seems it's struggling to connect each time? Any ideas?

AdyRock commented 6 months ago

Homey's BLE is not great, so that is normal unfortunately.

mult1pl1c1ty commented 6 months ago

Damn. Doesn't look like I'll be using switch bit then. Cheers for the quick response

On Wed, 24 Apr 2024, 9:41 pm Adrian Rockall, @.***> wrote:

Homey's BLE is not great, so that is normal unfortunately.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2075804393, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHUG246U6SII4JSTJLTY7AKHNAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVHAYDIMZZGM . You are receiving this because you authored the thread.Message ID: @.***>

mult1pl1c1ty commented 6 months ago

Would buying the switchbot hub cure it through homey somehow?

On Wed, 24 Apr 2024, 10:10 pm Graham Kirkman, @.***> wrote:

Damn. Doesn't look like I'll be using switch bit then. Cheers for the quick response

On Wed, 24 Apr 2024, 9:41 pm Adrian Rockall, @.***> wrote:

Homey's BLE is not great, so that is normal unfortunately.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2075804393, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHUG246U6SII4JSTJLTY7AKHNAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVHAYDIMZZGM . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 6 months ago

It is much more responsive with the hub, typically 1 to 3 seconds to respond.

mult1pl1c1ty commented 6 months ago

Ok, thanks.

On Wed, 24 Apr 2024, 10:48 pm Adrian Rockall, @.***> wrote:

It is much more responsive with the hub, typically 1 to 3 seconds to respond.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2075903949, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHSF6PU3S4ZI4BNDFLDY7ASCRAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVHEYDGOJUHE . You are receiving this because you authored the thread.Message ID: @.***>

mult1pl1c1ty commented 6 months ago

Any chance the app will support the Hub mini anytime in the future?

On Wed, 24 Apr 2024 at 23:30, Graham Kirkman @.***> wrote:

Ok, thanks.

On Wed, 24 Apr 2024, 10:48 pm Adrian Rockall, @.***> wrote:

It is much more responsive with the hub, typically 1 to 3 seconds to respond.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2075903949, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHSF6PU3S4ZI4BNDFLDY7ASCRAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVHEYDGOJUHE . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 6 months ago

It already supports it. As it has no capabilities of its own, you can't add it to Homey, but any devices connected to it will be available.

mult1pl1c1ty commented 6 months ago

Oh. How do I add it? I can’t see it in the list of devices?

On Thu, 25 Apr 2024 at 20:24, Adrian Rockall @.***> wrote:

It already supports it. As it has no capabilities of its own, you can't add it to Homey, but any devices connected to it will be available.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078020324, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHSL5PJUM2A6Y5FFNODY7FJ5LAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGAZDAMZSGQ . You are receiving this because you authored the thread.Message ID: @.***>

mult1pl1c1ty commented 6 months ago

Sorry. I’ve just re read your email. Doh. I’ll give it a look

On Thu, 25 Apr 2024 at 22:00, Graham Kirkman @.***> wrote:

Oh. How do I add it? I can’t see it in the list of devices?

On Thu, 25 Apr 2024 at 20:24, Adrian Rockall @.***> wrote:

It already supports it. As it has no capabilities of its own, you can't add it to Homey, but any devices connected to it will be available.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078020324, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHSL5PJUM2A6Y5FFNODY7FJ5LAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGAZDAMZSGQ . You are receiving this because you authored the thread.Message ID: @.***>

mult1pl1c1ty commented 6 months ago

I guess I just do new device and select the bot? I’ve tried this but it seems to totally ignore the hub and just add the switch to bot as if there isn’t any hub? what am I doing wrong?

On Thu, 25 Apr 2024 at 22:01, Graham Kirkman @.***> wrote:

Sorry. I’ve just re read your email. Doh. I’ll give it a look

On Thu, 25 Apr 2024 at 22:00, Graham Kirkman @.***> wrote:

Oh. How do I add it? I can’t see it in the list of devices?

On Thu, 25 Apr 2024 at 20:24, Adrian Rockall @.***> wrote:

It already supports it. As it has no capabilities of its own, you can't add it to Homey, but any devices connected to it will be available.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078020324, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHSL5PJUM2A6Y5FFNODY7FJ5LAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGAZDAMZSGQ . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 6 months ago

Providing you select the Bot (hub) driver and it finds it then it's working. You don't see the hub at all but Homey sends commands to the cloud, which then sends the commands to the hub and that sends the commands to the Bot. I have just noticed the Bot (hub) is in the Wall Plug section.

mult1pl1c1ty commented 6 months ago

I just get "no new devices have been found"

I'll try again tomorrow...

On Thu, 25 Apr 2024, 10:23 pm Adrian Rockall, @.***> wrote:

Providing you select the Bot (hub) driver and it finds it then it's working. You don't see the hub at all but Homey sends commands to the cloud, which then sends the commands to the hub and that sends the commands to the Bot. I have just noticed the Bot (hub) is in the Wall Plug section.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078198551, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHQEWTPC34OJ2UIBLKLY7FX4RAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGE4TQNJVGE . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 6 months ago

Have you enabled cloud services for the Bot in the Switchbot app? Could you send the Detected log from the app settings page.

mult1pl1c1ty commented 6 months ago

Yes, I did! I'll send it soon...

On Fri, 26 Apr 2024, 12:10 am Adrian Rockall, @.***> wrote:

Have you enabled cloud services for the Bot in the Switchbot app? Could you send the Detected log from the app settings page.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078315152, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHRLICPFJMQO2OEF5Z3Y7GEOPAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGMYTKMJVGI . You are receiving this because you authored the thread.Message ID: @.***>

mult1pl1c1ty commented 6 months ago

Ok. So not much point me sending the log because I've currently got the switch running through alexa. I'm pretty sure the problem all stems from the fact that homey cant see the hub (so I can't add it as a device). Consequently when I add the switch its always adding it as BLE only...

On Fri, 26 Apr 2024, 8:09 am Graham Kirkman, @.***> wrote:

Yes, I did! I'll send it soon...

On Fri, 26 Apr 2024, 12:10 am Adrian Rockall, @.***> wrote:

Have you enabled cloud services for the Bot in the Switchbot app? Could you send the Detected log from the app settings page.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078315152, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHRLICPFJMQO2OEF5Z3Y7GEOPAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGMYTKMJVGI . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 6 months ago

No, as I said, Homey doesn't need to know about the hub as it just sends commands to the cloud. SwitchBot then sends the command to the hub that controls the device. If you send the log I can see if the Bot is available via the cloud. When you try to add the Bot (hub) device, do you successfully login to your SwitchBot account as part of the process?

mult1pl1c1ty commented 6 months ago

I think we may be at cross purposes (my fault)

Let me try to clarify When you say

"When you try to add the Bot (hub) device"

I presume you mean ad to the switchbot app? If so, then yes this all works and I do indeed successfully login to my switchbot account

If, however you mean do I add it to homey (as switchbot/ BOT HUB device IS one of the available selections in the switchbot app within homey) then NO

I've also added the Switchbot APP logs for you (from the Switchbot app/Hub Mini/Settings/Logs

Let me know if you need anything else? and thanks for helping.

On Fri, 26 Apr 2024 at 09:48, Adrian Rockall @.***> wrote:

No, as I said, Homey doesn't need to know about the hub as it just sends commands to the cloud. SwitchBot then sends the command to the hub that controls the device. If you send the log I can see if the Bot is available via the cloud. When you try to add the Bot (hub) device, do you successfully login to your SwitchBot account as part of the process?

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078931267, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHR5WCMBOKLKGHZWFDTY7IIHFAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYHEZTCMRWG4 . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 6 months ago

Unfortunately, I don't get the logs from the SwitchBot mobile app.

I do mean when you add the Bot to Homey.

image

When you select this, it should ask you to log into your SwitchBot account (unless you have already added a device via the cloud). Once you have logged in, you should then see the device.

The log I need is from the Homey - SwitchBot app - settings page - Detected tab

image

Click on Get HUB devices and once the list is full, tap on Send Log.

mult1pl1c1ty commented 6 months ago

Cool. So.

When I try to add the bot to Homey I do indeed get a sign in page (which I do and the page says 'you can close this page now") but then Homey just says it can't find any devices??

On Fri, 26 Apr 2024 at 10:09, Adrian Rockall @.***> wrote:

Unfortunately, I don't get the logs from the SwitchBot mobile app.

I do mean when you add the Bot to Homey. image.png (view on web) https://github.com/AdyRock/com.switchbot/assets/38184396/ad62eb69-44b9-4301-9814-89cd7ccac1ed When you select this, it should ask you to log into your SwitchBot account (unless you have already added a device via the cloud). Once you have logged in, you should then see the device.

The log I need is from the Homey - SwitchBot app - settings page - Detected tab image.png (view on web) https://github.com/AdyRock/com.switchbot/assets/38184396/9218f214-b68d-4a49-9da2-5ec8fdee33a7 Click on Get HUB devices and once the list is full, tap on Send Log.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078969131, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHUNFHGNEA5GCUT5PFTY7IKVJAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYHE3DSMJTGE . You are receiving this because you authored the thread.Message ID: @.***>

mult1pl1c1ty commented 6 months ago

So I 'think' I've got it working. Totally deleted the hub mini and switch, then deleted my account from Switchbot and started all over again.

When everything was re-added I did as you said, added the switch BOT hub (signed in but Homey still didn't find it) then added the switch. It's definitely NOT BLE connected (A 'w' shows up in the homey app ICON) and it seems to work. It is quite slow mind you but I presume that's normal?

Thanks for the help.

G

On Fri, 26 Apr 2024 at 10:14, Graham Kirkman @.***> wrote:

Cool. So.

When I try to add the bot to Homey I do indeed get a sign in page (which I do and the page says 'you can close this page now") but then Homey just says it can't find any devices??

On Fri, 26 Apr 2024 at 10:09, Adrian Rockall @.***> wrote:

Unfortunately, I don't get the logs from the SwitchBot mobile app.

I do mean when you add the Bot to Homey. image.png (view on web) https://github.com/AdyRock/com.switchbot/assets/38184396/ad62eb69-44b9-4301-9814-89cd7ccac1ed When you select this, it should ask you to log into your SwitchBot account (unless you have already added a device via the cloud). Once you have logged in, you should then see the device.

The log I need is from the Homey - SwitchBot app - settings page - Detected tab image.png (view on web) https://github.com/AdyRock/com.switchbot/assets/38184396/9218f214-b68d-4a49-9da2-5ec8fdee33a7 Click on Get HUB devices and once the list is full, tap on Send Log.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078969131, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHUNFHGNEA5GCUT5PFTY7IKVJAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYHE3DSMJTGE . You are receiving this because you authored the thread.Message ID: @.***>

mult1pl1c1ty commented 6 months ago

Am I correct in thinking that even though there are flow cards for turn on and off, the switchbot switch doesn't actually know whether it's on or off anyway???

On Fri, 26 Apr 2024 at 10:51, Graham Kirkman @.***> wrote:

So I 'think' I've got it working. Totally deleted the hub mini and switch, then deleted my account from Switchbot and started all over again.

When everything was re-added I did as you said, added the switch BOT hub (signed in but Homey still didn't find it) then added the switch. It's definitely NOT BLE connected (A 'w' shows up in the homey app ICON) and it seems to work. It is quite slow mind you but I presume that's normal?

Thanks for the help.

G

On Fri, 26 Apr 2024 at 10:14, Graham Kirkman @.***> wrote:

Cool. So.

When I try to add the bot to Homey I do indeed get a sign in page (which I do and the page says 'you can close this page now") but then Homey just says it can't find any devices??

On Fri, 26 Apr 2024 at 10:09, Adrian Rockall @.***> wrote:

Unfortunately, I don't get the logs from the SwitchBot mobile app.

I do mean when you add the Bot to Homey. image.png (view on web) https://github.com/AdyRock/com.switchbot/assets/38184396/ad62eb69-44b9-4301-9814-89cd7ccac1ed When you select this, it should ask you to log into your SwitchBot account (unless you have already added a device via the cloud). Once you have logged in, you should then see the device.

The log I need is from the Homey - SwitchBot app - settings page - Detected tab image.png (view on web) https://github.com/AdyRock/com.switchbot/assets/38184396/9218f214-b68d-4a49-9da2-5ec8fdee33a7 Click on Get HUB devices and once the list is full, tap on Send Log.

— Reply to this email directly, view it on GitHub https://github.com/AdyRock/com.switchbot/issues/114#issuecomment-2078969131, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIB7PHUNFHGNEA5GCUT5PFTY7IKVJAVCNFSM6AAAAABGXS646WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYHE3DSMJTGE . You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 6 months ago

I think it does know if it's on or off. All my devices are currently packed in boxes while I redecorate, so I can't test it ATM. If you look at the on/off status in the Homey device and change the Bot via the Switchbot app, does the Homey device update?