Maybe: delete the mpd.cfg
recreate it without using notepad (use another text editor), Type the text, don’t copy-paste.
There may be some kind of character (or new line feed) that stops the binding from parsing properly the config data.
Hello,
I have the almost same problem … now work only volume slider. I receive correct value from volume and i can increase / decrease volume but no working play stop next prev or current info about Title song. I use mpd binding to make am online radio on raspberry pi. I make all possible combination and until now nothing work to play/stop commands. Any idea ???
Thanks.
ok … i fix the problem … not from binding … it’s from mappings (used in oh1.8) and there are different concept about mappings on oh2 … so i can confirm MPD Binding work on oh2
Thanks!
I’m really new to Linux/Raspberry and also Openhab. I’ve a Raspberry 3 B Model running with the newest version Raspbian Jessie. I played with it for a while and now I need your help. I tried some basic stuff like TV remote control, remote powersupply control over 433Mhz which worked fine. Now i want to add a music player. I found this program called mopidy, which plays music from local file and also spotify. You can access it via webbrowser or mpd client. I installed mopidy and got it to work. I could control the music with the program mpc. So I guess the mpd from mopidy worked properly. After that I searched how to include mpd into openhab2 and found this thread. After trying and failing I reinstalled my Raspberry and OH2 because I think I messed up. My problem is, that I cant get the binding into OH2. Can someone help me please with a little tutorial.
As I said, I’m really new to this so please explain it for noobs
Thanks
Would the Logitech media Server / Squeezebox binding combo render MDP obsolete?
There seem to be a few ready-made stacks such as Max2Play or Pi Musicbox (which uses Mopidy as the music server). In your opinion are these worthy contenders to work with OH2?
And then there’s Kodi which is referenced in the video openHAB 2 UI-driven Setup which can be used along with the Kodi binding, perhaps running on a Plex Media Server. That looks like a nice clean approach.
For newcomers this is a bewidering array of options.
My aim is to set up a music system based on Google Play Music and to avoid local music altogether, and at the same time to use Kodi / Netflix to avoid locally stored movies, and to control them in OpenhHAB.
I’ve touched on this in this thread but I’m yet to put the pieces together. I’ll post up the information when I’ve got something useful working.
At the moment, for my music setup, the LMS and Squeezebox binding works fine, and controlled well using BubbleUPnP on Android, but it is reliant on plugins to be able to talk to Chromecast Audio, but I can’t get the Squeezebox-googlemusic working so I’m looking for an easier option
i am also comming from oh1.8 to oh2 (now i start to regret it)
I copied the mpd 1.11.0 jar from the link posted above.
my mpd.cfg:
living.host=runeaudio.local
living.port=6600
my log:
2017-10-05 20:39:40.277 [INFO ] [nhab.binding.mpd.internal.MpdBinding] - Reconnect player 'living’
2017-10-05 20:39:40.297 [ERROR] [nhab.binding.mpd.internal.MpdBinding] - Error connecting to player ‘living’ with config MPD [host=runeaudio.local, port=6600, password=]
org.bff.javampd.exception.MPDConnectionException: [2@0] {password} wrong number of arguments for "password"
at org.bff.javampd.MPD.(MPD.java:378)[239:org.openhab.binding.mpd:1.11.0.201710050110]
at org.openhab.binding.mpd.internal.MpdBinding.connect(MpdBinding.java:683)[239:org.openhab.binding.mpd:1.11.0.201710050110]
at org.openhab.binding.mpd.internal.MpdBinding.reconnect(MpdBinding.java:775)[239:org.openhab.binding.mpd:1.11.0.201710050110]
at org.openhab.binding.mpd.internal.MpdBinding.executePlayerCommand(MpdBinding.java:200)[239:org.openhab.binding.mpd:1.11.0.201710050110]
at org.openhab.binding.mpd.internal.MpdBinding.internalReceiveCommand(MpdBinding.java:156)[239:org.openhab.binding.mpd:1.11.0.201710050110]
at org.openhab.core.binding.AbstractBinding.receiveCommand(AbstractBinding.java:97)[176:org.openhab.core.compat1x:2.1.0]
at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:45)[176:org.openhab.core.compat1x:2.1.0]
at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415)[6:org.apache.karaf.services.eventadmin:4.0.8]
at org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90)[6:org.apache.karaf.services.eventadmin:4.0.8]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_144]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_144]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_144]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_144]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_144]
2017-10-05 20:39:40.312 [WARN ] [nhab.binding.mpd.internal.MpdBinding] - Player ‘living’ was not found or is not connected
i tried to add the parameter password as “”, null, didn"t helped.
thanks for fast feedback, if i place a “dummy” text as password, then I get the error that the password is incorrect, which is true, because mpd has no password set.
i finally solved, thank you very much for help.
i had to delete the property like : config:property-delete living.password
and then config:update and config:cancel
i restarted Openhab2 service and now it works as expected.