You can swap this around if you prefer at lines 442 to 454 which contain the on function and the off function with the opposite action for each commented out.
Control curtains with alexa.
Open the serial monitor and set the baud rate to 9600.
The back light could turn on off as you like support touch control app control voice up and down by alexa echo and google home smart speaker or the siri voice control ios need update into ios12 or above no hub or subscription required.
As the code stands telling alex to turn on curtains runs the open routine and turn off curtains runs the close routine.
Set working schedule previously make your curtain automatically turn up and down.
In this project we show you how to 3d print and assemble your very own alexa connected curtain control system.
Control your curtains with an amazon echo alexa smartthings hub aeotec watch later.
Integrating the electric curtain rail with the raspberry pi.
It s low cost and easy to build.
More info.
On line 60 you need to set the name alexa will refer to your curtains as currently decking curtain in default code.
An electric curtain rail https www amazon co uk gp product b013x0bzf2 a replacement.
The curtain rail i purchased came with two.
Writing a python script to open.
So if you put bedroom in here you would have to say alexa turn the bedroom curtains on.