Amazon Alexa Doorbell skill

Amazon Alexa Doorbell skill

Would you like to integrate the Amazon Alexa Echo with your existing Home Automation solution? With the service we provide you can create as many doorbells as you like, then get the Amazon Alexa Echo device to announce and or chime when your doorbell is pressed.

Perhaps your doorbell is not loud enough? Or, you sometimes find you can not hear your doorbell in certain rooms of your house? Use your Amazon Alexa as an extension and make sure you never miss your doorbell ring again!

Once you have linked your Alexa device, created a door bell or two, you can test them out to ensure that they sound your chosen chime, all free of charge.

The Amazon Alexa system can go further than this through the use of Alexa Routines. These are scenes (as shown below) that you can easily create to run when something triggers them, a doorbell press is just one of the many trigger inputs available, you could think of this, not as creating doorbells, but as creating triggers.

Trigger Actions
Trigger action Routine action

When you are ready to embed this into your home automation controller, you can make use of our API service.

Happy triggering!

How to set up your Alexa device

Watch this video

How to test your new door bell using the web site

  1. Create an account with us

  2. Enter the doorbell name and click Save Create a new doorbell

  3. Click on link to test your new virtual door bell Doorbell created

  4. Click on the Test button to try out your virtual doorbell Test Doorbell

How to trigger using the Doorbell REST API

In the below examples, you need to replace the {your doorbell key} with the key given in the website above, additionally you will need your IJPUK Solutions logon credentials, this is done using a format called base64 encoding.

This can be obtained from this page, you will be issued a token and this should be replaced where indicated below.

Example code

curl -X POST https://api.ijpuk.com/api/v1/Doorbell/{your doorbell key} -H 'Authorization: Basic {your token}' -H 'Content-Length: 0'

Python

import requests

url = "https://api.ijpuk.com/api/v1/Doorbell/{your doorbell key}"

payload = ""
headers = {
    'Content-Length': "0",
    'Authorization': "Basic {your token}"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

c# (RestSharp)

var client = new RestClient("https://api.ijpuk.com/api/v1/Doorbell/{your doorbell key}");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Basic {your token}");
request.AddHeader("Content-Length", "0");
IRestResponse response = client.Execute(request);

go

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.ijpuk.com/api/v1/Doorbell/{your doorbell key}"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Content-Length", "0")
	req.Header.Add("Authorization", "Basic {your token}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Bash (legacy devices only)

If your device is unable to use the above methods, you can use this method instead. To obtain your url token then visit this page

curl https://api.ijpuk.com/api/v1/Doorbell/{your doorbell key}/{your url token}

For more information on the use of the API service can be found using the Swagger documentation, additionally more complete examples can be found here