Comments (3)
The pubsubclient library has an Issue sending long messages from esp8266 so this will throw up an error on compile with the standard library, to fix it, we'll need to add an overloaded function to it.
src/pubsubclient.h line 145
boolean publish(const char* topic, const char* payload, unsigned int length, boolean retained);
src/pubsubclient.cpp line 368-370
boolean PubSubClient::publish(const char* topic, const char* payload, unsigned int length, boolean retained) {
return publish(topic,(const uint8_t*)payload, length, false);
}
from esp8266-fastled-iot-webserver.
Adding the MQTT Protocol to the arduino sketch allows for connection to multiple platforms, local or cloud ones.
The MQTT protocol and channels are preconfigured for automatic discovery and configuration for Home Assistant, and exposing to Google Assistant
Available endpoints are are :
Power
Brightness
RGB
Patterns.
This does not replace Alexa integration, it expands on it, both may be active at the same time.
after exposing the device to Google Assistant from Home Assistant, Google can control by voice :
Power
Brightness
RGB (Switches to Solid Color Pattern)
to control Patterns by voice add a script to Home Assistant triggering the device in this format
'1586569671485':
alias: Rainbow Effect
sequence:
data:
effect: Horizontal Rainbow
entity_id: light.nanoleafs
service: light.turn_on
The phrase will then be "Activate " to trigger the patterns using Voice commands from google home.
from esp8266-fastled-iot-webserver.
Implemented in the newest update.
from esp8266-fastled-iot-webserver.
Related Issues (20)
- Missing option "Select Leaf to Color" in current webapp
- Cannot compile for Wemos D1 R2 board when using APA102 LED strip. HOT 1
- Debug, MQTT, and Alexa errors HOT 11
- No hardware SPI pins defined HOT 3
- E (410) SPIFFS: mount failed, -10025 HOT 1
- MQTT enabled cause restart on webserver call HOT 1
- Can't light past 5 triangles (60 lights.) HOT 1
- WebUI wont Load
- MQTT not working HOT 6
- Incorrect ledpattern for clock device which multiple leds per segment
- Getting an error on twinkle HOT 1
- Serial Ambilight !
- ESP8266 NodeMcu can't figure out proper data pin HOT 6
- Web UI up, but no control on the lamps. HOT 1
- One specific LED somewhere in the middle of the chain flickers HOT 1
- MQTT and Home Assistant HOT 1
- Fire effect in nanoleaf
- ESP32 HOT 1
- MQTT - Homeassistant : disconnected due to malformed packet HOT 1
- control reaches end of non-void function [-Werror=return-type] when enabling udp visualization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-fastled-iot-webserver.