Use a WS2812 LED Strip to build an RGB light with support for animations.
Currently the MQTT server IP and Wifi credentials are hard-coded in default_config.h
.
The default topics are
Illuminator/maintenance/1234567/online → true
Illuminator/maintenance/1234567/uptime → {
"val": 83000243,
"millis": 83000243,
"rollover": 0
}
Illuminator/maintenance/1234567/temperature → 26.00
Illuminator/maintenance/1234567/info → {
"board_id": "Illuminator_1234567",
"build_hash": "7c7eb13b668fae2f371a07928d9e0facd366c9bf",
"build_tag": "master",
"build_timestamp": 1584719403,
"ip_address": "10.1.1.108"
}
Illuminator/status/1234567/fastled → {
"val": 0,
"hue": 0.043137,
"sat": 1,
"animation": "sinelon"
}
Illuminator/status/1234567/temperature/dallas → {
"abcdef1234567890": 23.25,
}
Value (Brightness), Hue, Saturation is 0..1
Animation can be "none", "sinelon", "confetti", "colorwheel"
.
Install using PlatformIO CLI.
Clone this repository, cd
into it.
If you're not using a Wemos D1 Mini, edit platformio.ini
first.
Run:
platformio run
In case you have multiple USB-Serial adapters, or your adapter offers multiple ports:
platformio device list
platformio run --upload-port /dev/cu.usbserial-00202102A
For WiFi OTA upload:
platformio device list --mdns
platformio run -t upload --upload-port <Illuminator_1234567.local or IP address>
Ideas:
This project follows Oliver "owagner" Wagner's architectural proposal for an mqtt-smarthome.