• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP8266, Alexa and Door Status

Q&A Forum › Category: ESP8266 › ESP8266, Alexa and Door Status
0 Vote Up Vote Down
William Lucid asked 5 years ago

How about expanding tutorial on “Door Status Monitor using the ESP8266” for use with Amazon, Alexa devices?

Question Tags: Alexa, Door Monitor, door sensor, ESP8266
8 Answers
1 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello Lucid, do you mean requesting the current door status to Alexa and hear it back?
thanks for the suggestion!

0 Vote Up Vote Down
William Lucid answered 5 years ago

Yes, please!!!  Spent morning trying different things with no luck.  Thinking about using “Home Assistant.”   I see Aliexpress sells a Smart Door Monitor for $6.50 with free shipping that works with “Alexa” and “Google Home!”  Not much to one of those; just getting it to work with “Alexa” or “Google Home.”

I do have your sketch “Door Status Monitor For ESP8266” working in the Serial Monitor; however, no email is received from “Google Service.”  I understand allot of applets no longer work as they once did with “Google Service.”

Found this article that maybe helpful in working with Alexa, contact sensors, and motion detectors:  https://developer.amazon.com/blogs/alexa/post/bda9d70c-2f0d-454d-9939-2eb82868cf35/announcing-contact-and-motion-sensor-apis-and-integration-into-alexa-routines-adding-new-home-automation-features-for-customers-and-new-opportunities-for-smart-home-developers

 

Enjoy your tutorials.  Please keep up the great support you are doing for the ESP32 and ESP32!

William

0 Vote Up Vote Down
William Lucid answered 5 years ago

Found a skill that makes connecting ESP32 and ESP8266 an easier task.  You need four things: Amazon Alexa device, Sinric Pro Skill (Free), ESP32 or ESP8266, and one of the devices supported by Sinric Pro Skill.   I am using an ESP9266 with a contact  sensor.  Works perfectly with Alexa!

Library for ESP32 and ESP8266:  https://github.com/sinricpro/esp8266-esp32-sdk

Sinric Pro website:  https://sinric.pro/index.html

Amazon Sinric Pro Skill page:  https://www.amazon.com/HOME-Sinric-Pro/dp/B07ZT5VDT8

Best Regards,
William

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello again, unfortunately I don’t have any experience creating or coding Amazon skills, it’s easier to control the ESP32 outputs (ESP emulates another known device).

Read: Alexa (Echo) with ESP32 and ESP8266 – Voice Controlled Relay

I don’t know any library that make it easy to request the current status from an ESP. As you’ve mentioned, you might need to usa  combination of libraries or you might need to create a skill from scratch…

Regards.
Rui

0 Vote Up Vote Down
William Lucid answered 5 years ago

Anyone looking to interface ESP32 or ESP8266 with Amazon Alexa; should checkout the “Sinric Pro” skill. 
Library that makes it easy to interface a ESP32 or ESP32 and Alexa: 
https://github.com/sinricpro/esp8266-esp32-sdk
Example Arduino C++ code for esp8266-esp32-sdk library; for supported devices:
https://github.com/sinricpro/esp8266-esp32-sdk/tree/master/examples
Contact sensors (Reed switch) is one of the supported devices.  
William

0 Vote Up Vote Down
William Lucid answered 5 years ago

Just posted my Documentation to “Hackster.io” for an “Alexa, Repeating ESP8266 Alarm.”    When door is opened. “Alexa says, Garage Door is open” then sounds the “Red-Alert” sound effect.  If the Garage Door is left open; every ten minutes “Alexa” says, “Garage door is open” and plays “Red-Alert.”  “Alexa, can be queried by asking:  “Alexa” is Garage open” or “Alexa” is Garage close.”

Interface is very simple using the “Sinric Pro,” “ESP32/ESP8266 library linked to in earlier post in this thread.
My documentation can be found here:  https://www.hackster.io/Techno500/alexa-repeating-esp8266-esp32-alarm-b47d44?utm_campaign=published_project&utm_medium=email&utm_source=hackster

William

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi William.
Thanks for sharing your project with us.
Regards, Sara 

0 Vote Up Vote Down
William Lucid answered 5 years ago

Added a narrated video to “Hackster.io” documentation.

Added a second contact sensor to project; same as single contact sensor, some of “Sinric Pro’s” contactsensor.ino” example sketch required modification.  Code can be found here:  https://github.com/Tech500/Alexa-ESP8266-Repeating-Alarm/blob/master/Two_contact_sensors.ino

Two new routines need to be added for the second contact sensor.

William

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.