Button controller playTrack()

I'm trying to use the Button Controller app to test my Spotify integration by passing a Spotify URL to the virtual device, but Button Controller seems to be passing a null value to the driver instead of the track URL. I thought maybe it didn't like something in the URL string, but it doesn't pass a plain string either. I tossed a logging statement in and I get playTrack called for device Living Room, track null. Is something up with Button Controller or am I crazy?

Edit: the same track URL works when passed using the device page

Look at the app settings for that Button Controller, and see what it says for the setting called 'playerTrack'. Whatever is there is what it is passing to the player.

It shows the correct string, but the logging in the driver is reporting null. The playTrack method is:

//Play Spotify Album/Playlist/Track URI
void playTrack(track) {
    log.debug "playTrack called for device ${device}, track ${track}"
	parent.playTrack(this, track)
}

Found the bug. Will be fixed in next release. It should be 'playerTrack_1' (or whatever number), not 'playerTrack'. Setting was right, but method to send message dropped the tail end of the setting name, hence returned null.

This has been fixed in 1.1.4.

1 Like