noushadali / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

MPD-Binding does not support percent command #447

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure MPD-Binding

What is the expected output? What do you see instead?

It should be possible to adjust the volume with a dimmer/slider.

What version of the product are you using? On what operating system?

Openhab 1.3
Debian GNU/Linux jessie/sid

Please provide any additional information below.

I have configured the MPD binding as follows:

openhab.cfg:

mpd:mpdeg.host=192.168.xxx.x
mpd:mpdeg.port=6600

my.items:
Switch MPD_EG "Musik Player" (Musik){ mpd="ON:mpdeg:play, OFF:mpdeg:stop" }

/* INCREASE:mpdeg:volume_increase, DECREASE:mpdeg:volume_decrease, 
PERCENT:mpdeg:setvol  */

Dimmer MPD_EG_Volume "Lautstärke" { mpd="PERCENT:mpdeg:volume" }
Dimmer MPD_EG_Volume2 "Setvol" { mpd="PERCENT:mpdeg:setvol" }

my.sitemap:
...
Frame label="Musik" {
    Switch item=MPD_EG  
    Slider item=MPD_EG_Volume
    Slider item=MPD_EG_Volume2
}
...

With this configuration, the switch works great.

If I use the slider, there are errors in the log:

12:15:40.308 INFO  o.o.b.mpd.internal.MpdBinding[:214]- executed commandLine 
'play' for player 'mpdeg'
12:15:53.800 INFO  o.o.b.mpd.internal.MpdBinding[:214]- executed commandLine 
'stop' for player 'mpdeg'
14:43:48.432 INFO  o.o.b.mpd.internal.MpdBinding[:214]- executed commandLine 
'play' for player 'mpdeg'
14:44:17.920 WARN  o.o.b.mpd.internal.MpdBinding[:133]- cannot find matching 
binding provider [itemName=MPD_EG_Volume, command=61]
14:44:22.160 WARN  o.o.b.mpd.internal.MpdBinding[:133]- cannot find matching 
binding provider [itemName=MPD_EG_Volume2, command=60]
14:46:12.184 WARN  o.o.b.mpd.internal.MpdBinding[:133]- cannot find matching 
binding provider [itemName=MPD_EG_Volume, command=70]
14:46:12.972 WARN  o.o.b.mpd.internal.MpdBinding[:133]- cannot find matching 
binding provider [itemName=MPD_EG_Volume2, command=70]

I've already tried everything I've found on examples in the demo and in 
presentations. Unfortunately, the error remains.

Maybe I've overlooked an error in my configuration, or it is a bug.

Thank you and best regards!
-Boris

Original issue reported on code.google.com by boris.li...@gmail.com on 13 Sep 2013 at 1:08

GoogleCodeExporter commented 9 years ago
Hi Boris, the percentage feature is simply not (yet) implemented. Hence you've 
found a missing feature :-) Thanks, Thomas E.-E.

Original comment by teichsta on 15 Sep 2013 at 9:37

GoogleCodeExporter commented 9 years ago
Hi Thomas,

thank you. I did not expected this to be an missig feature since there is a 
corresponding example on the presentation of openhab @ KNX Stammtisch NRW.

I would be very glad if the feature could be implementable.

Best regards. 
-Boris

Original comment by boris.li...@gmail.com on 16 Sep 2013 at 9:44

GoogleCodeExporter commented 9 years ago
ah, i see!

You're right, the volume value can be shown in percent that is what i meant 
with the PERCENT tag. The binding cannot (yet) receive percent values.

Original comment by teichsta on 16 Sep 2013 at 10:04

GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 5 Nov 2013 at 10:53

GoogleCodeExporter commented 9 years ago
This issue has been migrated to Github. If this issue id is greater than103 its 
id has been preserved on Github. You can open your issue by calling the URL 
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or 
equal 103 new ids were created.

Original comment by teichsta on 17 Nov 2013 at 8:08

GoogleCodeExporter commented 9 years ago
see above!

Issue has been migrated to Github and should be discussed there.

Original comment by teichsta on 21 Nov 2013 at 1:51