Mellit7 / Smartthings-SqueezeBox-Control

Smartthings Control for Logitech Media Server and Players (Squeezebox)
Apache License 2.0
8 stars 6 forks source link

Need clarification on set up #2

Open NorbertKrupa opened 3 years ago

NorbertKrupa commented 3 years ago

In https://github.com/Mellit7/Smartthings-SqueezeBox-Control/blob/master/README.md, step 3 states to update the device network id... but of which device?

NorbertKrupa commented 3 years ago

I have added the two devices:

image

Two device handlers:

image

Two SmartApps:

image

NorbertKrupa commented 3 years ago

The two apps in SmartThings:

image

No data in the player:

image

Thanks @Mellit7

joshualyon commented 3 years ago

Let me preface this with: I don't actually have an LMS or PiCore Player, so I'm just going based on the forum discussions and GitHub instructions. 😜

From what I understand, I think you install the code for both the Player and Server in the IDE. Then create just the server device instance with an arbitrary Device Network ID (DNI), then configure that device's preferences (IP and port) at which point it will calculate and show you the formatted DNI to use in the currentActivity attribute, then edit the DNI of the server device to use the formatted DNI.

Side note: looking at the code, it looks like it actually attempts to correct the DNI itself so you might just need to set the IP and port and save (and no need to adjust the DNI manually). So it might just be that the README instructions are slightly outdated?

Once you have the Server device created and the base configuration / DNI stuff done, then go back in and edit the server device with the mac address of the player and it should automatically create the child devices with the player configured propertly.

Mellit7 commented 3 years ago

Joshua is indeed correct. The device id for the server is the one you need to update for it to work. A bug in smartthings requires this to be done manually, or at least it was when this was released. You do not manually create the players. There are two ways to get have them created for you. This is required for communication with LMS to work.

Because of the many changes to the Smartthings environment, I am no longer supporting this project. It is unknown how long it will continue to work as the developer platform changes, and I was never able to get it fully translated to the new app before I left the Smartthings ecosystem