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-sony-audio-control-heargo-kazari

v2.4.0

Published

Homebridge plugin to control a Sony SRS-HG1 Speaker

Downloads

8

Readme

"homebridge-sony-audio-control-heargo-kazari" Plugin

With this plugin you can create HomeKit services to control a Sony STR-DN1080 Audio Video Receiver.

The code for this plugin has originally been forked from Http Speaker for Homebridge authored by Andreas Bauer.

Modified verion by Yukimi Kazari to add support for the Sony SRS-HG1 Portable speaker that i use on my desk. The main differances are using the system power commands over avControl and removing the hard coaded port as some speakers do not use the 10000 port

In my chnages I have most likely broken then zone support but that is not supported by the HG1.

Compatibility notice

This plugin utilizes Sony's Audio Control API. It has only been tested with a Sony Sony SRS-HG1 Spealer, but it may work with other Sony devices that support the API.

The plugin supports powertoggling, volume control including muting, setting sound modes stereo and Dolby Surround and switching configured external inputs.

This plugin uses the power off comand so ensure you have network standby enabled and power connected in order for the plugin to communicate with your speaker on power off.

Installation

First of all you should already have installed Homebridge on your device. Follow the instructions over at the HomeBridge Repo.

To install the homebridge-sony-audio-control-heargo-kazari plugin simply run sudo npm install -g homebridge-sony-audio-control-heargo-kazari.

Configuration

Below is an example configuration that has to amended to your existing Homebridge-configuration.

You have to edit "ip" to correspond with the IP-address of your receiver.

Set "name" to what you prefer to refer to the device as using Homekit or Siri.

Set "outputZone" to the zone you want to control (omit if your device does not support zone control).

"accessory" is used by homebridge to initialize the plugin correctly, so do NOT edit this setting.

To disable network standby, set enableNetworkStandby to false (not recommended as you can't turn on receiver again through a network connection, but it significantly lowers power consumption while off).

For every external input you want to enable, you have to add a new input object with a "name" and "uri". Again "name" can be set to what you prefer to refer to the input as using Homekit or Siri, while "uri" have to correspond to the Device Resource URI per Device URI.

For every soundfield you want to enable, you can add a new soundfield object with a "name" and "value". Again "name" can be set to what you prefer to refer to the soundfield as using Homekit or Siri, while "value" have to correspond with the soundField coding of the Sony equipment. If you omit the soundField array entirely, default soundfields for 2 channel stereo and Dolby Surroind will be created. If you don't want any soundfields to be created, included an empty array (ie. "soundFields": []).

"accessories": [
	{
        "name": "Sony HiFi",
        "ip": "192.168.100.8:54480",
        "enableNetworkStandby": true,
        "inputs": [
            {
                "name": "USB DAC",
                "uri": "extInput:usbDac"
            },
            {
                "name": "Bluetooth Audio",
                "uri": "extInput:btAudio"
            },
            {
                "name": "Audio in",
                "uri": "extInput:line?port=1"
            }
        ],
        "soundFields": [
            {
                "name": "FLAT",
                "value": "standard"
            },
            {
                "name": "EXTRA BASS",
                "value": "extrabass"
            },
            {
                "name": "OUTDOOR",
                "value": "outdoor"
            },
            {
                "name": "BGM",
                "value": "bgm"
            },
            {
                "name": "CUSTOM",
                "value": "custom"
            }
        ],
        "accessory": "receiver"
    },
]