Logitech Media Server

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
mschut
Posts: 108
Joined: Sunday 23 February 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5613
Location: Netherlands
Contact:

Re: Logitech Media Server

Post by mschut »

Will test the Boom!
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Logitech Media Server

Post by pvm »

I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?
Attachments
2sb.JPG
2sb.JPG (35.53 KiB) Viewed 2962 times
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

pvm wrote:I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?
Will look into that. Thanx for reporting!

For now you can delete the LMS hardware and add it again to loose your 'old' player...
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Logitech Media Server

Post by Nautilus »

Eduard wrote: I just created a pull-request with support for Boom & SqueezePlay. Should be available in next beta...
Hi, is there some particular reason for not adding Duet (receiver) and controller - and possibly also iPengiPod? :)

At least the first two should be quite identical to other SB players and I don't see why the basic controls wouldn't work. Will of course report here if there would be some issues..
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

Nautilus wrote:Hi, is there some particular reason for not adding Duet (receiver) and controller
They were already supported in a previous beta :D
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

pvm wrote:I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?
Fixed! Should be available in new beta...

PS.: Still have to delete hardware and add again to get rid of the duplicate player for now. In new version it won't add a new player if the IP or Name changes...
mschut
Posts: 108
Joined: Sunday 23 February 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5613
Location: Netherlands
Contact:

Re: Logitech Media Server

Post by mschut »

The Boom has arrived. Simple test (turn on, off, play) successful.
Immo
Posts: 19
Joined: Wednesday 11 February 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Logitech Media Server

Post by Immo »

Squeeze play also came up right away after the update.
Control seems to be working fine

Cheers!
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Logitech Media Server

Post by pvm »

Eduard wrote:
pvm wrote:I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?
Fixed! Should be available in new beta...

PS.: Still have to delete hardware and add again to get rid of the duplicate player for now. In new version it won't add a new player if the IP or Name changes...
Thnx, removed the hardware, readded and back to one device again
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Logitech Media Server

Post by Nautilus »

Eduard wrote:
Nautilus wrote:Hi, is there some particular reason for not adding Duet (receiver) and controller
They were already supported in a previous beta :D
Awesome, works great so far! :D
mschut
Posts: 108
Joined: Sunday 23 February 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5613
Location: Netherlands
Contact:

Re: Logitech Media Server

Post by mschut »

About notifications: I notice the notifications "on" and "off" are the only ones which work for me, and also only if I turn on/off in Domoticz, not by the device itself. Would be great if it would also work on the devices self, including the "play" option.
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

New test version available! (For testers who are able to compile from source)

Changes:
* Add notifications to LMS players (on/off/play/pause/stop)
* Add LMS-player(s) as notifier (send notifications to your players display :D)

How to update:

Code: Select all

cd ~/dev-domoticz
git pull
make
For starters: search this thread how to start compile from source.

Now working on LUA script & Blockly's :P

Thanx for your testing & suggestions :D

Enjoy!!
Last edited by Eduard on Thursday 08 October 2015 11:30, edited 1 time in total.
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

mschut wrote:About notifications: I notice the notifications "on" and "off" are the only ones which work for me, and also only if I turn on/off in Domoticz, not by the device itself. Would be great if it would also work on the devices self, including the "play" option.
See previous post :D
mschut
Posts: 108
Joined: Sunday 23 February 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5613
Location: Netherlands
Contact:

Re: Logitech Media Server

Post by mschut »

Oops. I just updated and posted on my phone....
mschut
Posts: 108
Joined: Sunday 23 February 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5613
Location: Netherlands
Contact:

Re: Logitech Media Server

Post by mschut »

Ow, I was 2 minutes earlier ;)

Also available in the Pi beta version (now V2.3267)?
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

mschut wrote:Also available in the Pi beta version (now V2.3267)?
No, not yet. After good test result i will make a pull-request within a few days...
User avatar
cyberclwn
Posts: 103
Joined: Thursday 20 August 2015 22:53
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Logitech Media Server

Post by cyberclwn »

Hey,

Was about to point an issue similar to what you mentioned:
Eduard wrote:
Eduard wrote:The domotcz/master version has one bug which i'm not able to fix right now:
After switching on a player and play a song, the device shows artist & title as expected. But if i switch a normal switch, the status of this switch also shows the same artist & title :oops:
Found it! Fixed in new beta...

Also enabled support for Controller & Receiver. Please let me know if it works for those devices...
In my case you didn't even have to change status of a switch, just had to wait some time. Then other switches started to show the music being played as their status.
But have git-pulled your new version, compiled it and have it running for some time now, seems fixed indeed.

Not tested the notification to the LMS yet.
The notification when a device is turned on from the device itself takes a few seconds, but is noticed good by the plugin.

Yes, i'm happy again/still :)

btw, it is on purpose the status of the device changes from "Aan" (On) to "Audio" after a 20-30 seconds ?
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Immo
Posts: 19
Joined: Wednesday 11 February 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Logitech Media Server

Post by Immo »

I am trying to figure out the url to start playing a radiostation from the lms-list on a certain player.
Getting the player to play is no problem from a url, but switching to a certain station I can't get to work.

The idea is to have a virtual switch to start playing a channel on one of my squeezeboxes..
User avatar
cyberclwn
Posts: 103
Joined: Thursday 20 August 2015 22:53
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Logitech Media Server

Post by cyberclwn »

Hey,

Is the channel you are trying to play on the favorites list ?
Immo wrote:I am trying to figure out the url to start playing a radiostation from the lms-list on a certain player.
Getting the player to play is no problem from a url, but switching to a certain station I can't get to work.

The idea is to have a virtual switch to start playing a channel on one of my squeezeboxes..
If so, you can try this script (called lms_play_fav.sh) i have made:

Code: Select all

#!/bin/bash
SB_SERVER=<LMS_SERVER_IP>
SB_PORT=<LMS_SERVER_CLI_PORT>

LMS_FAV_ID=`echo "$1 favorites items 0 1000" | nc -q 2 $SB_SERVER $SB_PORT | sed 's/%3A/:/g' | sed 's/ id:/\'$'\n/g' | grep -i "$2 " | cut -d '.' -f2 | cut -d ' ' -f1 | head -n 1`
PLAY=`echo "$1 favorites playlist play item_id:$LMS_FAV_ID" | nc -q 2 $SB_SERVER $SB_PORT`
Put this script in your scripts-folder on the domoticz server.

Then make a scene with this in the "on-action":

Code: Select all

script:///home/pi/domoticz/scripts/lms_play_fav.sh <LMS_PLAYER_NAME> <NAME_OF_FAVORITE>
And it should work.

big side-note: This script is not really (really not?) solid. i use it only for 3 favorites, so it can not work for you because of the favorites names. It won't ruin anything, but i don't guarantee it will work also. :)
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

cyberclwn wrote:btw, it is on purpose the status of the device changes from "Aan" (On) to "Audio" after a 20-30 seconds ?
It's because the plug-in uses an interval to 'pull' the status of the players. By default this interval is 30 seconds. You can change this in rhe hardware-srtting of the LMS.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest