First of all a big thank you to those I borrowed code from:
@bruhautomation and the pubsub client from nick oleary
I had started to use my current setup that included particle photons, but there has been a lot of instability on the IDE and in the firmware for those devices lately and it was causing me more headache than it was worth. so I sunk $45 in six new esp8266 and solved all my problems.
The code is located here:
Things you will need:
A esp8266 I was using a NodeMCU chip from amazon
A servo (preferably analog) I use futaba S3003 https://www.servocity.com/s3003-servo12
A servo shaft coupler with set pin https://www.servocity.com/25t-futaba-set-screw-shaft-coupler
Standard horizontal slat window blinds (plantation style will work too)
- Create your device in your configuration.yaml (an example is on github)
- Load the code to the esp8266 using arduino ide
- Wire up your esp with the servo. (I set the com pin to D4 in the code)
- Put on your DIY hat finally and with your wife’s permission dissect and determine a way to hook this up to your window blinds (this often requires a bolt cutter)
Here is a video of the blinds in action:
things to note…
you will have to remove the manual pull string. I know, but don’t worry you won’t use it anymore… you will use the google home or amazon echo to open all of your blinds. Besides the whole point of home automation is to automate. Set this thing up with a light sensor and 4 hours before sunset close or partially close those blinds… keep tracking the sun every hour and continue to close them a little more until about 10 minutes before sunset and then open them up and enjoy that beautiful sunset.
also your action rod in the blinds might have to be cut down to fit the servo. use a bolt cutter and cut the end opposite where you will attach the servo.