![]() See the example EspalexaFullyFeatured to learn how to define each device type and use the new EspalexaDevice pointer callback function type! My devices are not found?!Ĭonfirm your ESP is connected. Here is an overview of the devices (light types) Espalexa can emulate: Device typeĬolor temperature adjustment not working on Dot On an Echo Dot 1st and 2nd gen and the first gen Echo, color temperature adjustment (white spectrum) does not work as of March 2019. The library aims to work with every Echo on the market, but there are a few things to look out for.Įspalexa only works with a genuine Echo speaker, it probably wont work with Echo emulators, RPi homebrew devices or just the standalone app. What devices types and Echos does Espalexa support? You can got to to see all devices and their current state. Just change your WiFi info and try it out!Įspalexa uses an internal WebServer. You can find a complete example implementation in the examples folder. String name = d-> getName() //just in case you forget it Uint8_t bri = d-> getValue() //bri will have the device value What has to be done to use it?Įspalexa is designed to be as simple to use as possible.įirst, you'll need a global object declaration and a prototype for the function that Espalexa will call when the device is changed: Just download it and add it as ZIP library in the IDE. ⚠️ Do not use Espalexa in a production environment! The API utilized is known to not be permanently stable and may cease functioning at any point. You can get a percentage from that value using espalexa.toPercent(brightness) įauxmoESP is now a great alternative that also supports dimming and setting colors! Color temperature (white shades) is also supported.īy default, it's possible to add up to a total of 10 devices (read below on how to increase the cap).Įach device has a brightness range from 0 to 255, where 0 is off and 255 is fully on. ![]() Then, you can say "Alexa, turn the light to Blue". Brightness, Temperature) and optionally a color, additionally to standard on/off control.įor example, you can say "Alexa, turn the light to 75% / 21 degrees".Īlexa now finally supports colors with the local API! You can see how to add color devices in the EspalexaColor example. It allows you to set a ranged value (e.g. Now compatible with both ESP8266 and ESP32! What does this do similar projects don't already? It comes in an easy to use Arduino library. Espalexa allows you to easily control your ESP with the Alexa voice assistant. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |