Show:
Extends EventEmitter

The Denon AVR RPC class.

Methods

_applyRegex
(
  • data
)
string | Undefined
private

Does the RegEx magic.

Parameters:

  • data string

    [The incoming data]

Returns:

string | Undefined:

[Response or undefined]

_onData
(
  • data
)
private

Receives the incoming data. Does some RegEx magic. Calls the defined events and resolves promises.

Parameters:

  • data string

    [The incoming data]

getBrightness () Promise

Returns the brightness level of the display

Returns:

Promise
getInput () Promise

Returns the current active input source (TV, DVD, ...) of the Denon AVR.

Returns:

Promise:

[A response]

getMute () Promise

Returns the current mute status of the Denon AVR.

Returns:

Promise:

[A response]

getPower () Promise

Returns the current power status of the Denon AVR.

Returns:

Promise:

[A response]

getSurround () Promise

Returns the current surround mode of the Denon AVR.

Returns:

Promise:

[A response]

getVolume () Promise

Returns the current Denon AVR volume.

Returns:

Promise:

[A response]

getVolume () Promise

Returns the current Denon AVR volume.

Returns:

Promise:

[A response]

getZone2 () Promise

Returns the current zone 2 status of the Denon AVR.

Returns:

Promise:

[A response]

sendCommand
(
  • command
  • parameter
)
Promise

Sends a command to the Denon AVR

Parameters:

  • command String

    [The command]

  • parameter String

    [The parameter]

Returns:

Promise:

[A response]

setBrightness
(
  • brightnessLevel
)
Promise

Sets the brightness level of the display

Parameters:

Returns:

Promise
setInput
(
  • inputOptions
)
Promise

Sets the active input of the Denon AVR. (TV, DVD, ...). Use {InputOptions}.

Parameters:

Returns:

Promise:

[A response]

setMute
(
  • muteOptions
)
Promise

Sets the mute status of the Denon AVR. (On / Off). Use {MuteOptions}.

Parameters:

Returns:

Promise:

[A response]

setPower
(
  • powerOptions
)
Promise

Sets the power mode of the Denon AVR. (On / Standby). Use {PowerOptions}.

Parameters:

Returns:

Promise:

[A response]

setSurround
(
  • surroundOptions
)
Promise

Sets the surround mode of the Denon AVR. (Dolby, Stereo, ...). Use {SurroundOptions}.

Parameters:

Returns:

Promise:

[A response without any data]

setVolume
(
  • volumeOptions
)
Promise

Sets the volume of the Denon AVR. Use {VolumeOptions} or a number from 0-98.

80=80(0dB), 00=-0(--dB)(MIN) VolumeOptions.Up / VolumeOptions.Down

Parameters:

Returns:

Promise:

[A response]

setZone2
(
  • zone2Options
)
Promise

Sets the zone 2 state of the Denon AVR. (On / Off). Use {Zone2Options}.

Parameters:

Returns:

Promise:

[A response]

Events

displayDimChanged

Event Payload:

inputChanged

Event Payload:

masterVolumeChanged

Event Payload:

  • volume Object

    The current volume

masterVolumeMaxChanged

Event Payload:

  • maxVolume Object

    The maximal volume

muteChanged

Event Payload:

powerChanged

Event Payload:

surroundChanged

Event Payload:

zone2Changed

Event Payload: