Coder Social home page Coder Social logo

Comments (3)

WarDrake avatar WarDrake commented on July 23, 2024 1

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.

WarDrake avatar WarDrake commented on July 23, 2024

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.

NimmLor avatar NimmLor commented on July 23, 2024

Implemented in the newest update.

from esp8266-fastled-iot-webserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.