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.
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.
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.
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.)
It works! Thank you so much
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
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
try git+https://github.com/Danielhiversen/pySwitchbot
, as the curtain3 branch got merged into there
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’.