{"id":5000,"date":"2020-03-23T16:16:41","date_gmt":"2020-03-23T16:16:41","guid":{"rendered":"https:\/\/www.fambach.net\/?p=5000"},"modified":"2025-09-26T13:52:49","modified_gmt":"2025-09-26T13:52:49","slug":"esp-mit-alexa-steuern","status":"publish","type":"post","link":"https:\/\/www.fambach.net\/en\/esp-mit-alexa-steuern\/","title":{"rendered":"Control ESP with Alexa"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Contents\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/#Boardmanager\" >Boardmanager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/#Installation_uberprufen\" >Installation &uuml;berpr&uuml;fen<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/#Probleme\" >Problems<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/#Keine_Beispielprogramme_fur_den_ESP32\" >Keine Beispielprogramme f&uuml;r den ESP32<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/#Verwandte_Beitrage\" >Verwandte Beitr&auml;ge<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/#Fazit\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/#Quellen\" >Sources<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\">Beim St&ouml;bern im Netz bin ich auf eine interessante Bibliothek gestossen. Die Fauxmo Bibliothek ist zur Anbindung des ESP8266\/32 an eine Alexa gedacht. Die Bibliothek simuliert ein Philips Hue Device, welches direkt &uuml;ber die Alexa gesteuert werden kann. Es bedarf keiner zus&auml;tzlichen Services oder anderer Skills. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here's the link to the library<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bitbucket.org\/xoseperez\/fauxmoesp\/src\/master\/\">https:\/\/bitbucket.org\/xoseperez\/fauxmoesp\/src\/master\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Abh&auml;ngigkeiten<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Je nach Controller wird eine der folgenden Asynchronen Libs ben&ouml;tigt:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ESP8266: <a href=\"https:\/\/github.com\/me-no-dev\/ESPAsyncTCP\">ESPAsyncTCP<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ESP32:  <a href=\"https:\/\/github.com\/me-no-dev\/AsyncTCP\">AsyncTCP<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ESP Programme<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here's my flashing variant, Alexa only controls the built-in LED here:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gist.github.com\/sfambach\/287b4e5e5b9058da4cfb677d4625418f\">https:\/\/gist.github.com\/sfambach\/287b4e5e5b9058da4cfb677d4625418f<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Load code onto the controller, check if the network connection is established.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.fambach.net\/wp-content\/uploads\/image-6.png\" alt=\"\" class=\"wp-image-5006\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> Then it continues with Alexa...<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Alexa<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sagen: &#8222;Alexa suche neue Ger&auml;te&#8220; <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Alexa should then find the blue light. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201eAlexa, switch on blue lamp.,<br>\u201eAlexa, turn off blue lamp\u201c <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Can the LED on the ESP be controlled?.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fazit\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Die Bibliothek ist leicht einzubinden und erledigt ihre Arbeit zuverl&auml;ssig.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">&Auml;hnliche Beitr&auml;ge<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><ul class=\"display-posts-listing\"><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-highgrow-pflanzenspiess\/\">ESP32 HiGrow V1.0 (Plant Spike)<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp-mit-alexa-steuern\/\">Control ESP with Alexa<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten-2\/\">ESP8266 Arduino GUI setup<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/ota-esp32fota-test\/\">OTA - ESP32fota Test<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/den-esp8266-schlafen-legen\/\">Put the ESP8266 to sleep<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/mqtt-protokoll-mit-kleinen-versuch\/\">MQTT Protocol + Experimental Setup<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/nodemcu-v2-motorplatine\/\">NodeMCU V2 Motor Board<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/ssd1306-monochrom-oled-128x64-i2c-2-2\/\">ESP8266 SSD1306 Monochromatic OLED 128\u00d764 I2C<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/nodemcu-v3-mit-oled-display-aufmotzen\/\">Spice up NodeMCU V3 with an OLED display<\/a><\/li><li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-arduino-gui-einrichten\/\">Setting up ESP32 with the Arduino GUI<\/a><\/li><\/ul><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Quellen\"><\/span>Sources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bitbucket.org\/xoseperez\/fauxmoesp\/src\/master\/\">https:\/\/bitbucket.org\/xoseperez\/fauxmoesp\/src\/master\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/originallyus\/node-red-contrib-alexa-local\">https:\/\/github.com\/originallyus\/node-red-contrib-alexa-local<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/me-no-dev\/AsyncTCP\">https:\/\/github.com\/me-no-dev\/AsyncTCP<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/me-no-dev\/ESPAsyncTCP\">https:\/\/github.com\/me-no-dev\/ESPAsyncTCP<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-random-nerd-tutorials\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"GPmYaO1ahF\"><a href=\"https:\/\/randomnerdtutorials.com\/alexa-echo-with-esp32-and-esp8266\/\">Alexa (Echo) with ESP32 and ESP8266 \u2013 Voice Controlled Relay<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u201cAlexa (Echo) with ESP32 and ESP8266 \u2013 Voice Controlled Relay\u201d \u2014 Random Nerd Tutorials\" src=\"https:\/\/randomnerdtutorials.com\/alexa-echo-with-esp32-and-esp8266\/embed\/#?secret=XibxWzdFtM#?secret=GPmYaO1ahF\" data-secret=\"GPmYaO1ahF\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/figure>","protected":false},"excerpt":{"rendered":"<p>While browsing the web, I came across an interesting library. The Fauxmo library is intended for connecting the ESP8266\/32 to an Alexa. The library simulates a Philips Hue device, which can be controlled directly via Alexa. It doesn't require any additional services or other skills. <\/p>\n<a href=\"https:\/\/www.fambach.net\/en\/preview-esp01-relais-modul\/\" class=\"read-more-link\">Carry on reading <span class=\"screen-reader-text\">\"ESP01 &#8211; Relais Platine\"<\/span> <span class=\"meta-nav\">\u2192<\/span><\/a>","protected":false},"author":1,"featured_media":5012,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[183,189,212],"tags":[33,93,148,23],"class_list":["post-5000","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bibliotheken","category-esp-projekte","category-wifi","tag-esp","tag-esp-projekte","tag-esp32","tag-esp8266","penguin-post","penguin-post-not-sticky"],"modified_by":"sfambach","_links":{"self":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/comments?post=5000"}],"version-history":[{"count":14,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5000\/revisions"}],"predecessor-version":[{"id":14516,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5000\/revisions\/14516"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/media\/5012"}],"wp:attachment":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/media?parent=5000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/categories?post=5000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/tags?post=5000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}