Giter Site home page Giter Site logo

espsomfyrts's Introduction

espSomfyRts

Somfy Rts and Simu Hz for esp8266

Ported from https://github.com/Nickduino/Somfy_Remote/blob/master/Somfy_Remote.ino

How to use it

Just make POST request to the device endpoint /remote with JSON body

curl -XPOST http://192.168.1.10/remote -d '{"remoteId":1,"cmd":"UP"}'

This version of Somfy RTS gate suppport 10 (from #1 to #10) remote devices but it can be simply changed in code. Supported commands are: UP, DOWN, STOP, PROG and any other will cause 400 Bad request response


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

espsomfyrts's People

Contributors

p-m-x avatar

Watchers

James Cloos 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.