This ESPHome package allows control of blinds using a stepper motor.
TLDR; Add this to your ESPHome device configuration:
substitutions:
stepper_dir_pin_inverted: 'false'
stepper_dir_pin: D6
stepper_step_pin: D7
stepper_enable_pin: D5
stepper_max_speed: '250'
stepper_endstop: '650'
packages:
blinds: github://tronikos/esphome-blinds/esphome-blinds.yaml@main
esp8266:
board: d1_mini
restore_from_flash: true
Follow this video guide by The Hook Up but skip their software installation:
Wiring diagram (from https://github.com/thehookup/Motorized_MQTT_Blinds):
Don't forget to cut the center trace on the stepper motor as shown in the youtube video.
- Setup ESPHome, if you don't have it already, by following Getting Started with ESPHome and Home Assistant.
- In the ESPHome Dashboard select New device, Continue, give a name: e.g. Kitchen blinds, Next, select device type based on the ESP chip used e.g. ESP8266.
- In the Configuration created! page select Skip to skip installation for now until we make a few changes.
- Select Edit on the created configuration e.g. kitchen-blinds.yaml.
- Skip this step if you used an
esp32
. Changeesp8266
section to:
esp8266:
board: d1_mini
restore_from_flash: true
- Add the following (either at the beginning or the end of the file):
substitutions:
stepper_dir_pin_inverted: 'false'
stepper_dir_pin: D6
stepper_step_pin: D7
stepper_enable_pin: D5
stepper_max_speed: '250'
stepper_endstop: '650'
packages:
blinds: github://tronikos/esphome-blinds/esphome-blinds.yaml@main
- Change the values in the
substitutions
section based on your setting, e.g. if you have used different pins. Thestepper_endstop: '650'
for my blinds corresponds to the blinds being open, i.e. parallel to the ground-
. For some of my blinds I havestepper_dir_pin_inverted
set tofalse
while for others I havetrue
depending on how I like them in closed position, i.e./
or\
. - Your configuration should now look something like the following:
substitutions:
stepper_dir_pin_inverted: 'false'
stepper_dir_pin: D6
stepper_step_pin: D7
stepper_enable_pin: D5
stepper_max_speed: '250'
stepper_endstop: '650'
packages:
blinds: github://tronikos/esphome-blinds/esphome-blinds.yaml@main
esphome:
name: kitchen-blinds
friendly_name: Kitchen blinds
esp8266:
board: d1_mini
restore_from_flash: true
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "L8408egzTATPCBT1nzvFpqj4YlVERRO31+GyB/yjf4E="
ota:
- platform: esphome
password: "d44ed9df293facf65e288062d5c7a5e7"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Kitchen-Blinds Fallback Hotspot"
password: "8cSGOshkb2Rw"
captive_portal:
- Select Save and then Install.
- Only for the first install select Plug into this computer. For subsequent updates/installs you can install Wirelessly.
- Select Download project to save a bin file.
- Select Open ESPHome Web, Connect, Install downloaded project.
- In the Install your existing ESPHome project page select Choose File, select the previously downloaded bin file, and select Install.
- Home Assistant should auto-discover your new device.