Git Product home page Git Product logo

esphome-blinds's Introduction

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:
  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.

esphome-blinds's People

Contributors

tronikos avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.