Nothing to see here ... - Tag - SomfyA blog about hacking, programming, astronomy, and other unrelated stuff2022-05-09T07:27:03+02:00Jean-Christophe Ronaurn:md5:4aca13830534db85deafa89a62b675acDotclearSomfy and Blyss protocols added to rf-ctrlurn:md5:d6c9a5a81ecf1a3fa2de4220ce5c5c612016-11-09T19:01:00+01:002022-04-24T22:35:51+02:00JCHacking433MHzBlyssHome AutomationHome-RFrf-ctrlSomfy<p><a href="http://blog.rona.fr/public/Somfy-Blyss.jpg"><img src="http://blog.rona.fr/public/.Somfy-Blyss_m.jpg" alt="Somfy-Blyss.jpg" style="display:table; margin:0 auto;" title="Somfy-Blyss.jpg, nov. 2016" /></a></p>
<p>The <strong><a href="https://github.com/jcrona/rf-ctrl">rf-ctrl</a></strong> tool is now able to control plugs and rolling shutter controllers from the well known Somfy and Blyss brands. Regarding Somfy, only the 433,42 MHz RTS protocol is supported, but devices based on it are still widely available. Of course, most 433 MHz transmitters work at 433,92 MHz, which is obviously off compared to the 433,42 MHz used by Somfy. However, it works well enough, even if the range is a little bit smaller compared to what you could get with a proper 433,42 MHz transmitter.</p> <p>To control a Somfy device with <strong>rf-ctrl</strong>, you must pair <strong>rf-ctrl</strong> with your device first ! To do so, you need to put your device in association mode (long press on the device's button most of the time), choose the remote ID (0-255) and the device ID (1024-16777215) to use for this device (and stick to them), then send a <em><strong>Prog</strong></em> command. The device should acknowledge the reception of the pairing request somehow (a led blinking for instance).<br />
Now you should be able to control this device using the device and remote IDs you chose.</p>
<p>For instance, to send an association request:<br />
<code># rf-ctrl -p somfy -r 0xC0 -d 0x042420 -c prog</code></p>
<p>Then to control the device:<br />
<code># rf-ctrl -p somfy -r 0xC0 -d 0x042420 -c on</code></p>
<p>If you have any issue during the association, make sure that:</p>
<ul>
<li>the device ID you are using is higher than 1024</li>
<li>the device has not reach the maximum number allowed of associated remotes</li>
</ul>
<p>To reset completely the device and be sure it will accept an association request, hold its button for at least 10 seconds (around 3 seconds starts the association procedure, while around 10 seconds will reset the device).
<br />
<br /></p>
<p><strong>rf-ctrl</strong> also gains the ability to control plugs from the Blyss brand. These plugs are easy to find, at least in France. In order to use a Blyss device, you also need to associate <strong>rf-ctrl</strong> with it. To do so, put your device in association mode (long press on the device's button most of the time), choose the remote ID (0-1048575) and the device ID (0-16) to use for this device (and stick to them), then send an "<strong>ON</strong>" command. The device should acknowledge the reception of the pairing request somehow (a led blinking for instance).<br />
Now you should be able to control this device using the device and remote IDs you chose.
<br />
<br /></p>
<p>The <strong><a href="https://github.com/jcrona/ook-gpio">ook-gpio</a></strong> driver has been updated to support the new RAW bit format needed by the Somfy protocol, and since <strong><a href="https://github.com/jcrona/home-rf">Home-RF</a></strong> is just a Web UI on top of <strong>rf-ctrl</strong>, it is compatible with these new protocols as well ! All these projects can be found on <a href="https://github.com/jcrona">my GitHub</a>.</p>
<p>If you want to create a little gateway capable of controlling all these devices, among other things, check out <a href="http://blog.rona.fr/post/2016/10/22/Home-automation-with-cheap-433MHz-plugs-a-1%24-433MHz-transmitter-and-a-TP-Link-TL-WR703N-router">my previous post</a>.</p>