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-pushover-switches

v1.0.1

Published

Homebridge plugin to send Pushover notifications via virtual switches, each with its own app token

Downloads

290

Readme

homebridge-pushover-switches

Plugin Homebridge pour envoyer des notifications Pushover via des switches virtuels HomeKit.
Chaque switch peut utiliser son propre app token Pushover, tout en partageant le même user key.


Installation

Option A — Installation locale (sans publier sur npm)

  1. Copie le dossier homebridge-pushover-switches dans le répertoire de ton choix, par exemple :

    /var/lib/homebridge/homebridge-pushover-switches/
  2. Installe le plugin en local depuis l'interface Homebridge UI ou en ligne de commande :

    cd /var/lib/homebridge
    npm install ./homebridge-pushover-switches

Option B — Via Homebridge UI (fichier local)

Dans Homebridge UI → Plugins → "Install plugin from path or npm package name"
→ entre le chemin absolu vers le dossier du plugin.


Configuration

Ajoute ceci dans ton fichier config.json Homebridge (section platforms) :

{
  "platforms": [
    {
      "platform": "PushoverSwitches",
      "name": "Pushover Switches",
      "user_key": "TON_USER_KEY_PUSHOVER",
      "switches": [
        {
          "name": "Alarme Maison",
          "app_token": "APP_TOKEN_1",
          "title": "🏠 Alarme",
          "message": "L'alarme maison a été déclenchée !",
          "sound": "siren",
          "priority": 1
        },
        {
          "name": "Notification Portail",
          "app_token": "APP_TOKEN_2",
          "title": "🚪 Portail",
          "message": "Le portail vient de s'ouvrir.",
          "sound": "door",
          "priority": 0
        },
        {
          "name": "Alerte Domotique",
          "app_token": "APP_TOKEN_3",
          "message": "Alerte domotique déclenchée",
          "auto_off_delay": 2
        }
      ]
    }
  ]
}

Paramètres

Plateforme

| Paramètre | Requis | Description | |------------|--------|------------------------------------| | platform | ✅ | Toujours "PushoverSwitches" | | user_key | ✅ | Ton User Key Pushover | | switches | ✅ | Liste des switches (voir ci-dessous) |

Par switch

| Paramètre | Requis | Défaut | Description | |-----------------|--------|---------------------|--------------------------------------------------| | name | ✅ | — | Nom affiché dans HomeKit | | app_token | ✅ | — | App Token Pushover (différent par switch !) | | title | ❌ | Nom du switch | Titre de la notification | | message | ❌ | "<nom> triggered" | Corps de la notification | | sound | ❌ | Son par défaut | Son Pushover (siren, door, magic, etc.) | | priority | ❌ | 0 | -2 (silencieux) à 2 (urgence) | | device | ❌ | Tous | Envoyer à un appareil spécifique | | url | ❌ | — | URL cliquable dans la notification | | url_title | ❌ | — | Texte du lien URL | | auto_off_delay| ❌ | 1 | Délai (secondes) avant remise à OFF. 0 = manuel |


Fonctionnement

  • Activer le switch → envoie la notification Pushover → le switch repasse automatiquement à OFF (après auto_off_delay secondes)
  • Compatible avec les automatisations HomeKit, Siri, et les apps tierces (Home+, Controller, etc.)

Trouver tes tokens Pushover

  1. User Key : visible sur https://pushover.net (tableau de bord, en haut à droite)
  2. App Token : crée une application sur https://pushover.net/apps/build — crées-en une par switch pour les différencier