mkarasoff / shoe

SHOE - An open source HEOS configuration and control project.
GNU General Public License v3.0
30 stars 1 forks source link

Usage question #5

Open el0y79 opened 2 years ago

el0y79 commented 2 years ago

Hi,

I came across your project and found it very interesting. I recently bought a Denon Home multiroom system and want to connect my TV to the two speakers of that system that are next to the TV. For that I need to take them out of whatever zone they are, ungroup them (or unbind) and then activate aux in for them. All of that seems to work with your library. The one thing I seem to be missing is how to set the volume for a single ungrouped unzoned speaker? It's so basic I cannot believe its not included and actually I did find a command under RenderingControl, that sounds like what I'm looking for (SetVolume), unfortunately this doesn't seem to work for my heos system. BTW, SetVolumeDB seems to be running into some error:

$ shoe -H 192.168.178.58  -c SetVolumeDB -a DesiredVolume 50
Traceback (most recent call last):
  File "C:\ws.git.shoe\shoe", line 259, in <module>
    main()
  File "C:\ws.git.shoe\shoe", line 245, in main
    cmndRtnFmt=ops[host].runCmnd(args.cmnd,
  File "C:\ws.git.shoe\shoelib\shoeOp.py", line 122, in runCmnd
    cmndRtn=shoeRoot.sendCmnd(cmnd, args, svcName, devName)
  File "C:\ws.git.shoe\shoelib\shoeRoot.py", line 127, in sendCmnd
    return svc.sendCmnd(cmnd, args)
  File "C:\ws.git.shoe\shoelib\shoeSvc.py", line 206, in sendCmnd
    shoeCmnd.send()
  File "C:\ws.git.shoe\shoelib\shoeCmnd.py", line 69, in send
    self.args=self._formatCmnd(self.argsIn, self.argsCfg)
  File "C:\ws.git.shoe\shoelib\shoeCmnd.py", line 114, in _formatCmnd
    return self._formatArgs(args, cmndArgsCfg,
  File "C:\ws.git.shoe\shoelib\shoeCmnd.py", line 134, in _formatArgs
    fmtArgVal = formatFunc(argVal, argCfg)
  File "C:\ws.git.shoe\shoelib\shoeCmnd.py", line 209, in _formatCmndArg
    self._checkAllowedVals(argRtn, argCfg)
UnboundLocalError: local variable 'argRtn' referenced before assignment

Do you have any idea on how to set individual speakers to certain volume levels? Any help is very much appreviated.

Other than that; great project. Thanks.

Best regards, Milan