Plugin Domoticz for Squeezebox / Logitech media server
Moderator: leecollings
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Plugin Domoticz for Squeezebox / Logitech media server
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
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
Re: Plugin Domoticz for Squeezebox / Logitech media server
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?
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?
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
Did you go in per Player settings (like alarms, etc.) ?
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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.
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
I did some correction, starting V1.0.1, settings page should be restored for everyone now
-
- Posts: 19
- Joined: Friday 12 July 2013 15:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: NL
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
Thanks!
It's working nicely and just what I needed to control switches/speakers/amps from max2play/jivelite.
It's working nicely and just what I needed to control switches/speakers/amps from max2play/jivelite.
-
- Posts: 47
- Joined: Tuesday 14 June 2016 16:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: East Coast, USA
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
The repo doesn't seem to work anymore.
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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...)
-
- Posts: 47
- Joined: Tuesday 14 June 2016 16:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: East Coast, USA
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
Thanks! Might want to update the github.
The functionality works great by the way! I wasn't expecting the alarm/snooze trigger. Great idea!
The functionality works great by the way! I wasn't expecting the alarm/snooze trigger. Great idea!
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
I did it to activate my towel drying heater during winter, it is great to have hot towels after the shower
-
- Posts: 1
- Joined: Thursday 23 November 2017 22:31
- Target OS: Linux
- Domoticz version: 3.8153
- Location: USA
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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
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
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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?
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?
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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?
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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.
For instance, will be replaced by the current temperature reported by Domoticz device named "External Temp Sensor".
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.
to truncate a number.
for ceil function.
for floor function.
to round a number as integer.
to round a number keeping one decimal (1 can be any positive integer).
to keep only the three first characters of the value (3 can be any positive integer).
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~
Code: Select all
~i231~Temp~
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~
Code: Select all
~iIdxofdevice~Nameofjsonfield~ceil~
Code: Select all
~nDevicename~Nameofjsonfield~floor~
Code: Select all
~iIdxofdevice~Nameofjsonfield~round~
Code: Select all
~nDevicename~Nameofjsonfield~round~1~
Code: Select all
~iIdxofdevice~Nameofjsonfield~shorten~3~
Last edited by Barberousse on Friday 21 September 2018 21:15, edited 2 times in total.
-
- Posts: 47
- Joined: Tuesday 14 June 2016 16:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: East Coast, USA
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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.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".
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.

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.
-
- Posts: 47
- Joined: Tuesday 14 June 2016 16:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: East Coast, USA
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
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!
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
I'm glad to hear that one of my pet project is useful to someone else 

-
- Posts: 47
- Joined: Tuesday 14 June 2016 16:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: East Coast, USA
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
I thought I was going to be able to get it going but I can't figure how to get started with use with customer clock helper. Is it done on the player settings in SuperDateTime?Barberousse wrote: ↑Friday 21 September 2018 21:10 I'm glad to hear that one of my pet project is useful to someone else![]()
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
Hello,
In Settings/Plugins, add in "Additional Repositories", apply and restart Logitech Media Server.
Enable "Domoticz Controller", "SuperDateTime Screensaver" and "Custom Clock Helper" and apply.
In "Settings/Advanced/Custom Clock Helper", create a custom clock or import one. To import, choose "Style: import..." in "Clock styles" dropdown menu and copy paste the code from a custom clock. You can find many on https://forums.slimdevices.com/showthre ... Controller and a Domoticz specific one here: https://forums.slimdevices.com/showthre ... post916635
To see possible macros, go to "Settings/Player/SuperDateTime" and "Settings/Player/Domoticz" Control Settings. Have a look to http://wiki.slimdevices.com/index.php/C ... ock_applet too.
On your player, go in "Settings/Advanced/Applet Installer" and enable "CustomClock" then restart. Go in "Settings/Screen/Screensavers/Custom Clock Settings", choose a config slot and set a style on that slot. Now in "Settings/Screen/Screensavers" you can use that style on "When playing", "When stopped", etc.
In Settings/Plugins, add
Code: Select all
http://domoticzcontrol.e-monsite.com/medias/files/repo.xml
http://sourceforge.net/projects/sdt-weather-com/files/repo.xml
Enable "Domoticz Controller", "SuperDateTime Screensaver" and "Custom Clock Helper" and apply.
In "Settings/Advanced/Custom Clock Helper", create a custom clock or import one. To import, choose "Style: import..." in "Clock styles" dropdown menu and copy paste the code from a custom clock. You can find many on https://forums.slimdevices.com/showthre ... Controller and a Domoticz specific one here: https://forums.slimdevices.com/showthre ... post916635
To see possible macros, go to "Settings/Player/SuperDateTime" and "Settings/Player/Domoticz" Control Settings. Have a look to http://wiki.slimdevices.com/index.php/C ... ock_applet too.
On your player, go in "Settings/Advanced/Applet Installer" and enable "CustomClock" then restart. Go in "Settings/Screen/Screensavers/Custom Clock Settings", choose a config slot and set a style on that slot. Now in "Settings/Screen/Screensavers" you can use that style on "When playing", "When stopped", etc.
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Plugin Domoticz for Squeezebox / Logitech media server
Hello,
I changed the repository URL again (not enough activity again, site closed by provider), look at https://guillaumezin.github.io/DomoticzControl
Hopefully https will fit any installations.
I changed the repository URL again (not enough activity again, site closed by provider), look at https://guillaumezin.github.io/DomoticzControl
Hopefully https will fit any installations.
Who is online
Users browsing this forum: No registered users and 1 guest