togglePlayback()

#
Description:
NOTICE:Not available on all devices. Only works on devices that support music playback control

Used to toggle between playing and stopped state
Example: togglePlayback()

searchMusic(searchPhrase, providerId)

#
Description:
NOTICE:Not available on all devices. Only works on devices that support music playback control

Used to play music from the desired music provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

ProviderId (String): ProviderId's allowed [CLOUDPLAYER, AMAZON_MUSIC, APPLE_MUSIC, I_HEART_RADIO, PANDORA, SPOTIFY, TUNEIN]

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchMusic("thriller", "AMAZON_MUSIC")
Optional: searchMusic("thriller on the upstairs", "AMAZON_MUSIC", 40, 300)

Info: I have discovered that when trying to play songs I had to add the word song to the search phrase. --- ###

searchAmazonMusic(searchPhrase)

Description:
NOTICE:Not available on all devices. Only works on devices that support music playback control

Used to play music from Amazon Music provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchAmazonMusic("thriller")
Optional: searchAmazonMusic("thriller on the upstairs", 40, 300)

Info: I have discovered that when trying to play songs I had to add the word song to the search phrase. --- ###

searchAppleMusic(searchPhrase)

Description:
NOTICE:Not available on all devices. Only works on devices that support music playback control and Apple Music

Used to play music from Apple Music provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchAppleMusic("thriller")
Optional: searchAppleMusic("thriller on the upstairs", 40, 300)

Info: I have discovered that when trying to play songs I had to add the word song to the search phrase. --- ###

searchPandora(searchPhrase)

Description:
NOTICE:Not available on all devices. Requires connection of Pandora skills

Used to play music from Pandora Radio provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchPandora("thriller")
Optional: searchPandora("thriller on the upstairs", 40, 300)
--- ###

searchIheart(searchPhrase)

Description:
NOTICE:Not available on all devices. Requires connection of iHeart Radio Skill

Used to play music from iHeartRadio provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchIheart("thriller")
Optional: searchIheart("thriller on the upstairs", 40, 300)
--- ###

searchSiriusXm(searchPhrase)

Description:
NOTICE:Not available on all devices. Requires Sirius XM subscription.

Used to play music from Sirius XM provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchSiriusXm("thriller")
Optional: searchSiriusXm("thriller on the upstairs", 40, 300)
--- ###

searchSpotify(searchPhrase)

Description:
NOTICE:Not available on all devices. Requires Spotify subscription.

Used to play music from Spotify provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchSpotify("thriller")
Optional: searchSpotify("thriller on the upstairs", 40, 300)

Info: I have discovered that when trying to play songs I had to add the word song to the search phrase. --- ###

searchTuneIn(searchPhrase)

Description:
NOTICE:Not available on all devices. Only works on devices that support music playback control and Tune-In Radio

Used to play music from Tune-In Radio provider
Required Parameters

SearchPhrase (String): String between 0-100 characters in length. This can be song name, playlist, artist.
You can also add an audio group in the search to have it played under a group of alexa devices.

Optional Parameters

Volume (Integer): Between 0-100

sleepSeconds (Integer): Number of seconds to play the music (Sleep timer)

Example: searchTuneIn("thriller")
Optional: searchTuneIn("thriller on the upstairs", 40, 300)
--- ###

Testing

I've recently added a Music Search Test section to the main page of the SmartThings/Hubitat app.