Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
krlaframboise committed Oct 8, 2016
1 parent 280cfe9 commit 7e11b36
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Aeotec Doorbell v 1.10
* Aeotec Doorbell v 1.10.1
* (Aeon Labs Doorbell - Model:ZW056-A)
*
* (https://community.smartthings.com/t/release-aeon-labs-aeotec-doorbell/39166/16?u=krlaframboise)
Expand All @@ -13,6 +13,10 @@
*
* Changelog:
*
* 1.10.1 (10/08/2016)
* - Added speech synthesis capability so that the
* speak command can play a track number.
*
* 1.10 (10/04/2016)
* - Added volume slider to main tile.
* - Removed volume preference.
Expand Down Expand Up @@ -107,6 +111,7 @@ metadata {
capability "Battery"
capability "Refresh"
capability "Polling"
capability "Speech Synthesis"

attribute "lastPoll", "number"

Expand Down Expand Up @@ -449,6 +454,11 @@ def playTextAndRestore(message, volume=null) {
playText(message, volume)
}

def speak(message) {
// Using playTrack in case url is passed in.
playTrack("$message", null)
}

// Extracts the track number from the URI and passes it and
// the volume to the playText command.
def playTrack(URI, volume=null) {
Expand Down

0 comments on commit 7e11b36

Please sign in to comment.