Code Monkey home page Code Monkey logo

sompi's Introduction

SomPi

The objectif of this project is to control your Somfy shaders from a Raspberry Pi. My current remote is a Smoove Origin RTS Thanks Nickduino for the support.

Let's play with SomPi!

Hardware - What do you need?

The first step is to buy the needed hardware.

Transmitter

Crystals

Wires

Preparation

You can now replace carefully your crystal by doing soldering. Then you have to plug the transmitter to the RaspberryPi

There is three pins on the transmitter:

  1. ATAD (DATA)
  2. VCC
  3. GND (Ground)

You need to connect all of them to the Raspberry Pi GPIO.

  1. Connect the ATAD pin with GPIO 4 (or adapt for your needs)
  2. VCC with 5V
  3. GND with any GND pin on the Raspberry Pi

Installation

You can easily install the python controller with the following instructions:

  1. Install dependencies sudo apt-get update && sudo apt-get install git python pigpio python-pigpio python3-pigpio
  2. Verify that everything is well installed git --version && python --version
  3. Then clone this repository sudo git clone https://github.com/alxlaxv/SomPi.git
  4. Enter in SomPi cd SomPi
  5. Make the controller executable sudo chmod +x controller.py
  6. Launch pigpio daemon sudo pigpiod
  7. Launch pigpio daemon automatically on every boot sudo systemctl enable pigpiod.service

Configuration

Now you will need to register your emitter as a remote for your shaders. First you need to do a long press on the Prog button behind your current official Remote. Your shaders will then briefly move, you can now release the Prog button.

Now we need to pair SomPi as a new remote sudo python controller.py livingRoom register And then close your shaders to test the pairing sudo python controller.py livingRoom close

That's it! Well done!

Available commands

  • Open: sudo python controller.py livingRoom open
  • Close: sudo python controller.py livingRoom close
  • Stop: sudo python controller.py livingRoom stop
  • Register: sudo python controller.py livingRoom register

sompi's People

Contributors

rainson12 avatar the-lazy-fox avatar zengelan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sompi's Issues

Run in domoticz

Is there a way to run the script in domoticz?

When run in command line the scripts works but when executed by domoticz it gives me an error:
2020-04-21 00:44:20.149 Error: Error executing script command (/home/pi/SomPi/controller.py). returned: 256

Blinds to not close completely

Hey,
first of all, thanks for your work. It basically seems to work fine. However when closing the blinds, they move down but do not close completely instead they will keep open for a bid. Any idea what could be the reason?

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.