Skip to content

tronikos/esphome-blinds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

esphome-blinds Made for ESPHome

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

Hardware installation

Follow this video guide by The Hook Up but skip their software installation:

Motorize and Automate your Blinds for $10! (WiFi)

Wiring diagram (from https://github.com/thehookup/Motorized_MQTT_Blinds):

Schematic

Don't forget to cut the center trace on the stepper motor as shown in the youtube video.

Software installation

  1. Setup ESPHome, if you don't have it already, by following Getting Started with ESPHome and Home Assistant.
  2. 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.
  3. In the Configuration created! page select Skip to skip installation for now until we make a few changes.
  4. Select Edit on the created configuration e.g. kitchen-blinds.yaml.
  5. Skip this step if you used an esp32. Change esp8266 section to:
esp8266:
  board: d1_mini
  restore_from_flash: true
  1. 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
  1. Change the values in the substitutions section based on your setting, e.g. if you have used different pins. The stepper_endstop: '650' for my blinds corresponds to the blinds being open, i.e. parallel to the ground -. For some of my blinds I have stepper_dir_pin_inverted set to false while for others I have true depending on how I like them in closed position, i.e. / or \.
  2. 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:
    
  1. Select Save and then Install.
  2. Only for the first install select Plug into this computer. For subsequent updates/installs you can install Wirelessly.
  3. Select Download project to save a bin file.
  4. Select Open ESPHome Web, Connect, Install downloaded project.
  5. In the Install your existing ESPHome project page select Choose File, select the previously downloaded bin file, and select Install.
  6. Home Assistant should auto-discover your new device.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published