Support for SwitchBot Curtain 3

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

can not get it to work, the ’ Custom deps deployment’ seems ok, folder are created in config

Screenshot 2023-09-26 at 12.46.49

log still says

2023-09-26 11:14:10.788 INFO (SyncWorker_10) [homeassistant.loader] Loaded switchbot from homeassistant.components.switchbot
2023-09-26 11:14:10.802 INFO (SyncWorker_5) [homeassistant.util.package] Attempting install of PySwitchbot==0.39.1

still recognised as contact

I don’t know how to fix that, but my PR just merged to HA so Curtain 3 should be normally supported in 2023.10 next week.

3 Likes

Tank you for your work.

I received my curtains 3 this week and via your custom script I already got it working.
How do I delete the current install via the Custom deps deployment addon?

installed 2023.10.b2 and it works just fine. Thank you!

2 Likes

If the v2 still doesn’t work, can you enable debug logging for the switchbot integration, try to pair and/or control the old curtains, and post the resulting log? Thanks.

Edit: this was supposed to be a reply to @nicmae
Another edit: It’ll probably be the same issue as Switchbot Curtain Fails To Load · Issue #101157 · home-assistant/core · GitHub
I’m working on a fix.

Update: fixed

looking forward to trying this on the 2023.10.1 update :smile:

1 Like

Tried on 2023.10.b2 and indeed they show up as curtains and work. Any thoughts whether it will at some point be possible to activate quiet drift? Perhaps any workarounds? It seems that the quiet drift is indeed only triggerable when using Delay or Schedule. I plan on having nearly all my rooms equipped with these, and I would like to close/open the curtains with sunset/sunrise, and SwitchBot app doesn’t support triggering based on the sun, I would be happy if I could trigger opening/closing with QuietDrift e.g. with 1 minute delay:

Thanks for all the work you’ve been doing :metal:

2 Likes

I want to do something similar with mine.

I already did some research on the quiet mode and I plan to implement it (hopefully in time to make it into 2023.11). I posted some more more details on what I found last week: Support for SwitchBot Curtain 3 - #39 by the-ress

Do you have any ideas on how to best expose it in HA?

2 Likes

Overkiz deals with it by adding a second cover entity so I’ll probably do the same. Add low speed Overkiz cover by tetienne · Pull Request #66750 · home-assistant/core · GitHub

3 Likes

Thank you for the work. I notice that the state of the curtains is not synced to HA, is that correct? The integration does not show the position of the curtains if they are updated/controlled by the switchbot application. I forgot to recall if this is the same for Switchbot Curtain 2, maybe it is…? Requires a bit of time / update of the entity [and me not playing around too quickely with both HA and Switchbot App together…]

I think the switch on/off entitiy for quiet-mode is perfectly fine, this is also how switchbot implemented it in their own application. Did you manage to discover more speed modes? Or do we have just insanely fast vs extremely quiet?
BR

1 Like

I meant a second cover entity. The issue with an on/off entity for quiet mode is that it complicates automations - for example you’d need to save the current state, turn quiet mode on, open the curtain, and then restore the original mode.

I tried multiple different values, but it looks like only the 2 speeds are supported.

1 Like

Ah, clear to me now. Sounds like a good alternative too. Would any cards in dashboards linked to the state of just 1 entity be realtime updated when I used the quiet drift cover entity to set position?