Karl’s Home Automation Project – Part 1: Home Assistant & YAML, MQTT, Sonoff, and Xmas Lights

Karl here. I am here to write about my home automation project. First thing I want to say is that I am very cost conscious and I don’t mind putting in extra effort into the setup of things to keep costs down. I did invest a lot of time and had to do a lot of reading to get my project going. It took while and I received a lot of groans from my wife while testing. I am still in the process of tweaking things. I started watching a series of videos on YouTube from Bruh Automation. He introduced me to Home Assistant. It got me really excited. He uses a Raspberry Pi as a server but I already had a Wintel Pro CX-W8 Smart TV Box which I use as a server. I run 3 Minecraft Servers, Emby Server, iSpyConnect DVR (2 IP Cameras), Unifi wifi controller, and […]

How to use Sonoff POW with ESPurna Firmware and Domoticz Home Automation System

Sonoff POW is an ESP8266 based wireless switch with a power meter that comes pre-loaded with a closed-source firmware that works with eWelink app for Android or iOS by default. But we’ve also seen Sonoff POW, and other Sonoff wireless switches from the same family, can be flash with open source firmware supporting MQTT (Message Queuing Telemetry Transport) lightweight messaging protocol such as ESPurna, and I initially sent data from Sonoff POW to ThingSpeak via an MQTT broker (mosquitto) to draw some pretty charts. I did that with the switch connected to a lightbulb, but I’ve since installed Sonoff POW in my office to measure the room’s power consumption minus the ceiling light and aircon as shown below. Sonoff cable mechanism is really a pain for hard copper wires, as they are hard to push inside the mechanism, and something come out. I finally managed by it took longer than […]

How to Use Sonoff POW ESP8266 WiFi Power Switch with MQTT and ThingSpeak

ITEAD Studio’s Sonoff is a family of cheap home automation products based on ESP8266 WiSoC, and I’ve already tested Sonoff TH16 wireless switch with a humidity and temperature sensor using the stock firmware and eWelink app for Android or iOS. It works, but up to recently it required a registration to a cloud service (the company will now allow use from the local network), and the source code is closed. So for the second device under review, namely Sonoff POW wireless switch with a power consumption monitor, I decided to install ESPurna firmware working on ESP8266 Sonoff devices and NodeMCU, as it’s open source, supports Sonoff POW natively, includes a web interface to control the device from the LAN, and includes an MQTT client. MQTT (Message Queuing Telemetry Transport) is a lightweight publish/subscribe messaging protocol used to control IoT sensors and devices, and it’s a popular method to gather data […]

How to Install ThingSpeak in Ubuntu 16.04

Last week-end I installed ESPurna open source firmware with MQTT server on Sonoff POW WiFi switch, and the next step is find a way to draw power consumption charts in some web based interface. We could do this in the IoT cloud with services like Xively or ThingSpeak, but since one of the goals of replacing the default firmware was not to rely on a proprietary cloud based solution, I decided to find a way to draw those chart in a local server, and it so happens that ThingSpeak is also open source with the code available on Github. Hardware platforms like NanoPi NEO / NEO Air, or Orange Pi Zero boards appear to be particularly well suited for the task of running an MQTT broker and Thingspeak, but at first I wanted to install ThingSpeak in my own Ubuntu 16.04 computer to have a try. As you can see […]

How to Build and Flash ESPurna Open Source Firmware to Sonoff POW Wireless Switch

ITEAD Studio Sonoff family is comprised of various inexpensive ESP8266 WiFi power switch, and the company sent me two of their latest CE certified models with Sonoff TH16 + external temperature & humidity probe, and Sonoff POW to measure power consumption. I checked the hardware is the first part of the review, and used Sonoff TH16 to control a water pump with the stock firmware and Ewelink Android app in the second part. It works reasonably well, but it relies on the cloud, so if you lose your Internet connection or the service closed, you can’t control the relay manually anymore. Luckily, the UART pins are exposed on Sonoff switches so you can solder a 4-pin header and connect a USB to TTL to flash your own firmware. Please don’t connect Sonoff devices to the mains when programming them, it’s very dangerous, instead the USB to TTL board will power […]

The Eclipse Foundation Releases Open Source Smart Home & IoT Gateway Frameworks, MQTT & oneM2M Implementations

The Eclipse Internet of Things (IoT) Working Group has released – or soon will be releasing – four open source projects for the Internet of Things with Eclipse SmartHome 0.8 framework, Eclipse Kura 2.0 IoT gateway framework, Eclipse Paho 1.2 MQTT & MQTT-SN clients, and Eclipse OM2M 1.0 implementation of oneM2M standard. Eclipse SmartHome 0.8 Eclipse SmartHome is a framework for smart home solutions that runs on embedded devices, including Raspberry Pi, BeagleBone Black or Intel Edison development boards. The latest SmartHome 0.8 release includes a new REST API and corresponding “Paper UI” administration interface, support for new devices including Sonos speakers, LIFX bulbs, Belkin WeMo devices, digitalSTROM systems, EnOcean devices (via a new OSGi EnOcean Base Driver) and others, as well as a new rule engine supporting templates for beginners, JavaScript for automation rules and graphical rule editors. You can find more details on Eclipse SmartHome page, and/or download SmartHome 0.8, […]

Electrodragon WiFi IoT Relay Includes ESP8266 Module, AC Power, and Enclosure for $6

Thanks to ESP8266, the cost of WiFi relays has dramatically come down, but so far, I could not find an all-in-one solution with ESP8266, relay, AC power and enclosure, and for example I’m still using NodeMCU board, a relay board, a USB power supply, and put all that into a plastic jar in order to control a water pump. It works but it’s not ideal, and solutions like Wemos D1 mini with relay shield improves things further, but Electrodragon has come with a connect-and-play WiFi IoT relay that integrates everything including the case for $6 + shipping. Wifi IoT Relay Board Based on ESP8266: WiFi module – ESP-12F based on Espressif ESP8266EX WiSoC Relays – 2x Songle SRD-05VDC-SL-C relays supporting 125VAC/10A, 250VAC/10A, 30VDC/10A, 28VDC/10A Input/Output – 3x terminal blocks for relay and power Expansion – 12-pin header with Rx/Tx,  GPIO4, Btn2, GPIO15, 5V/GND,  ADC, GPIO5, Btn1, OUTPUT1, and 3V3 Debugging […]

Axiomtek ICO310 Din-rail Industrial IoT Gateway Supports Power over Ethernet (PoE)

Axiomtek ICO310 is a din-rail IIoT (Industrial IoT) embedded platform powered by Intel Celeron Braswell processors supporting up to 8GB RAM, PoE, and featuring two Gigabit LAN ports, RS-232/422/485 ports, USB 2.0 & USB 3.0 ports, one VGA port, and one DIO interface. It also support mSATA and SATA drives, and wireless module via mPCIe interfaces. Target applications include smart energy, smart factory automation, facility monitoring systems and more. Axiomtek ICO310 Specifications: SoC Intel Celeron N3060 dual core processor @ 1.6GHz / 2.48 GHz (Turbo) with Intel HD graphics 400 with 12EU @ 320/600 MHz OR Intel Celeron N3160 quad core processor @ 1.6GHz / 2.24 GHz (Turbo) with Intel HD graphics 400 with 12EU @ 320/640 MHz System Memory – 204-pin SO-DIMM DDR3L-1600 socket up to 8 GB Storage – 1 x mSATA,  1x SATA SSD (or HDD) Video Output – VGA Connectivity 2x 10/100/1000Mbps Ethernet, including 1x PoE PD […]