Plugin Domoticz for Squeezebox / Logitech media server

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
Barberousse
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

Post by Barberousse »

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: 106
Joined: Tuesday 06 August 2013 1:31
Target OS: -
Domoticz version:
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by maxtrash »

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: 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

Post by Barberousse »

Did you go in per Player settings (like alarms, etc.) ?
Barberousse
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

Post by Barberousse »

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: 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

Post by Barberousse »

I did some correction, starting V1.0.1, settings page should be restored for everyone now
jackisidore
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

Post by jackisidore »

Thanks!
It's working nicely and just what I needed to control switches/speakers/amps from max2play/jivelite.
kllngtme
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

Post by kllngtme »

The repo doesn't seem to work anymore.
Barberousse
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

Post by Barberousse »

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: 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

Post by kllngtme »

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: 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

Post by Barberousse »

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 22:31
Target OS: Linux
Domoticz version: 3.8153
Location: USA
Contact:

Re: Plugin Domoticz for Squeezebox / Logitech media server

Post by quchi »

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: 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

Post by Barberousse »

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: 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

Post by Barberousse »

quchi wrote: Thursday 23 November 2017 22: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: 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

Post by Barberousse »

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: 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

Post by kllngtme »

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: 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

Post by kllngtme »

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: 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

Post by Barberousse »

I'm glad to hear that one of my pet project is useful to someone else :-)
kllngtme
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

Post by kllngtme »

Barberousse wrote: Friday 21 September 2018 21:10 I'm glad to hear that one of my pet project is useful to someone else :-)
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
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

Post by Barberousse »

Hello,

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
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.
Barberousse
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

Post by Barberousse »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest