Plugin Domoticz for Squeezebox / Logitech media server

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.
Post Reply
Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Wednesday 07 September 2016 22:48

Hello,

I wrote a plugin for Squeezebox / Logitech media server to control Domoticz devices from Jive based player screen (Squeezebox radio, Squeezebox Touch, UE Smart Radio with squeezebox firmware).

You can filter for each player which Domoticz devices you want in Extra/Domoticz Control menu. You can associate alarms and snooze to an On/Off switch.

More details here: https://guillaumezin.github.io/DomoticzControl

maxtrash
Posts: 177
Joined: Tuesday 06 August 2013 1:31
Target OS: -
Domoticz version:
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by maxtrash » Friday 09 September 2016 23:58

nice!
but I tried to run it and after adding the URL in the settings and selecting Domoticz control settings it doesn't go to the config page. Any tips?

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Saturday 10 September 2016 11:32

Did you go in per Player settings (like alarms, etc.) ?

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Tuesday 13 September 2016 0:08

I changed the repository URL, look at https://guillaumezin.github.io/DomoticzControl. It prevent HTTPS redirection, that is incompatible with some Logitech Media Server installations.

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Wednesday 14 September 2016 21:27

I did some correction, starting V1.0.1, settings page should be restored for everyone now

jackisidore
Posts: 144
Joined: Friday 12 July 2013 15:52
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by jackisidore » Saturday 15 October 2016 16:56

Thanks!
It's working nicely and just what I needed to control switches/speakers/amps from max2play/jivelite.

kllngtme
Posts: 52
Joined: Tuesday 14 June 2016 16:56
Target OS: Raspberry Pi
Domoticz version: Beta
Location: East Coast, USA
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by kllngtme » Tuesday 15 November 2016 16:55

The repo doesn't seem to work anymore.

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Tuesday 15 November 2016 21:54

I changed the repo to http://domoticzcontrol.e-monsite.com/me ... s/repo.xml because the previous one was closed by provider (not enough activity...)

kllngtme
Posts: 52
Joined: Tuesday 14 June 2016 16:56
Target OS: Raspberry Pi
Domoticz version: Beta
Location: East Coast, USA
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by kllngtme » Wednesday 16 November 2016 16:32

Thanks! Might want to update the github.

The functionality works great by the way! I wasn't expecting the alarm/snooze trigger. Great idea!

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Wednesday 16 November 2016 16:50

I did it to activate my towel drying heater during winter, it is great to have hot towels after the shower

quchi
Posts: 1
Joined: Thursday 23 November 2017 23:31
Target OS: Linux
Domoticz version: 3.8153
Location: USA
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by quchi » Thursday 23 November 2017 23:42

Hi - not working for me at all - installed Domoticz on same machine and then on a different one, Disabled/enabled the Domoticz controller 1.0.6
Tried from max2play JiveLite, a compiled Jivelite on a different rpi computer
JiveLite on Windows and iPeng on ios - all the same
Loading .... the Domoticz controller and ..nothing
On LMS logs I get when I try from any of the above

Plugins::DomoticzControl::Plugin::_getFromDomoticzErrorCallback (543) No answer from Domoticz after get devices

A google search reveals nothing
"Your search - getFromDomoticzErrorCallback - did not match any documents. "
The only reason I installed Domoticz was that I saw " Domoticz Controller' on my JiveLite screen on max2play install
I w'd love to be able to use it
I do have OpenHAB i played with but not accessible from Max2Play
I do see the LMS server and players on Domoticz devices

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Tuesday 28 November 2017 15:19

What version of LMS are you using ?

What IP address and port is your LMS on?

Maybe obvious, but if it is different than 127.0.0.1 (LMS and Domoticz on same server) and port 8080, have you setup parameters in logitech media server parameters in "Domoticz Control" setting of the player setting page?

Can you post more detailes messages: in "Advanced" --> "Logging", enable "Save logging settings for use at next application restart", set "plugin.DomoticzControl" to "Debug", save and restart?

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Tuesday 12 December 2017 22:37

quchi wrote:
Thursday 23 November 2017 23:42
Hi - not working for me at all - installed Domoticz on same machine and then on a different one, Disabled/enabled the Domoticz controller 1.0.6
Tried from max2play JiveLite, a compiled Jivelite on a different rpi computer
v1.0.9 should appear shortly and correct a problem where some checkbox values were replaced by default values in paramerters (for instance "Only dashboard devices" and "Only unprotected devices"). Could you tell me if it helps?

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Thursday 28 June 2018 11:10

Last version (1.1.4) of Domoticz Control can expose values based on devices state to Custom Clock Helper, if you have SuperDateTime (weather.com version 5.9.42 onwards).

Values must be given based on device name or device idx number.

Code: Select all

~nDevicename~Nameofjsonfield~
~iIdxofdevice~Nameofjsonfield~

For instance,

Code: Select all

~nExternal Temp Sensor~Temp~
will be replaced by the current temperature reported by Domoticz device named "External Temp Sensor".

Code: Select all

~i231~Temp~
same thing if 231 Idx points to the same device.


You can have a look at https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's to read Domoticz JSON documentation or have a look at your available devices fields connecting to http(s)://domoticzurl:domoticzport/json.htm?type=devices

For convenience, you can append functions to change returned value.

Code: Select all

~nDevicename~Nameofjsonfield~truncate~
to truncate a number.

Code: Select all

~iIdxofdevice~Nameofjsonfield~ceil~
for ceil function.

Code: Select all

~nDevicename~Nameofjsonfield~floor~
for floor function.

Code: Select all

~iIdxofdevice~Nameofjsonfield~round~
to round a number as integer.

Code: Select all

~nDevicename~Nameofjsonfield~round~1~
to round a number keeping one decimal (1 can be any positive integer).

Code: Select all

~iIdxofdevice~Nameofjsonfield~shorten~3~
to keep only the three first characters of the value (3 can be any positive integer).
Last edited by Barberousse on Friday 21 September 2018 21:15, edited 2 times in total.

kllngtme
Posts: 52
Joined: Tuesday 14 June 2016 16:56
Target OS: Raspberry Pi
Domoticz version: Beta
Location: East Coast, USA
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by kllngtme » Friday 21 September 2018 14:06

Barberousse wrote:
Thursday 28 June 2018 11:10
For instance, ~nExternal Temp Sensor~Temp~ will be replaced by the current temperature reported by Domoticz device named "External Temp Sensor".
Ermahgerd!!!! I just saw this now. Fantastic update. I had an issue whenever the Wunderground weather station I was using went down. It would display on my Squeezeboxes, 99.9999% humidity and temperature whenever the station couldn't be polled. This way, it will atleast show the last temp from Domoticz.

Huge deal for me as I have a 10 year old who likes to nag me whenever the Squeezeboxes aren't showing the temperature around the house. :lol:

Update: In trying to implement it I've gotten myself confused. Where do I get started? Is it under, the player options for SuperDateTime?
Last edited by kllngtme on Friday 21 September 2018 17:02, edited 1 time in total.

kllngtme
Posts: 52
Joined: Tuesday 14 June 2016 16:56
Target OS: Raspberry Pi
Domoticz version: Beta
Location: East Coast, USA
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by kllngtme » Friday 21 September 2018 14:26

I'd like to formally actually say as well, this function has gone a long way with me. I use Squeezebox radios in my kids rooms. After I put the baby down, before I leave the room, I'll go on the SB radio and turn off the hallway light or whatnot before I open the door. Thank you very much for this!

Barberousse
Posts: 103
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by Barberousse » Friday 21 September 2018 21:10

I'm glad to hear that one of my pet project is useful to someone else :-)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest