ghmartin77 / SmartLEDLamp

A smart, web-enabled floor lamp with nice visual effects based on IKEA Vidja powered by ESP8266 and WS2801.
MIT License
26 stars 4 forks source link
esp8266 iot smarthome smartthings ws2801

SmartLEDLamp

A smart, web-enabled floor lamp with nice visual effects based on IKEA Vidja powered by ESP8266. IR or http controlled.

Looks like this (some examples):

White Lamp Red Lamp Green Lamp Rainbow Lamp Fire Lamp Blue Sky Lamp Deep Sea Lamp Purple Dream Lamp Tentacle Blobs Lamp White Black Lamp

Animation example (fire)

On Fire Lamp

Making of

Step 1

Step 2

Step 3

Step 4

Step 5

Step 6

Step 7

Step 8

Step 9

PCB

Ingredients

How to Build

First Start

Usage

Home Automation Integration

The following web API is available to integrate the SmartLEDLamp into OpenHAB for example:

http://<IP>/action/?act=on - Turn the lamp on
http://<IP>/action/?act=off - Turn the lamp off

http://<IP>/action/?btn=1 - Simulate press button 1
http://<IP>/action/?btn=17 - Simulate press button 17

http://<IP>/action/?brightness=17 - set brightness to 17%
http://<IP>/action/?brightness=100 - set brightness to 100%

Additionally you can use MQTT (see above on how to enable, configure MQTT_SERVER and MQTT_TOPIC in defines.h appropriately). Message of "0" sent to the topic turns the lamp off, a message of "1" turns it on. Furthermore same topic is reflecting the state if lamp is turned on or off via web interface or IR.