Coder Social home page Coder Social logo

esphome-somfy's Introduction

esphome-somfy

Esphome configuration for Somfy RTS Blinds

⚠️ This repository will not work with Somfy IO devices, only with RTS devices. ⚠️

Contributors GitHub last commit

Materials:

Software:

Using some cables or a PCB board connect the CC1101 to the ESP32 with the following pins:

CC1101 Pin ESP32 Pin Name
1 GND Ground
2 3.3V Power
3 IO2 GD00
4 IO5 CSN
5 IO18 SCK
6 IO23 MOSI
7 IO19 MISO
8 IO4 GD02

Usage:

In your ESPHome installation create a new device, configure the different modules as you like and add the following lines at the end:

external_components:
  - source:
      type: git
      url: https://github.com/Viproz/esphome-somfy
    components: [ somfy ]
    refresh: 1d
preferences:
  flash_write_interval: 0s

cover:
  - platform: somfy
    name: "Living room shutter"
    RemoteID: 1
    device_class: shutter
  - platform: somfy
    name: "Kitchen shutter"
    RemoteID: 2
    device_class: shutter

You can add as many cover elemnts as you would like, make sure all the RemoteID elements are unique.

Install the configuration onto your ESP32 board.

How to configure

Discover the new esp32 board in Home Assistant and insert your new entities in your home assistant's dashboard.

  They should have names similar to these:
  * cover.living_room_shutter
  * cover.kitchen_shutter

Blind Card

How to program

  1. Open one of the entity in Home Assistant.

    Blind control interface

Blind control interface

  1. Put your blind in programming mode. If necessary, consult the blind manual or the manufacturer, it usually consist in pressing the button on the back of the existing remote a few seconds or power cycling the device if no remote exists.

  2. Slide the bar that controls the tilt position to the value 11, this makes the virtual remote enter programming mode.

    a) If the programming succeeds without problems, your blind will move immediately.

    b) In case of problems, check your device's log.

Blind configuration commands

Some commands were created, accessed by tilting the blind to try to facilitate debugging and configuration.

// cmd 0 - Prints the current rolling code
// cmd 11 - Program mode
// cmd 16 - Program mode for grail curtains
// cmd 21 - Delete rolling code file
// cmd 61 - Clears all Preferences set
// cmd 90 - Re-run the setup member
// cmd 97 - Set the CC1101 module to TX mode
// cmd 98 - Set the CC1101 module to idle
// cmd 99 - Set the transmit pin to HIGH
// cmd 100 - Set the transmit pin to LOW

Credits

This project is based on Nickduino implementation of the Somfy RTS remote and was first adapted to work with ESPHome by Daniel Stein.

The code was then readapted by Vincent MALZIEU to make it work with CC1101 modules and the newer external component feature in ESPHome.

esphome-somfy's People

Contributors

viproz avatar dmslabsbr avatar infradom avatar

Stargazers

 avatar Robert Hromej avatar  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.