@Jim, also, powerSource and locationMode are missing from the documentation. Maybe someone please wants to go over the Capabilities list and refresh it?
Thank you for your very quick reply
@Jim, also, powerSource and locationMode are missing from the documentation. Maybe someone please wants to go over the Capabilities list and refresh it?
Thank you for your very quick reply
<delegating>
Thanks, @unixbeast recently did a capabilities docs request. He can shed more light on why those arenât in the docs.
</delegating>
Real-time follow-up: locationMode
isnât documented because itâs not supported and may be removed.
When you say powerSource
do you mean the powerSource
attribute of the Power capability? That should be documented, weâll get it fixed.
@Jim @unixbeast Itâs a capability, according to Platform Update - Release Notes - 4/13/16
Thatâs not correct, unfortunately. powerSource
was a new attribute added to the Power
capability. Sorry for the confusion
Ok, so the new capability is called PowerâŚ
Power Capability updated (the attribute name was wrong before), and Timed Session updated with correct setTimeRemaining()
command signature.
Thanks and apologies for the confusion!
[quote=âady624, post:525, topic:46546â]
And it all boils down to STâs lack of documentation and standardization. [/quote]
The commands below arenât included in the documentation for the Music Player capability, but Iâve found that SmartThings apps like Speaker Notify with Sound and SHM are using them instead of whatâs documented.
I recently helped a user get their Samsung M5 Speakers to work with Smart Alarm by replacing the documented playText command with the undocumented playTrackAndRestore command in the SmartApp.
Maybe @Jim explain why SmartThings is creating and publishing SmartApps and Device Handlers that arenât using the Music Player Capability as documented, but it might be worth including them in your âtableâ anyways.
Thank you, I will. Parameters?
I canât remember where I ran into the last one so I was unable to verify it, but the rest of the list should be correct:
playSoundAndTrack(uri, duration, selectedSong, volume)
playTrackAndResume(uri, duration, volume)
playTrackAndRestore(uri, duration, volume)
playTextAndRestore(text, volume)
playTextAndResume(text, volume) ?
Thank u. Is volume a 0-100%? How about selectedSong? String?
Yes, volume appears to be integer 1-100.
The Notify w/ Sound SmartApp appears to be using a value retrieved from the trackData attribute as the song so Iâm thinking the selectedSong parameter is JSON.
Quick question, maybe I missed the answer along the wayâŚ
Will there be a way to disable a Piston when we donât want it to run vs. deleting it and recreating it at a later time?
Holiday or special lights come to mind or when I am trying to figure stuff out, itâs nice to be able to go back and compare and have it disabled.
Thanks in advance
Rick
These arenât commands defined on any capability. Perhaps they are custom commands for particular devices?
If thatâs the case then why are SHM, Speaker Notify with Sound, and Speaker Weather Forecast calling those commands on a musicPlayer input?
All of those SmartApps were written by SmartThings and thereâs even a comment in one of them that says the attribute âdescriptionâ is there for backwards compatibility and will be removed in the future.
Also, the playText command doesnât work on the Samsung M5 or Samsung M7 Speakers, but the playTrackAndRestore command does.
Yes, pausing is a planned-for feature. There will also be a global maintenance mode where all pistons will come to a haltâŚ
Are you going through the RM thread and picking up all of the requests that Bruce didnât get a chance to implement, or what??? lol
I havenât. Said before, trying to not to be biased⌠This idea came to me when you asked for count of pistons under statistics. Thatâs when I added Paused pistons in the stats⌠Lol
Devices can specify custom commands outside of any capability, and that is the case with the commands listed above. They are not capability-based commands, but device-specific commands.
Just remember if attempting to use non-capability commands on a capability-based input to check that the specific device supports that command using hasCommand().
The question of if they should be part of the capability definition is valid, and is something Iâll raise for consideration.
HmmmâŚ