47 lines
3.1 KiB
HTML
47 lines
3.1 KiB
HTML
|
define(`TITLE', `Something really useful: 433MHz Power-Outlet Control')
|
|||
|
define(`DATE', `2016-11-02')
|
|||
|
define(`CONTENT', `
|
|||
|
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.)
|
|||
|
|
|||
|
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 class=" size-full wp-image-775 aligncenter" src="https://a385e5.files.wordpress.com/2016/11/sender_receiver.png" alt="sender_receiver" width="406" height="386" />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.
|
|||
|
|
|||
|
<!--more-->
|
|||
|
|
|||
|
|
|||
|
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:
|
|||
|
|
|||
|
<a href="https://a385e5.files.wordpress.com/2016/11/img_01012-e1478087121580.jpg"><img src="https://a385e5.files.wordpress.com/2016/11/img_01012-e1478087121580.jpg?w=730" alt="img_0101" width="730" height="548" class="alignnone size-large wp-image-791" /></a>
|
|||
|
|
|||
|
<a href="https://a385e5.files.wordpress.com/2016/11/img_0105.jpg"><img src="https://a385e5.files.wordpress.com/2016/11/img_0105.jpg?w=730" alt="img_0105" width="730" height="548" class="alignnone size-large wp-image-784" /></a>
|
|||
|
|
|||
|
|
|||
|
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>.
|
|||
|
|
|||
|
This is how it works:
|
|||
|
|
|||
|
<a href="https://a385e5.files.wordpress.com/2016/11/img_0111-e1478087101747.jpg"><img src="https://a385e5.files.wordpress.com/2016/11/img_0111-e1478087101747.jpg?w=730" alt="img_0111" width="730" height="548" class="alignnone size-large wp-image-799" /></a>
|
|||
|
|
|||
|
|
|||
|
The second challenge is to send the codes out into air and let the power switches receive them. This is done with this thing:
|
|||
|
|
|||
|
<a href="https://a385e5.files.wordpress.com/2016/11/img_0100-e1478087375824.jpg"><img src="https://a385e5.files.wordpress.com/2016/11/img_0100-e1478087375824.jpg?w=730" alt="img_0100" width="730" height="548" class="alignnone size-large wp-image-803" /></a>
|
|||
|
|
|||
|
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.
|
|||
|
|
|||
|
This thing received messages via MQTT and send them out via 433MHz.
|
|||
|
|
|||
|
The software is here https://gitlab.com/wolutator/Mqtt433Gateway.git
|
|||
|
|
|||
|
BTW: do not expect beautiful software, this has been made on Halloween evening and night when waiting for the kids to come home.
|
|||
|
|
|||
|
')
|