npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-musiccast-tv

v1.8.1

Published

Homebridge plugin for Yamaha MusicCast devices

Downloads

32

Readme

homebridge-musiccast-tv

npm

Features

This plugin publishes MusicCast devices as HomeKit compatible TVs. It supports any number of inputs and volume control via the Apple TV Remote widget in the iOS Control Center. You can enable an additional fan service for volume control by adding volumeFan = 1 and volumeName to your config.json.

Configuration

    "accessories": [{
        "accessory": "MusicCastTV",
        "name": "Living Room Radio",
        "ip": "192.168.178.2",
        "inputs": {
            "airplay": "AirPlay", 
            "am": "AM", 
            "fm": "FM", 
            "line_cd": "CD", 
            "hdmi1": "DVD Player", 
            "server": "Homeserver", 
            "net_radio": "Online radio"
            }
    }]

Installation

Install Homebridge

sudo npm install -g homebridge
sudo npm install -g homebridge-musiccast-tv

Configure Homebridge

You can get information about your MusicCast device by visiting "http://<ip>/YamahaExtendedControl/v1/system/getFeatures".

config arguments:

| name | example | description | required | | ---- | ------- | ----------- | -------- | | accessory | MusicCastTV | this value is used to identify this plugin | yes | | name | "TV stereo" | the name of your device | yes | | ip | 192.168.178.29 | ip address for your MusicCast device | yes | | zone | "zone2" | MusicCast zone from getFeatures.json, default: "main" | no | | inputs | {"fm": "radio", "line_cd": "CD", "airplay": "AirPlay"} | one key:value pair for each input you want to use. You can hide inputs by removing the checkbox in your HomeKit app or by removing it here. | yes | | model | "Yamaha R-N602" | device model shown in homebridge | no | | serialNo | "123-456-789" | serial number shown in homebridge | no | | volumeFan | 1 | show additional fan service for volume control | no | | volumeName | "TV speaker" | the name of the additional fan service | no | | buttonNumber | 11 | show additional switch for setting the radio to favourite station no ... | no | | buttonName | "radio station 11" | the name of the additional switch | no | | buttonBand | "fm" | the tuner band for the additional switch | no | | powerOnInput | "line_cd" | input automatically switched to at powerOn | no | | powerOnVolume | 60 | Volume your device is set to at powerOn | no | | updateInterval | 1000 | time between updates im ms | no | | volume | 100 | initial Volume; automatically detected | no | | maxVol | 161 | maxVol from getFeatures.json; automatically detected | no |

Currently supported inputs:

| Input Name | Implemented | | ---------- | ----------- | | phono | yes | | line_cd | yes | | line1 | yes | | line2 | yes | | line3 | yes | | usb | yes | | usb_dac | yes | | airplay | yes | | bluetooth | yes | | net_radio | yes | | server | yes | | optical | yes | | optical1 | yes | | optical2 | yes | | coaxial | yes | | coaxial1 | yes | | coaxial2 | yes | | hdmi | yes | | hdmi[1-8] | yes | | aux | yes | | aux1 | yes | | aux2 | yes | | v_aux | yes | | av[1-7] | yes | | cd | yes | | tv | yes | | analog | yes | | multi_ch | yes | | audio | yes | | audio[1-4] | yes | | audio_cd | yes | | digital | yes | | digital1 | yes | | digital2 | yes | | bd_dvd | yes | | mc_link | yes | | main_sync | no | | **tuner types: ** | | fm | yes | | am | yes | | dab | yes | | **streaming services: ** | | spotify | yes | | amazon_music | yes | | deezer | yes | | napster | yes | | qobuz | yes | | juke | yes | | tidal | yes | | pandora | yes | | siriusxm | yes | | radiko | yes | | alexa | yes |

If your MusicCast device supports additional inputs, please file an issue.

hdmi[1-8] summarizes hdmi1, hdmi2, ..., hdmi8

Debugging

  • check you are using the right ip-adress
  • check your log file for error messages
  • run in debug mode using "homebridge -D" and file an issue

Common issues

Input appears as additional tile

  • remove and repair Homebridge
  • restart Homebridge

Issues with more than one TV per bridge

If you have more than one TV per Homebridge instance you might experience some of the following issues:

  • only one TV appears in the TV widget
  • one or multiple TVs have problems syncing to Homebridge
  • one or more TVs are flashing in the Home app

To fix these Issues make sure there is just one TV per Homebridge instance. You can run multiple Homebridge instances per device.

TODO

  • [x] add fan service for volume control
  • [ ] fix symbol
  • [ ] create plattform accesory