68 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- { "title": "Something really useful: 433MHz Power-Outlet Control" } -->
<h1>#title#</h1>
<p>
We've lots of more or less cheap 433MHz Switchable Power-Outlets in the house, mostly for decorative lights. You get them for under 15€ in the Building Center, three at once with a remote control. Usually, you can control four switches with one remote, period. (A promising exceptions are the device from Intertechno.)
</p>
<p>
Now I was looking for a way to
<ol>
<li>Control the switches from different manufacturers with one remote.</li>
<li>Control them from really remote - from the office or from holiday.</li>
<li>Control them programmatically.</li>
</ol>
There are a couple of Arduino libraries out there which are working with this cheap 433MHz senders and receivers from China:
<img src="files/sender_receiver.png" alt="sender_receiver" width="406" height="386" /><br/>
I tried several ones, not all a really working, but finally I stopped at <a href="https://github.com/sui77/rc-switch" target="_blank">https://github.com/sui77/rc-switch</a>, which works really good.
</p>
<p>
First challenge now is to get the codes out of the remotes. For this purposes the rc-switch library provides an example sketch for the Arduino. I extended it a bit and got this:
</p>
<p>
<a href="files/img_01012-e1478087121580.jpg"><img src="files/img_01012-e1478087121580.jpg?w=730" alt="img_0101" width="730" height="548" /></a><
</p>
<p>
<a href="files/img_0105.jpg"><img src="files/img_0105.jpg?w=730" alt="img_0105" width="730" height="548"/></a>
</p>
<p>
Software for this thing can be found here <a href="https://gitlab.com/wolutator/433Receiver.git" target="_blank">https://gitlab.com/wolutator/433Receiver.git</a>.
</p>
<p>
This is how it works:
</p>
<p>
<a href="files/img_0111-e1478087101747.jpg"><img src="files/img_0111-e1478087101747.jpg?w=730" alt="img_0111" width="730" height="548"/></a>
</p>
<p>
The second challenge is to send the codes out into air and let the power switches receive them. This is done with this thing:
</p>
<p>
<a href="files/img_0100-e1478087375824.jpg"><img src="files/img_0100-e1478087375824.jpg?w=730" alt="img_0100" width="730" height="548" /></a>
</p>
<p>
It is a Arduino Ethernet Board with a PoE-adapter and the 433MHz sender directly attached to it. I glued it under a table in the living room.
</p>
<p>
This thing received messages via MQTT and send them out via 433MHz.
</p>
<p>
The software is <a href="https://gitlab.com/wolutator/Mqtt433Gateway.git" target="_blank">here at Gitlab</a>.
</p>
<p>
BTW: do not expect beautiful software, this has been made on Halloween evening and night when waiting for the kids to come home.
</p>