doorbell

January 12, 2017

SmartThings Notification through Multiple Sonos Speakers

Since I have my Aeotec by Aeon Labs ZW056 Doorbell with SmartThings, and my custom Device Handler in SmartThings to control the doorbell.  I wanted to have a custom notification sound play through my multiple Sonos speakers.

If you need help pairing the Aeotec/Aeon labs doorbell with SmartThings visit the link below.

How I was able to pair Aeon Labs Doorbell with SmartThings

First things first you need to login to your SmartThings IDE

https://graph.api.smartthings.com

Next Click on “My Hubs” (this was my biggest problem at first, it wasn’t actually pulling up my devices so the Device Handler at first was never getting installed to my Hub).   If you see a message that says “You don’t have any hubs yet. Please use the SmartThings mobile app to claim your hub.”  You need to click on “My Locations“, then Click on your Hub Name mine was  called “Home“.  It should ask you to login again.  You should now see your Hub information.  Great you are now actually logged into your account.

Step 2.  Now that you are logged in we are going to be creating a new SmartThings SmartApp.  So click on My Smart Apps at the top.

Next Click on “New Smart App” in green on the top right of the page.

Next Choose “From Code“.

The following code I used thanks to SmartThings Community can be found by clicking here.

Code
sonos-notify-with-sound_multiple

Once your code has been pasted Choose “Save“, then “Publish“.

Next Open up your SmartThings application on your android or iPhone.

Click on “Add a SmartApp” at the bottom.

Next all the way down and choose “My Apps” since this was a custom App that we added.

You should now see your Sonos Notify with Sound_Multiple.  This will allow you to choose multiple Sonos speakers for your Doorbell notifications.

Here’s how I set up my doorbell.  I made sure on the Doorbell Button Press (Aeotec Doorbell) was triggered it would play the custom .mp3 that I have added.  ( I will explain in my next post on how to add your own custom sounds to the list).   If you used my code from the top you will notice I added the “National Lampoons Christmas Vacation Doorbell“.  It’s also set to play throughout my Sonos speakers.

Here’s some more settings you can also set.  I wanted to make sure if I was playing music and someone rang the doorbell, the music would continue playing.

Also I wanted to temporarily change the music volume so I could hear the doorbell notification sound.

Read More
January 4, 2017

Aeotec by Aeon Labs ZW056 Doorbell with SmartThings

Aeotec AeonLabs Doorbell

So my next step onto my SmartHome was installing a doorbell that would work with my current Smartthings hub.   This was tricky because my house never had a doorbell or a wire installed so I wanted to go the easiest route and install a wireless doorbell.

Purchase:  Aeotec by Aeon Labs ZW056 Doorbell

The hardest part was installing a custom Device Handler through the Smartthings IDE.  Please make sure you do not pair this device yet with your SmartThings app.

First login to your SmartThings IDE

https://graph.api.smartthings.com

Next Click on “My Hubs” (this was my biggest problem at first, it wasn’t actually pulling up my devices so the Device Handler at first was never getting installed to my Hub).   If you see a message that says “You don’t have any hubs yet. Please use the SmartThings mobile app to claim your hub.”  You need to click on “My Locations“, then Click on your Hub Name mine was  called “Home“.  It should ask you to login again.  You should now see your Hub information.  Great you are now actually logged into your account.

We are going to be using the custom Device Handler created by krlaframboise on the SmartThings Community – [RELEASE] Aeon Labs Aeotec Doorbell

On the SmartThings IDE Page, at the Top Click on “My Device Handlers

Next Click on “Create New Device Handler” button in Green.

Navigate over to the GitHub Device Handler Code at https://github.com/krlaframboise/SmartThings/blob/master/devicetypes/krlaframboise/aeotec-doorbell.src/aeotec-doorbell.groovy be sure to copy the entire code contents.

Now that the code is copied we want to place it back in the SmartThings IDE Device Handler.  On the Create New Device Handler Page, Click on “From Code“.  (Like shown below).

Once the Code has been Pasted in, hit the “Save” button then hit the “Publish” button.

That’s the complete setup for getting your Custom Device Handler added to your SmartThings hub.  The next step is you want to pair your new Aeon Labs Doorbell to the SmartThings hub.  Like I said in the beginning if you already have your device connected to the Hub you need to Remove it and run the exclusion tool to remove the device.

Open up your SmartThings App and Choose “Add a Thing” Make sure this is the only way you add the device, do choose from the List it needs to find it manually and apply the Custom Device Handler.

  

Once the SmartThings application finds your new Doorbell it should say “Aeotec Doorbell” if it does not and says something about a Siren, your device handler is installed wrong.

In the image below is what the settings will look like over your Aeon labs / Aeotec Doorbell in Smartthings.

   

Now that my Custom Device Handler was installed correctly.  I was able to go and Create a Custom Automation Rule so when the doorbell was pressed it would trigger an event.

       

I made it so the Automation Rule would turn on my (2) Hue Blooms and starting playing my Sonos Kitchen speaker on the event the “Doorbell” button was “Pushed or Held“.

Read More