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

djgodlike
Posts: 32
Joined: Wednesday 27 January 2016 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: RE: Re: Logitech Media Server

Post by djgodlike »

Eduard wrote:
djgodlike wrote:My SlimDevices Transporter is not being recognized. Is there a way to get it connected?
I will add this model asap :D
Thank you so much! Very appreciated!
Aeon Labs Gen5 USB
Greenwave Powernode 6 NS310
2x Greenwave Powernode 1 NS310
Philips Hue
Logitech media Server
Plugwise Smile P1
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: RE: Re: Logitech Media Server

Post by Eduard »

djgodlike wrote:
Eduard wrote:
djgodlike wrote:My SlimDevices Transporter is not being recognized. Is there a way to get it connected?
I will add this model asap :D
Thank you so much! Very appreciated!
Transporter-support is available in next beta...
djgodlike
Posts: 32
Joined: Wednesday 27 January 2016 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: RE: Re: Logitech Media Server

Post by djgodlike »

Eduard wrote:
djgodlike wrote:
Eduard wrote: I will add this model asap :D
Thank you so much! Very appreciated!
Transporter-support is available in next beta...
Bedankt!!! Thumbs up!
Aeon Labs Gen5 USB
Greenwave Powernode 6 NS310
2x Greenwave Powernode 1 NS310
Philips Hue
Logitech media Server
Plugwise Smile P1
Thomasdc
Posts: 133
Joined: Wednesday 11 March 2015 19:13
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Logitech Media Server

Post by Thomasdc »

is it possible to send notifications to the Logitech media server?
I would like to send TTS notitifications to my speakers.

I thought this was possible with Sonos..
Zycker
Posts: 24
Joined: Monday 29 December 2014 8:04
Target OS: Linux
Domoticz version:
Contact:

Re: Logitech Media Server

Post by Zycker »

I think so, in Setup, Settings, Notifications, bottom right :
Logitech Media Server:
This notifier only works when the Logitech Media Server hardware has been added/enabled
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Re: Logitech Media Server

Post by toreandre »

Is it possible to use the selector switch with blockly to play favorites, playlists, volume etc?

I have a selector switch, and in blockly i can stop my squeeselite player with the off button, but when i try to play favorites with the level1 button nothing happens.
Attachments
block.png
block.png (16.2 KiB) Viewed 4445 times
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 »

Zycker wrote:I think so, in Setup, Settings, Notifications, bottom right :
Logitech Media Server:
This notifier only works when the Logitech Media Server hardware has been added/enabled
These are TTT notifications (text on display only)
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 »

Hi,

I noticed something strange - perhaps... :) It seems that the event system does not see any update on the sValue after a player is powered on and playing something. The web interface (usually, I've noted some exceptions) shows correct info on the player (.e.g playing artist2 - song2) switch but the sValue is what was when originally starting to play (e.g. artist1 - song1). I tried to build a script to detect if certain web radios are played but without having an update on the sValue I think it is impossible? Or maybe I can read from the json response somehow. But is this something that is just bugging me or do others have this behaviour as well? And if so, could it be somehow fixed to update the sValue during playback too?
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Re: Logitech Media Server

Post by toreandre »

Nautilus wrote:Hi,

I noticed something strange - perhaps... :) It seems that the event system does not see any update on the sValue after a player is powered on and playing something. The web interface (usually, I've noted some exceptions) shows correct info on the player (.e.g playing artist2 - song2) switch but the sValue is what was when originally starting to play (e.g. artist1 - song1). I tried to build a script to detect if certain web radios are played but without having an update on the sValue I think it is impossible? Or maybe I can read from the json response somehow. But is this something that is just bugging me or do others have this behaviour as well? And if so, could it be somehow fixed to update the sValue during playback too?
I get song info for each song that is played on webradios.
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 »

toreandre wrote:
I get song info for each song that is played on webradios.
The problem from my perspective was not the info on switch itself - that is updating correctly. But from the viewpoint of the event system, it seems that the sValue does not update accordingly. In any case, I realized there is potentially as timing issue if the channel is changed through another medium than domoticz so I decided to check the needed info directly from the server with this kind of script:

Code: Select all

json = (loadfile '/home/pi/domoticz/scripts/lua/json.lua')()
file = assert(io.popen('curl \'url:port/jsonrpc.js\' --data-binary \'{"id":1,"method":"slim.request","params":["player:mac:address",["status","-","1",""]]}\''))   
raw = file:read('*all')
file:close()   
deviceinfo = json:decode(raw)
nowplaying = deviceinfo.result.current_title
This return the currently playing "track" which I can then use in the script and no need to worry whether the same info is already available on the player's switch in Domoticz. As a disclaimer I must add that I'm not sure at all whether this is the most effective way to interpret json, I just re-used what I already had copied from the "good morning" script (viewtopic.php?f=23&t=10923) :)
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Re: Logitech Media Server

Post by toreandre »

I have two RPis with squeezelite, but sometimes the two clients change name in domoticz.
I have not set a specific mac adress in the config so they both use their hardware mac.

In the log i can se a status update almost like this: "Device squeezelite 1 has changed name to squeezelite 2"
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 »

Hi,

does anyone know if it would be possible to somehow toggle the squeezebox On / Off via single json api command? I'd need this for a selector switch. The normal method:
/json.htm?type=command&param=switchlight&idx=IDX&switchcmd=Toggle

does not work when the status is something else than On or Off (e.g. "Playing" or "Stopped"). Well ok, if it is "Playing" the first press turns it On and if you press again right after then "Off". But what I'd really like would be to turn off also from "Playing" status.

Lua is a good workaround, but I would also need to be able to update the selector level without triggering an action and if the action is behind lua scripts, it will always trigger for the "devicechanged"...
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

You can switch on/off a player directly via curl using:

Power on SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_on&player=<player-ip>[/url]

Power off SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_off&player=<player-ip>[/url]
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:You can switch on/off a player directly via curl using:

Power on SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_on&player=<player-ip>[/url]

Power off SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_off&player=<player-ip>[/url]
True, and even the Domoticz json calls for "on" and "off" works ok if the above is what is needed. However, in my situation if I want the selector switch to fit nicely inside the "switch area", I can only have a certain amount of buttons and for this reason I would've like to be able to toggle each squeezeboxes' state from one button only. Well, I guess I could do it also in some external script or by creating a few more dummy devices...:)
Eduard
Posts: 139
Joined: Monday 19 January 2015 9:14
Target OS: -
Domoticz version:

Re: Logitech Media Server

Post by Eduard »

Nautilus wrote:
Eduard wrote:You can switch on/off a player directly via curl using:

Power on SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_on&player=<player-ip>[/url]

Power off SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_off&player=<player-ip>[/url]
True, and even the Domoticz json calls for "on" and "off" works ok if the above is what is needed. However, in my situation if I want the selector switch to fit nicely inside the "switch area", I can only have a certain amount of buttons and for this reason I would've like to be able to toggle each squeezeboxes' state from one button only. Well, I guess I could do it also in some external script or by creating a few more dummy devices...:)
To toggle power you can use:
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power&player=<player-ip>[/url]
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: To toggle power you can use:
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power&player=<player-ip>[/url]
Great, thanks a lot! :)
User avatar
Mooseknuckle
Posts: 43
Joined: Sunday 08 March 2015 9:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Logitech Media Server

Post by Mooseknuckle »

Hi there,

I recently started to use LMS. Thanks to a third party plugin called 'Chromecast bridge" LMS works great with chromecast devices. I noticed that from LMS you can start different favorites (I have multiple dynamic spotify playlists as a favorite) on different Chromecasts but with Domoticz I cannnot select which favorite I want to send, it always starts with the first. I can start a specific favorite with curl but I would really like to use the Domoticz LMS support. Am I doing something wrong or is it possible to implement the item_id for favorites?

Thanks in advance,
RPI 3, Philips Hue,Toon Thermostat, Harmony Smart Control, Yeelights
Mysensors wifi gateway + sensors, RFXtrx433E, Kaku stuff, Xiaomi gateway + sensors
Domoticz controlled DIY ambilight, Selectplus chime, Mi-light led controller
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Logitech Media Server

Post by qwerk »

Logitech is working fine from Domoticz.

I am trying to control my players from blockly, On, Off, is working fine. But playing a playlist or setting a volume level is not working.
1.JPG
1.JPG (11.15 KiB) Viewed 3869 times
2.JPG
2.JPG (12.34 KiB) Viewed 3869 times
What should I change?
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Logitech Media Server

Post by simon_rb »

Hi,

Is there a way to get and change the volume for a player via json command? Trying to add this into homebridge with edomoticz. I can turn the players on and off but would love to be able to control the volume using the same switch. Any ideas? Even if I need to directly get the states from LMS rather than Domoticz.

Cheers guys & girls

Edit:- Found http://192.168.1.26:8080/json.htm?type= ... n=VolumeUp command :)
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Logitech Media Server

Post by simon_rb »

Is there a way to get volume status via a command. I read above there isn't using this plugin however I have seen other plugins able to get the volume data from the players. Wondered if its possible to get the volume data put into the /json.htm?type=devices&rid=IDX outpost. Then it could be used via edomoticz homebridge plugin. Could control the volume via iOS 10 HomeKit app and via Siri. We should be able to increase/decrease the volume however without knowing what the volume is to start with it may be difficult.

Cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest