Saturday , October 1 2022

How to trigger Alexa personalized notifications from a smart home to the Internet – Stacey on the Internet


This week, IoT Podcast, I received a big e-mail question from Keith. He wants to know if an Echo Amazon can notify him of external events based on other smart devices in his home. For example, if a webcam sees movement, can Alexa tell her?

Is not native to do so, but the Notify Me Alexa ability works for this. Note that the setting is not a simple process and requires an external service such as IFTTT.

Using the motion detection example of the webcam, here are the steps to do this. You can adjust them properly for any smart device you want to use as a trigger event, of course.

First, activate the Notify Me ability found on the Amazon Alexa Skills site or in the Alexa app.

Note that you will need to approve the Alexa notification permission for this. Once enabled with the appropriate permissions, you must receive an email that includes a unique notification access code. This is related to your Amazon account and is required for the service to work.

If you want to test your skills at this time, there's also an email link to generate a notification to Echo devices; click on him and Alexa should make a sound or light up to inform you about a new notification. Say "Alexa, plays notifications" and she should say "Hello world," which is the test message.

Now is the time to set up your skills with IFTTT using the long access code. I chose to create an IFTTT recipe using a Nest Cam in this example.

Step 2 is choosing the appropriate Nest; I have two, and for this example, I will use the camera that is heading to our access road and we will select the "New Motion Event" option as a trigger. Once you have selected the appropriate device, click the "Create Trigger" button.

With the configured triggering event, it's time to tell IFTTT what to do when that event occurs by clicking "+ that" and searching for Webhooks. The reason? We want IFTTT to send a web order to the Notify Me ability.

Here's where the process gets marginal difficult, but you trust me, you can do it! Choose the only option you'll see for Webhooks, which is the "Make a web application" selection. Then you will see four paper configuration fields. Use the following information to complete the top three:

  • URL:
  • Method: POST
  • Content type: application / json

This should be the first three fields after you finish this entry:

The fourth and last field, Body, is where you will create a customized notification based on this format: {"notification": "Hello world!", "Access Code":"ACCESS CODE"}.

You may want to paste the line above (including curved bracelets) right into your body because you will only change what we put it in italics. You can replace it "Hello world!" with personalized notification; this is what Alexa will say when she sees the Nest Cam movement. I will use "I see the alley movement" for this deployment.

Finally, replace the "ACCESS_CODE" part with the unique access code, making sure you enter quotes around it. Here's how it should look like in my example, although I did not stick a real access code and my fake code is shorter than the real code.

Once all the fields are filled in correctly, simply tap "Create action" to activate your new alert. That's it!

In this particular case, Alexa receives a notification whenever my Nest Cam feels the movement. Just to reiterate, Alexa will not simply speak when it gets notified: you'll have to ask her to read the alert out loud, so Amazon's notifications are implemented.

And there's something you need to know. Regardless of what smart home device you use as a trigger event, Amazon limits API notification: Trigger events can create notifications up to five times within five minutes. After that, Amazon puts you in a stop time. I do not think you want to receive notifications every minute, but it's worth mentioning if you use the ability several times in a few minutes during the installation or testing process.

Thanks to the Notify Me ability, Alexa can tell you about any external events triggered by a sensor, camera or any other smart device supported by IFTTT. Notify Me is not limited to IFTTT because it works with ISY, Indigo, HomeSeer and Tasker, but I chose IFTTT for this example because it's relatively simple and many people are familiar with it.

If you've heard our answer to this question rather, you can click the play button below to start the podcast directly at our Icon-Podcast Hotline section:

And keep in mind that you can always leave your question by calling Hotspot IpT at 512-623-7424!

<! –


Source link