ol-iver/denonavr

Retrieve speaker preset

Closed this issue · 1 comments

I'm trying to get the active speaker preset.

I found this in Device_Info under DeviceCapabilities:

<SpeakerPreset>
<Control>1</Control>
<DispName>Speaker Preset</DispName>
<FuncName>SpeakerPreset</FuncName>
<List>
<Value>
<DispName>Preset 1</DispName>
<CmdNo>1</CmdNo>
</Value>
<Value>
<DispName>Preset 2</DispName>
<CmdNo>2</CmdNo>
</Value>
</List>
<Commands>
<GetSpeakerPreset ver="1">1</GetSpeakerPreset>
<SetSpeakerPreset ver="1">1</SetSpeakerPreset>
</Commands>
</SpeakerPreset>

I'm not sure how to run GetSpeakerPreset.
I tried adding an AppCommandCmd but I get this error: <error>2</error>.

Can someone give me some pointers?
Thanks.

It works with cmd_id=3.

/goform/AppCommand0300.xml

<?xml version="1.0" encoding="utf-8"?>
<tx>
<cmd id="3">
	<name>GetSpeakerPreset</name>
	<list>
		<param name="preset" />
	</list>
</cmd>
</tx>