Very cool!
It’s working like a charm directly from a Raspberry Pi 3 to the Curtain.
Thanks!
I’m also wondering if this is needed. Anyone?
How did you get your MAC address? I’m struggling with this bit.
You don’t need the hub. This integration can talk directly to the Curtain
You can find it in the SwitchBot app (I’m using Android, so this is for the Android version of the app).
Open the settings of your Curtain -> Press the 3 dots in the top right corner.
There it will show your MAC.
Amazing thank you! How did I not see this lol.
How are you finding the BLE range on the RPi?
It seemed to be fine in my limited testing today, though there is only 4 meters between the Curtain and the Pi with some drywall in between.
I’ve yet to order a new set of Curtains for my living room, which is almost 10 meters away.
Time will tell
thank you @alextud . the custom component working perfectly… HassOS on Pi4
didnt even know my Pi4 had bluetooth onboard… it was sitting inside a security/alarm metal box. i had to open the alarm box for it work… which means ill have move the Pi4 outside the security box in future for reliable operation.
i thought switchbox curtain was going to be a bit gimmicky. but it’s not. I’m really impressed with the switchbox curtain engineering and build quality. The soft touch open/close feature makes for perfect old school operation. I even have a 3 year old tugging on the curtain while in operation and it seems to cope and return to it’s calibrated position. not sure how it’s getting back to its calibrated position after being manually moved around so much… but it does.
if anyone is interested - i have the U-rail model… and on IKEA VIDGA single curtain track… 3 meters wide… with a very heavy (not IKEA) curtain. seems like a good combination so far
Works like a charm ! thanks for developing this custom component
This looks great! What a fantastic community! Is there likely to be an integration that works with the hub too? I run my HA in a VM so no bluetooth connectivity at the moment, I could get a dongle, but before I do I was just curious. I have bought a switchbot bot and a couple of “thermostats” too, so would be interested in the whole ecosystem.
As an aside, I love my curtain bots and they work surprisingly well!
Thanks!
Okay, so first of all, I want to thank @alextud that got the Curtain working. Now it is truly amazing!
One thing that I spent some time on was that the logs kept throwing something related to switchbot
module not being found. I added this in my configuration.yaml
to load the SwitchBot integration:
switch:
- platform: switchbot
mac: 'MAC_ADDRESS'
name: 'Test'
and, suprisingly, it started working! Now I removed this Test
switch but I am not sure if the error will not re-appear later… Does someone now how to correctly import the switchbot
module?
Secondly, if it was not for @morles82, I wouldn’t have set up this SwitchBot device… Because my curtains did not fit the SwitchBot, however inspired by you, I ran to my local IKEA and bought VIDGA… Which turned out to be perfect.
Thank you very much guys!
Hi! Could you please help me. I am brand new to this and do not know how to install it. I have installed HACS through a youtube video tutorial but am unsure how to add this code into my config file.
Navigate to HACS → Integration → click on 3 dots (top right) → custom repositories
Paste this url in add custom repository URL
and select integration
as category.
GitHub - alextud/ha-switchbot-curtain: Controls switchbot curtain using Home Assistant
click on ADD.
The Switchbot Curtain should be added to the Integration section of HACS.
that worked. Thank you !
Thank you very much! Working great so far.
Same question here. My Pi is a long way away from where I want to install the curtain bot, so Bluetooth is definitely out of the question. Would be great to have HA control it via IP or similar!
Switchbot API is just about ready to be use. How can we implement into HA? Creating a rest command or it is more than that?
Cloud API, which means if you don’t have internet connection, then you’re screwed. The current, BT based solution connects to the bot locally - means you can reach the bot anytime, even without internet connection.
Hi guys!
Thanks @alextud for the component, working perfectly on my setup.
Couple of questions:
I notice a delay between taping the open/close of the curtain and effectively opening/closing. Any of you guys notices this? When use the SwitchBot Android app, it’s instantaneous.
Also, I see that we don’t need any pairing when adding the curtains to the component, MAC address is enough… Won’t this allow anyone to control my curtains as well? I know the issue is not with the component, rather with the SwitchBot implementation, but wanted to have your opinion.
Thanks!!
felgy
I notice a delay between taping the open/close of the curtain and effectively opening/closing. Any of you guys notices this? When use the SwitchBot Android app, it’s instantaneous.
The delay could be caused by interference and or the distance between the curtain bot and HA.