Archive:MQTT-controlled power sockets

From The Munich Maker Lab's Wiki
Revision as of 22:24, 22 November 2016 by Tiefpunkt (talk | contribs) (Created page with "{{project |name = MQTT2RCswitch |description = MQTT controller for remote controlled power sockets |status = beta |author = tiefpunkt |username = |versi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
       
MQTT2RCswitch

Release status: beta [box doku]

Description MQTT controller for remote controlled power sockets
Author(s)  tiefpunkt
Platform  ESP8266
License  MIT
Download  https://github.com/munichmakerlab/mqtt2rcswitch

We have a bunch of remote controlled power sockets at the space, and wanted to control them via our space automation tools.

Building

Hardware

We used a WeMos D1 mini board for the ESP8266. It's powered over USB, and provides 5V to the RF module. The Data pin of the module is connected to GPIO 4 (Pin D2), and works just fine with the 3.3V of that pin.

Software

Usage

Send the following to the MQTT topic defined in config.h, e.g.mumalab/room/rcsockets:

type,house_code,device_code,action

with the options