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 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-naim-unitiqute2

v0.0.1

Published

Homebridge accessory plugin for Naim UnitiQute 2

Readme

Homebridge Naim UnitiQute 2 (UPnP)

Homebridge accessory plugin to control a Naim UnitiQute 2 (or similar Naim renderers) via UPnP/DLNA services exposed at description.xml.

It implements SOAP calls to:

  • RenderingControl:1 at /RenderingControl/ctrl (volume, mute)
  • AVTransport:1 at /AVTransport/ctrl (play, pause, stop, next, previous)

Discovered endpoints should look like your device's description.xml serviceList.

Install

Ensure your Naim is on the same network and exposes the UPnP endpoints (e.g., http://IP:8080/description.xml). Here is a curl command to test. You should see a list of services.

curl http://IP:8080/description.xml

Install the plugin:

npm install -g homebridge-naim-unitiqute2

Configure (UI or JSON)

Using Homebridge UI, set:

  • ipAddress (required): e.g. 192.168.1.XXX
  • port (optional): default 8080
  • name (optional): default Naim UnitiQute 2

JSON example (config.json):

{
  "accessories": [
    {
      "accessory": "NaimUnitiqute2",
      "name": "Naim UnitiQute 2",
      "ipAddress": "192.168.1.234",
      "port": 8080
    }
  ]
}

Supported Controls (mapped)

  • Play: AVTransport#Play
  • Pause: AVTransport#Pause
  • Next/Previous: AVTransport#Next, AVTransport#Previous
  • Volume: RenderingControl#SetVolume (Master)
  • Mute: RenderingControl#SetMute (Master)

The plugin exposes a Television + TelevisionSpeaker accessory in HomeKit:

  • Active toggles Play/Pause
  • Remote keys Right/Left or FF/REW map to Next/Previous
  • Volume/Mute are absolute volume and mute

Manual SOAP Example

curl "http://192.168.1.234:8080/RenderingControl/ctrl" \
  -H 'Content-Type: text/xml; charset="utf-8"' \
  -H 'SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#SetVolume"' \
  --data-binary @- <<'XML'
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:SetVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1">
      <InstanceID>0</InstanceID>
      <Channel>Master</Channel>
      <DesiredVolume>25</DesiredVolume>
    </u:SetVolume>
  </s:Body>
</s:Envelope>
XML

Caveats

  • Source switching is not supported: I could not find a way to set the source in UPnP/DLNA specifications. Help needed to implement this.
  • Stopping: Stopping the device via this plugin actually pauses the stream instead of fully stopping, because turning the device on from the off state is done through setting the source, which is not available per above. All these can possibly be observed and implemented via sniffing the communication between iOS app and the device (since the communications is using HTTP). My home network setup didn't allow this, but if you can, please let me know in the issues section.