Giter VIP home page Giter VIP logo

somfy_remote's Introduction

Image of the licence

Somfy Remote

This sketch allows you to emulate a Somfy RTS or Simu HZ remote.

This is a fork of MakerMeik's project, to add functionality to control multiple (up to 20) blinds. (https://github.com/MakerMeik/Somfy_Remote)

MakerMeik's code was forked from the original sketch written by Nickduino (https://github.com/Nickduino)

If you want to learn more about the Somfy RTS protocol, check out https://pushstack.wordpress.com/somfy-rts-protocol/

The rolling code will be stored in EEPROM, so that you can power the D1 Mini.

Easiest way to make it work for you: - Choose a remote number - Choose a starting point for the rolling code. Any unsigned int works, 1 is a good start - Upload the sketch - Long-press the program button of YOUR ACTUAL REMOTE until your blind goes up and down slightly - send 'p' via 'MQTT' To make a group command, just repeat the last two steps with another blind (one by one)

Send a message to the channel number corresponding to the blind you want to program / control.

e.g. "Somfy-1"

From the command line, this is: mosquitto_pub -h -m "u" -t "Somfy-1"

Then: - u will make it to go up - s make it stop - d will make it to go down - p sets the program mode - you can also send a HEX number directly for any weird command you (0x9 for the sun and wind detector for instance)

If you want to learn more about the Somfy RTS protocol, check out Pushtack.

How the hardware works: Connect a 433.42 Mhz RF transmitter to Arduino Pin 5 (or change the pin in the sketch). I couldn't find a 433.42 MHz transmitter so I hacked a remote to send my signals. I then ordered 433.42 MHz crystals to change the regular 433.92 MHz ones I have on my transmitters: that's the cheapest way to do it. Other option would be to use a tunable transmitter like the CC1101 (but that hardly looks like the easy way and I'm not a ham radio, so...).

How the software works: What you really want to keep here are the BuildFrame() and SendCommand() procedures. Input the remote address and the rolling code value and you have a remote. With the sketch, you can send the command through serial line but that would be easily modified to button press or whatever (I plan on running it on an internet-connected ESP8266 to shut the blinds at sunset every day).

The rolling code value is stored in the EEPROM, so that you don't loose count of your rolling code after a reset.




If you want more functionality, check out the Python version

somfy_remote's People

Contributors

anthonyu avatar dcotterill avatar makermeik avatar nickduino 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.