How about expanding tutorial on “Door Status Monitor using the ESP8266” for use with Amazon, Alexa devices?
Hello Lucid, do you mean requesting the current door status to Alexa and hear it back?
thanks for the suggestion!
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!
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
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).
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…
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:
Example Arduino C++ code for esp8266-esp32-sdk library; for supported devices:
Contact sensors (Reed switch) is one of the supported devices.
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
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.