homestar-denon-avr

3.0.1 • Public • Published

homestar-denon-avr

IOTDB Bridge connect to and control Denon AVR (Audio Visual Receivers).

About

See the samples for details how to use in your project, particularly model.js and iotdb.js.

Note that the IOTDB dependency is very light, so it's easy to add to any sort of project you're doing.

Installation

Then:

$ npm install homestar-denon-avr

Use

Set the TV to channel 3 and volume to half (see the examples for more! really!)

const iotdb = require('iotdb')
iotdb.use("homestar-deno-avr")

const things = iot.connect("DenonAVR")
things.set(":channel", "3")
things.set(":volume", 0.5)

Raspberry Pi

If this does not install, make sure to run these commands

sudo apt-get install libavahi-compat-libdnssd-dev avahi-utils

About

This bridge will allow you to:

  • set volume, band, sound mode, and on (power)
  • get same
  • connect to Denon AVR using specified host
  • connect to Denon AVR by mDNS / Bounjour discovery (default)

Parameters

If you want to add more controls, it should be fairly straight forward. See the docs folder.

  • volume: number between 0 and 1
  • band: Denon AVR "Select Input" band (see below)
  • sound_mode: Denon AVR Sound Mode (see below)
  • on: true or false

e.g.

{
    "volume": 0.18,
    "band": "MEDIA",
    "sound_mode": "MCH STEREO",
    "on": true
}

Bands

Not all Denon AVRs support all these bands. Future versions of this bridge will support some sort of standardized value like iot-purpose:band.phono, etc..

  • PHONO
  • CD
  • TUNER
  • DVD
  • BD
  • TV
  • SAT/CBL
  • DVR
  • GAME
  • GAME2
  • V.AUX
  • DOCK
  • HDRADIO
  • IPOD
  • SI
  • RHAPSODY
  • NAPSTER
  • PANDORA
  • LASTFM
  • FLICKR
  • FAVORITES
  • IRADIO
  • SERVER
  • USB/IPOD
  • USB
  • IPD
  • IRP
  • FVP

Sound Modes

Depends on Denon AVR model. Examples of Sound Modes:

  • DIRECT
  • PURE DIRECT
  • STEREO
  • STANDARD
  • DOLBY DIGITAL
  • DTS SUROUND
  • MCH STEREO
  • ROCK ARENA
  • JAZZ CLUB
  • MONO MOVIE
  • MATRIX
  • VIDEO GAME
  • VIRTUAL

Readme

Keywords

none

Package Sidebar

Install

npm i homestar-denon-avr

Homepage

homestar.io

Weekly Downloads

2

Version

3.0.1

License

Apache-2.0

Last publish

Collaborators

  • dpjanes