Squeez server

hi everyone,
I was wondering if it’s possible to install a squeeze server on the same machine (Raspberry pi) as where the openhab is installed on.
There it is al new to me and i am stille discovering linux , openhab …, the raspberry pi is maybe temporary and it’s possible that i install a linux pc for my home automation, the reason is that for now i had openremote but it’s now the second sd card that had gone bad, and the work on the different phone’s, tablet, pc give me a reason to cheked there something better.

i hope i can get some tips

greatings Steven

  • Platform information:
    • Hardware: _CPUArchitecture/RAM/storage_Raspberry pi 3B
    • OS: what OS is used and which version
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version:
  • Issue of the topic: please be detailed explaining your issue
  • Please post configurations (if applicable):
    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

Not sure I understand what questions you have. Maybe this will help:

The LMS (Logitech Media Server) doesn’t consume much, even when playing music, so I would expect you can run it on the same host as openHAB. Not sure if you’ve seen piCorePlayer, but that’s another option where you can host a squeeze player and server on the same RPi.

hi,
i have installed the LMS on the same raspberry pi as openhab is and i can acces it on the webpage, but i can’t see the music files i stored on a USB drive.
i mounted the drive to a directory called /media/usb and when i go to systemsettings on the LMS i can select the previous folder ,but when i scan no files are detected.

Can it be permission issue, i gave a chmod 777 to it , just for testing ?
When i cd into /media/usb i can list the mp3 files.

The USB drive is formated as ntfs.

Not sure. It could be a permissions issue. Did you try restarting the LMS? Is there anything helpful in the LMS log files?

Hi, do you know max2play?
There you can install an LMS and openhab very easy.
I never tried, but this might help.

https://www.max2play.com/portfolio/openhab-setup/

hello,
sorry for the late reply, bussy ,bussy,…
i’ ve installed LMS and piCoreplayer on a different raspberry pi and i discover the LMS things,
but now i’am struggeling to play notifications (doorbell.mp3) ,
i’ve got the gpio binding installed and that works (in the log i see when i push the button “deurbel changed from OPEN to CLOSED”

i made a rule

rule "deurbel"

when Item Deurbel received command  CLOSED

then  playSound("squeezebox:squeezeboxplayer:de898348:b827eb371c97","doorbell.mp3", new PercentType(80))

end

but nothing happens , am i overlooking something ?

the squeezebox binding call back url = http://ip piCoreplayer:8080

You don’t need to set this. Remove it and try again.

Also check to see if there’s anything reported in openhab.log.

If it’s still not working, put the binding in debug mode, then try playing a notification. Post the results here.

hi Mark ,
like this ?

openhab> log:set DEBUG org.openhab.binding.squeezebox

Yes.

i’ve taken just where i pushed the button

2020-01-31 21:45:30.428 [vent.ItemStateChangedEvent] - Deurbel changed from OPEN to CLOSED

==> /var/log/openhab2/openhab.log <==

2020-01-31 21:45:30.430 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1622e5b[p=0,l=147,c=32768,r=147]={<<<event: message\nda…mStateEvent"}\n\n>>>\n"}",“type”:"Item…7/9re/nfu3f/u3e} complete=false committing=false callback=Blocker@3a9bc3{null}

2020-01-31 21:45:30.433 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@1b0b508] generate: FLUSH (null,[p=0,l=147,c=32768,r=147],false)@COMMITTED

2020-01-31 21:45:30.437 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - write: WriteFlusher@cc918d{IDLE}->null [HeapByteBuffer@176b5ad[p=0,l=6,c=1024,r=6]={<<<\r\n93\r\n>>>\n\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00…\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00},DirectByteBuffer@1622e5b[p=0,l=147,c=32768,r=147]={<<<event: message\nda…mStateEvent"}\n\n>>>\n"}",“type”:"Item…7/9re/nfu3f/u3e}]

2020-01-31 21:45:30.440 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{WRITING}->null:IDLE–>WRITING

2020-01-31 21:45:30.445 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 153 SocketChannelEndPoint@1f63c3c{/192.168.0.149:49804<->/192.168.0.186:8080,OPEN,fill=-,flush=W,to=616/30000}{io=0/0,kio=0,kro=1}->HttpConnection@8511e7[p=HttpParser{s=END,0 of -1},g=HttpGenerator@c45b73{s=COMMITTED}]=>HttpChannelOverHttp@1cbab13{r=5,c=true,c=false/false,a=ASYNC_WAIT,uri=//192.168.0.186:8080/rest/events,age=1118351}

2020-01-31 21:45:30.448 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true written=153 remaining=0 WriteFlusher@cc918d{WRITING}->null

2020-01-31 21:45:30.451 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{IDLE}->null:WRITING–>IDLE

2020-01-31 21:45:30.454 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@1b0b508] generate: DONE (null,[p=147,l=147,c=32768,r=0],false)@COMMITTED

2020-01-31 21:45:30.460 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1622e5b[p=0,l=210,c=32768,r=210]={<<<event: message\nda…hangedEvent"}\n\n>>>,“type”:"ItemStat…7/9re/nfu3f/u3e} complete=false committing=false callback=Blocker@3a9bc3{null}

2020-01-31 21:45:30.463 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@1ab94a0] generate: FLUSH (null,[p=0,l=210,c=32768,r=210],false)@COMMITTED

2020-01-31 21:45:30.467 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - write: WriteFlusher@cc918d{IDLE}->null [HeapByteBuffer@176b5ad[p=0,l=6,c=1024,r=6]={<<<\r\nD2\r\n>>>\n\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00…\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00},DirectByteBuffer@1622e5b[p=0,l=210,c=32768,r=210]={<<<event: message\nda…hangedEvent"}\n\n>>>,“type”:"ItemStat…7/9re/nfu3f/u3e}]

2020-01-31 21:45:30.469 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{WRITING}->null:IDLE–>WRITING

2020-01-31 21:45:30.474 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 216 SocketChannelEndPoint@1f63c3c{/192.168.0.149:49804<->/192.168.0.186:8080,OPEN,fill=-,flush=W,to=25/30000}{io=0/0,kio=0,kro=1}->HttpConnection@8511e7[p=HttpParser{s=END,0 of -1},g=HttpGenerator@c45b73{s=COMMITTED}]=>HttpChannelOverHttp@1cbab13{r=5,c=true,c=false/false,a=ASYNC_WAIT,uri=//192.168.0.186:8080/rest/events,age=1118380}

2020-01-31 21:45:30.477 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true written=216 remaining=0 WriteFlusher@cc918d{WRITING}->null

2020-01-31 21:45:30.481 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{IDLE}->null:WRITING–>IDLE

2020-01-31 21:45:30.483 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@1ab94a0] generate: DONE (null,[p=210,l=210,c=32768,r=0],false)@COMMITTED

2020-01-31 21:45:31.928 [DEBUG] [rg.quartz.core.QuartzSchedulerThread] - batch acquisition of 0 triggers

==> /var/log/openhab2/events.log <==

2020-01-31 21:45:32.202 [vent.ItemStateChangedEvent] - Deurbel changed from CLOSED to OPEN

==> /var/log/openhab2/openhab.log <==

2020-01-31 21:45:32.205 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1622e5b[p=0,l=145,c=32768,r=145]={<<<event: message\nda…mStateEvent"}\n\n>>>losed\",\"oldValu…7/9re/nfu3f/u3e} complete=false committing=false callback=Blocker@3a9bc3{null}

2020-01-31 21:45:32.209 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@1acf779] generate: FLUSH (null,[p=0,l=145,c=32768,r=145],false)@COMMITTED

2020-01-31 21:45:32.213 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - write: WriteFlusher@cc918d{IDLE}->null [HeapByteBuffer@176b5ad[p=0,l=6,c=1024,r=6]={<<<\r\n91\r\n>>>\n\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00…\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00},DirectByteBuffer@1622e5b[p=0,l=145,c=32768,r=145]={<<<event: message\nda…mStateEvent"}\n\n>>>losed\",\"oldValu…7/9re/nfu3f/u3e}]

2020-01-31 21:45:32.216 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{WRITING}->null:IDLE–>WRITING

2020-01-31 21:45:32.221 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 151 SocketChannelEndPoint@1f63c3c{/192.168.0.149:49804<->/192.168.0.186:8080,OPEN,fill=-,flush=W,to=1743/30000}{io=0/0,kio=0,kro=1}->HttpConnection@8511e7[p=HttpParser{s=END,0 of -1},g=HttpGenerator@c45b73{s=COMMITTED}]=>HttpChannelOverHttp@1cbab13{r=5,c=true,c=false/false,a=ASYNC_WAIT,uri=//192.168.0.186:8080/rest/events,age=1120127}

2020-01-31 21:45:32.225 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true written=151 remaining=0 WriteFlusher@cc918d{WRITING}->null

2020-01-31 21:45:32.229 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{IDLE}->null:WRITING–>IDLE

2020-01-31 21:45:32.233 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@1acf779] generate: DONE (null,[p=145,l=145,c=32768,r=0],false)@COMMITTED

2020-01-31 21:45:32.239 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1622e5b[p=0,l=210,c=32768,r=210]={<<<event: message\nda…hangedEvent"}\n\n>>>,“type”:"ItemStat…7/9re/nfu3f/u3e} complete=false committing=false callback=Blocker@3a9bc3{null}

2020-01-31 21:45:32.243 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@366626] generate: FLUSH (null,[p=0,l=210,c=32768,r=210],false)@COMMITTED

2020-01-31 21:45:32.247 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - write: WriteFlusher@cc918d{IDLE}->null [HeapByteBuffer@176b5ad[p=0,l=6,c=1024,r=6]={<<<\r\nD2\r\n>>>\n\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00…\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00},DirectByteBuffer@1622e5b[p=0,l=210,c=32768,r=210]={<<<event: message\nda…hangedEvent"}\n\n>>>,“type”:"ItemStat…7/9re/nfu3f/u3e}]

2020-01-31 21:45:32.250 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{WRITING}->null:IDLE–>WRITING

2020-01-31 21:45:32.255 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 216 SocketChannelEndPoint@1f63c3c{/192.168.0.149:49804<->/192.168.0.186:8080,OPEN,fill=-,flush=W,to=28/30000}{io=0/0,kio=0,kro=1}->HttpConnection@8511e7[p=HttpParser{s=END,0 of -1},g=HttpGenerator@c45b73{s=COMMITTED}]=>HttpChannelOverHttp@1cbab13{r=5,c=true,c=false/false,a=ASYNC_WAIT,uri=//192.168.0.186:8080/rest/events,age=1120161}

2020-01-31 21:45:32.259 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true written=216 remaining=0 WriteFlusher@cc918d{WRITING}->null

2020-01-31 21:45:32.262 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{IDLE}->null:WRITING–>IDLE

2020-01-31 21:45:32.265 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@366626] generate: DONE (null,[p=210,l=210,c=32768,r=0],false)@COMMITTED

2020-01-31 21:45:33.928 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1622e5b[p=0,l=145,c=32768,r=145]={<<<event: message\nda…mStateEvent"}\n\n>>>sed\",\"oldValue\…7/9re/nfu3f/u3e} complete=false committing=false callback=Blocker@3a9bc3{null}

2020-01-31 21:45:33.931 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@84901d] generate: FLUSH (null,[p=0,l=145,c=32768,r=145],false)@COMMITTED

2020-01-31 21:45:33.935 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - write: WriteFlusher@cc918d{IDLE}->null [HeapByteBuffer@176b5ad[p=0,l=6,c=1024,r=6]={<<<\r\n91\r\n>>>\n\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00…\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00},DirectByteBuffer@1622e5b[p=0,l=145,c=32768,r=145]={<<<event: message\nda…mStateEvent"}\n\n>>>sed\",\"oldValue\…7/9re/nfu3f/u3e}]

2020-01-31 21:45:33.940 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{WRITING}->null:IDLE–>WRITING

2020-01-31 21:45:33.945 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 151 SocketChannelEndPoint@1f63c3c{/192.168.0.149:49804<->/192.168.0.186:8080,OPEN,fill=-,flush=W,to=1685/30000}{io=0/0,kio=0,kro=1}->HttpConnection@8511e7[p=HttpParser{s=END,0 of -1},g=HttpGenerator@c45b73{s=COMMITTED}]=>HttpChannelOverHttp@1cbab13{r=5,c=true,c=false/false,a=ASYNC_WAIT,uri=//192.168.0.186:8080/rest/events,age=1121850}

2020-01-31 21:45:33.950 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true written=151 remaining=0 WriteFlusher@cc918d{WRITING}->null

2020-01-31 21:45:33.954 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - update WriteFlusher@cc918d{IDLE}->null:WRITING–>IDLE

2020-01-31 21:45:33.959 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a5e1d[PROCESSING][i=null,cb=org.eclipse.jetty.server.HttpChannel$SendCallback@84901d] generate: DONE (null,[p=145,l=145,c=32768,r=0],false)@COMMITTED

There’s nothing from the squeezebox binding in these logs. Also, is there a reason why you have debug logging enabled for org.eclipse.jetty?

Also, please use code fences when posting logs. It makes the logs much easier to read.

??
i just used the previous line in the command line (after a community search on how to “debug mode”), is there a way to stop it ?

I think WARN is the log level that’s used for jetty.

log:set WARN org.eclipse.jetty

now i 've turned only the debug on for the squeezebox binding and when i push the button nothing is visible in the log, when i start the player from the control i see the actions in the log,

2020-02-01 00:06:38.514 [vent.ItemStateChangedEvent] - Deurbel changed from OPEN to CLOSED

2020-02-01 00:06:39.825 [vent.ItemStateChangedEvent] - Deurbel changed from CLOSED to OPEN

2020-02-01 00:06:45.579 [vent.ItemStateChangedEvent] - velbus_vmb1ts_8786d442_0A_input_CH1 changed from 22.125 °C to 22.0625 °C

2020-02-01 00:06:45.586 [vent.ItemStateChangedEvent] - TempLiving changed from 22.125 to 22.0625

2020-02-01 00:06:49.533 [vent.ItemStateChangedEvent] - TempSander changed from 20.0625 to 19.9375

2020-02-01 00:06:49.552 [vent.ItemStateChangedEvent] - velbus_vmb1ts_8786d442_08_input_CH1 changed from 20.0625 °C to 19.9375 °C

2020-02-01 00:06:49.594 [vent.ItemStateChangedEvent] - TempSE changed from 19.1875 to 19.0625

2020-02-01 00:06:49.609 [vent.ItemStateChangedEvent] - velbus_vmb1ts_8786d442_03_input_CH1 changed from 19.1875 °C to 19.0625 °C

2020-02-01 00:06:49.670 [vent.ItemStateChangedEvent] - velbus_vmb1ts_8786d442_0A_input_CH1 changed from 22.0625 °C to 22.125 °C

2020-02-01 00:06:49.676 [vent.ItemStateChangedEvent] - TempLiving changed from 22.0625 to 22.125

2020-02-01 00:06:59.010 [vent.ItemStateChangedEvent] - velbus_vmb1ts_8786d442_0A_input_CH1 changed from 22.125 °C to 22.0625 °C

2020-02-01 00:06:59.015 [vent.ItemStateChangedEvent] - TempLiving changed from 22.125 to 22.0625

==> /var/log/openhab2/openhab.log <==

2020-02-01 00:07:00.096 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: players 0



Considering that this is the only squeezebox entry in the log, I would say that playSound is not being called, or your rule is not executing.

hi Mark ,
finally got it working, changed the trigger to

when Item Deurbel changed from OPEN to CLOSED

thanks for the support and up to the next