Support for SwitchBot Curtain 3

I managed to install it with appdaemon, but it is still showing as Contact Sensor

After running the command in Custom deps deployment succesfully the switchbots still are discovered as switches unfortunately.

1 Like

What do you mean with “still are discovered” were they already detected before you ran the custom deps? For me they were not detected at all, after running the custom deps, I get the exact same Log as you do. I then restarted HA, and the curtain was detected straight away.

I have same issue as Michmeister

Yes before running the Custom deps the curtain motors were already detected as contact sensors.

I got my Switchbot 3 working via Smartthings Hub. It works great and allows open/close as well as position setting.

1 Like

Do you use active bluetooth scanning (not passive)? It looks like pySwitchbot defaults to contact sensor unless it gets more info from active scanning.

If it’s showing up as contact sensor with active scanning enabled, HA restart should help. (At least that worked for me.)

cc @Michmeister @rostislavzlatnik

1 Like

It works! Thank you so much

1 Like

I’ve got it installed following these instructions (nice work!) and HA detects my two curtain 3 devices but I can’t control them. It times out after 5 attempts.
It’s strange as it can read the position of the switchbots on the rail as they move via app control on my phone.

I’d double check if bluetooth is in active mode in HA, and if the adapter is close enough to the devices. Otherwise I don’t know.

The PR is here: Support Curtain 3 by the-ress · Pull Request #218 · Danielhiversen/pySwitchbot · GitHub

1 Like

I’m running the Docker version of HA, is there a way to get it to run there, as there are no addons in that version? Or will it be added into the SwitchBot Integration in the future?

Is the HA integration being updated to support Curtain 3?
SwitchBot - Home Assistant (home-assistant.io)

Hi, Thank you for your work!
I tried to install using “Custom deps deployment”. It doesn’t find the “curtain3” branch in the git. Could you give me an idea? Have I made a mistake somewhere?
Thanks for your help

2 Likes

try git+https://github.com/Danielhiversen/pySwitchbot, as the curtain3 branch got merged into there

2 Likes

Sorry, I deleted the branch after the PR got merged and it didn’t occur to me people were using it (including me).

I restored the curtain3 branch, but I’d still recommend going with git+https://github.com/Danielhiversen/pySwitchbot as @n0ah suggested.

@the-ress any luck getting the quiet drift mode working? It seems like the only way to trigger this in the app is through a scene, and I wasn’t able to figure out how to manually trigger it otherwise.

I found the bluetooth command to send and I plan to implement it (in a few weeks or earlier, I hope).

I’m not exactly sure on how to expose it in HA since the cover entity doesn’t seem to support setting speed. Currently I’m thinking of adding an additional on/off entity as well as new variants of open/close services (for easier use in automations).

Technical details:

The ff part of 05ff command here controls the speed.

00 and 01 are the ‘quiet’ and ‘fast’ modes respectively (or the other way around, I don’t recall). ff is supposed to be a ‘default speed’. In my testing, the ‘default’ was always behaving the same as ‘fast’ and I didn’t find a way to set the default to ‘quiet’.

1 Like

Yes, I’m working on a PR to update the pyswitchbot library there.

4 Likes

Thanks @n0ah & @the-ress. It works with your suggestion :clap:
I’ve noticed that the old v2 curtains no longer work with this correction, but that’s not important to me at the moment. Let me know in case you need to do tests that involve v2 and v3.

2 Likes