Python PLugin : Lyrion Music Server

Python and python framework

Moderator: leecollings

Post Reply
User avatar
madpatrick
Posts: 889
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Python PLugin : Lyrion Music Server

Post by madpatrick »

I've made a Plugin for the Lyrion Music Server, formaly known as Logitsch Media Server
The buildin plugin still works, but is a bit limited

There are not mpw devices and functionalities added.
I've tested the plugin and it is working, but of course the can always be some issues.
The plugin is not tested with multiple devices

Please share you findings

You can find the plugin over here : https://github.com/MadPatrick/domoticz_Lyrion
lyrion.png
lyrion.png (37.23 KiB) Viewed 9214 times
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Python PLugin : Lyrion Music Server

Post by waltervl »

Thanks, so the current Logitech media server integration is not working anymore? https://wiki.domoticz.com/Logitech_Media_Server
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
madpatrick
Posts: 889
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Python PLugin : Lyrion Music Server

Post by madpatrick »

waltervl wrote: Saturday 15 November 2025 20:18 Thanks, so the current Logitech media server integration is not working anymore? https://wiki.domoticz.com/Logitech_Media_Server
Still working, but limited
Also it gives sometimes an error in the JSON.
See the raised issue on Domoticz GIT
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
capman
Posts: 166
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Python PLugin : Lyrion Music Server

Post by capman »

I have this error in the log: Error: Lyrion Music Server: Unable to load icon pack 'LMS.zip'
In the plugin it's named lyrion.zip , so I renamed it to LMS.zip , but no luck.
User avatar
madpatrick
Posts: 889
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Python PLugin : Lyrion Music Server

Post by madpatrick »

Hi,
You need also correct the names inside the zip./

I've corrected it and uploaded the correct LMS.zip
Also a new version with a small fix
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
capman
Posts: 166
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Python PLugin : Lyrion Music Server

Post by capman »

madpatrick wrote: Friday 27 February 2026 14:42 Hi,
You need also correct the names inside the zip./

I've corrected it and uploaded the correct LMS.zip
Also a new version with a small fix
Working now , thanks :D
lamaisondelou69
Posts: 2
Joined: Sunday 01 March 2026 16:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python PLugin : Lyrion Music Server

Post by lamaisondelou69 »

Thanks for your plugin, it works very well. Really useful compared to the former one LMS.
I have a question :
- I see my playlists but only 5 of them. This behaviour is linked to the default process to create the switch selector ?
If possible, it could me more user-friendly to get all our existing playlists.
I don't try yet to add other playlists manually. I guess I could but not try.

- I don't see if it possible to add a trigger and launch the favourites ? It could be very nice to add it if you can (to launch a radio you registered as favourite for example)

Thanks again for your exciting work !
User avatar
madpatrick
Posts: 889
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Python PLugin : Lyrion Music Server

Post by madpatrick »

You can set the amount playlist to load in the settings
2026-03-01 17_12_27-Greenshot.png
2026-03-01 17_12_27-Greenshot.png (4.76 KiB) Viewed 8797 times
I'll check if the information of the favorates is retreivable form the LMS
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
lamaisondelou69
Posts: 2
Joined: Sunday 01 March 2026 16:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python PLugin : Lyrion Music Server

Post by lamaisondelou69 »

Many thanks !!! It works well.
Do you have any plugin to learn me how to open my eyes ? :D
User avatar
madpatrick
Posts: 889
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Python PLugin : Lyrion Music Server

Post by madpatrick »

no problem.

I've added the Favorites option
It is available in the Beta branch

Not yet fully completed and tested, but give it a go
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
capman
Posts: 166
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Python PLugin : Lyrion Music Server

Post by capman »

Hi,

How to use these devices in a blockly script ?
I try to setup a event for testing but it's not working.
In blockly is no 'play' command , only 'playing'. (beta 2025.2 build17074).
blockly lyrion test.jpg
blockly lyrion test.jpg (64.07 KiB) Viewed 8697 times
User avatar
madpatrick
Posts: 889
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2026.1
Location: Netherlands
Contact:

Re: Python PLugin : Lyrion Music Server

Post by madpatrick »

I'm not using or familair with Blocky, but i think you need to you use "Level=20"
LMS.png
LMS.png (18.48 KiB) Viewed 8683 times
Better to use DzVents which has more flexibility
Something like this, but you need to tweak to your devices

Code: Select all

return {
    on = {
        devices = { 'Test dummy' }
    },
    execute = function(domoticz, device)
        local lmsControl = domoticz.devices('Lyrion - Muziek Bureel Control')
        local lmsVolume = domoticz.devices('Lyrion - Muziek Bureel Volume')

        if device.state == 'On' and lmsControl.state == 'Stop' then
            lmsVolume.setLevel(30)
            lmsControl.setLevel(20)  -- 20 = Playing

        elseif device.state == 'Off' then
            lmsControl.setLevel(30)  -- 30 = Stop
        end
    end
}
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
User avatar
capman
Posts: 166
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Python PLugin : Lyrion Music Server

Post by capman »

Thanks a lot 4 helping me out. I had now the time to test it with DzVents.
I was not familiar with it :D , but it worked like you say. Many thanks !!
User avatar
capman
Posts: 166
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Python PLugin : Lyrion Music Server

Post by capman »

Also work with blockly ;)
Lyrion blockly.jpg
Lyrion blockly.jpg (85.05 KiB) Viewed 1953 times
Post Reply