Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.68 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.68 KB

GitHub last commit npm npm

Homebridge Sonos Announcer

Play announcements across your Sonos speakers via Homekit.

Play any sound file on demand. The intended use is for information updates such as "Door is open" to be triggered via a Home automation.

Features

  • Set the desired volume
  • Use any audio file URI supported by Sonos
  • Switch will turn itself off once the audio has finished playing
  • Play across multiple Sonos speakers
  • Create multiple Switches with different settings

Requirements

  • Homebridge HomeKit support for the impatient
  • Sonos speakers

Instructions

Installation

This plugin can easily be installed from Homebridge UI or sudo npm install -g @jakspalding/homebridge-sonos-announcer

Config

This is a platform plugin and you should be able to edit the configuration via the UI.

Example config

{
  "platforms": [
    {
      "platform": "SonosAnnouncer",
      "switches": [
        {
          "deviceNames": ["Living Room", "Kitchen Speaker"],
          "switchName": "Announce Living room door open ",
          "trackUri": "http://path/to/living-room-door-open.mp3",
          "timeout": 10,
          "volume": 45,
          "delayMs": 100
        }
      ]
    }
  ]
}