Hi..
Can anyone help me?
I have made a driver for Bluesound which is helped by @tomw.
I made it like this.
def refresh()
{
unschedule(refresh)
def status = httpGetExec("Status")
if(status)
{
events = [[:]]
events += [name: "volume", value: status.volume.toInteger()]
events += [name: "mute", value: (status.mute.toInteger() == 1) ? "muted" : "unmuted"]
events += [name: "status", value: status.state]
events += [name: "trackData", value: status.streamUrl]
events += [name: "trackDescription", value: "${status.title1} - ${status.artist} - ${status.album}"]
events += [name: "trackArt", value: status.currentImage]
switch(status.inputId)
{
case "input4":
events += [name: "MediaInputSource", value: "HDMI"]
break
case "Spotify":
events += [name: "MediaInputSource", value: "Spotify"]
break
case "input5":
events += [name: "MediaInputSource", value: "Bluetooth"]
break
}
events.each
{
sendEvent(it)
}
}
runIn(refreshInterval ?: 60, refresh)
}
It works on Hubitat, but why when i connect on The Home Remote. The Album Art Uri is not working.
Can anyone help me?
thank you