snackk / esp8266-home-automation

Home Automation firmware for IoT devices based on esp8266.
0 stars 0 forks source link
esp8266 led-controller mdns mqtt ota spiffs wake-on-lan wifi

ESP8266 Home Automation

Overview

This repository contains several IoT firmwares for esp8266 based hardware.

Wake on Lan

IoT device to remotly power up a computer. This is particular useful for wireless connected computers, whose wireless card don't support the wol magic packet. Esp8266 acts as a MQTT client that consumes wake up events from a given topic, in this case 'wol/push', and shorts the power switch circuit for a brief amount of time, emulating the button switch, switching on/off the computer.

In the figure bellow:

wol

Led Stripe

Led Stripe RGB activated by an IoT device. Esp8266 acts as a MQTT client that consumes light events from a given topic, in this case 'lights/push' lightning the led stripe to match the chosen color.

In the figure bellow:

led

Prerequisites

Documentation

This projects might be composed on several other modules, namely WIFI, OTA, SPIFFS, WebSocket, mDNS. Most of these modules were implemented based on this guide.

Any issues flashing the esp8266 should refer to the problems section.

WIFI

The wifi setup creates a single AP and tries to connect to several pre-defined stations.

OTA

It's possible to do OTA (Over The Air updates), instead of flashing the code locally on the Arduino IDE.

SPIFFS

A File System capable of storing several files. This is used to serve HTML pages, files can be stored in a compressed to save some space.

WebSocket

WebSocket

mDNS

mDNS

Problems

Most of the problems I faced while flashing the esp8266 nodemcu was due to wrong configuration for my specific esp8266 board on the Arduino IDE, that or I haven't set the esp8266 to flash mode.

Written by @snackk