openhab-addons: [pioneeravr] Volume set for VSX 528 like AVRs

Hi, very nice Binding. It works very well for me. But some receivers, like my VSX 528, has no volume set command (VL), only VU and VD. For my homematic i had a workaround with a loop who set the Volume with x VU/VD commands. It would be nice, the binding has a function like this.

Here some code, sadly i am no java programmer (i am at the end no Programmer 😉) This code is from http://forum.logicmachine.net/showthread.php?tid=15

`function setvolume(host, port, volumelevel)

local currentvolume = getvolume(host, port)

if volumelevel > currentvolume then for i = currentvolume, volumelevel -1, 2 do telnetsend(host,port,VOLUME_UP) end else for i = volumelevel, currentvolume-1, 2 do telnetsend(host,port,VOLUME_DOWN) end end

currentvolume = getvolume(host, port) return currentvolume

end

`

Greetings, Jochen

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 44 (3 by maintainers)

Commits related to this issue

Most upvoted comments

Hi @Stratehm,

is your binding in the official Release for Version Openhab 2.4 integrated with the setvolume Feature?

I can’t get it working because no Version of the Pioneer’s in the “choose thing”-Dialog is working for me.

Could you provide an Snapshot or inform when you plan the integration in Openhab official?