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-network-presence-test

v1.2.3

Published

Homebridge plugin that provides occupancy sensors for devices presence in your network

Downloads

7

Readme

homebridge-network-presence

Downloads Version verified-by-homebridge Homebridge Discord certified-hoobs-plugin hoobs-support

Homebridge plugin that provides occupancy sensors for devices presence on your network based on mac address or IP.

Requirements

 

check with: node -v & homebridge -V and update if needed

Description

This plugin was inspired by the old homebridge-people plugin by @PeteLawrence and it's fork, homebridge-people plus by @Glavin001.

I created this plugin due to the lack of updated, supported and maintained plugin to check devices on your current network.

With this plugin you can easily configure devices to monitor based on their mac address, ip address or hostname.

Installation

This plugin is HomeBridge verified and HOOBS certified and can be easily installed and configured through their UI.

If you don't use Homebridge UI or HOOBS, keep reading:

  1. Install homebridge using: sudo npm install -g homebridge --unsafe-perm
  2. Install this plugin using: sudo npm install -g homebridge-network-presence
  3. Update your configuration file. See config-sample.json in this repository for a sample.

Config File Example

"platforms": [
    {
        "platform": "NetworkPresence",
        "interval": 10,
        "threshold": 15,
        "addressRange": "10.0.0.1-10.0.0.120",
        "anyoneSensor": true,
        "devices": [ 
            {
                "name": "my iPhone",
                "mac": "cc:29:f5:3b:a2:f2",
                "threshold": 5
            },
            {
                "name": "my iPad",
                "ip": "10.0.0.142"
            },
            {
                "name": "my Apple Watch",
                "hostname": "joes-applewatch.local"
            }

        ],
        "debug": false
    }
]

Configurations Table

* advanced details below

| Parameter | Description | Default | type | | -------------------------------- | ------------------------------------------------------- |:--------:|:--------:| | platform | always "NetworkPresence" | - | String | | interval | Time in seconds between status polling for connected devices | 10 | Integer | | threshold | Time in minutes to wait before updating 'disconnected' status. important for not spamming your notifications or wrongly activating automation because the device has gone from the network for short time | 15 | Integer | | addressRange | (Optional) Define the address range of your devices to speed up discovery (e.g. "10.0.0.0/24", "10.0.0.1-10.0.0.30") | - | String | | anyoneSensor       | When set to true, the plugin will create extra accessory named "Anyone" to represent if ANY of the devices is detected | false | Boolean | | debug       | When set to true, the plugin will produce extra logs for debugging purposes | false | Boolean | | Devices | List of devices to monitor (with the below information)| | Array| | name | Name of the accessory in HomeKit | | String | | mac | Mac Address of the device e.g. cc:29:f5:3b:a2:f2 (can use ip or hostname instead) | | String | | ip | ip Address of the device (can use mac or hostname instead) | | String | | hostname | Hostname of the device (can use mac or ip instead). UPD: If there are no hostnames defined for devices, hostname resolving will be turned off, which dramatically speeds up discovery | | String | | threshold | device disconnect threshold (overrides platform threshold) | 15 | Integer |

Issues & Debug

If you experience any issues with the plugins please refer to the Issues tab and check if your issue is already described there, if it doesn't, please report a new issue with as much detailed information as you can give (logs are crucial). if you want to even speed up the process, you can add "debug": true to your config, which will give me more details on the logs and speed up fixing the issue.


Support homebridge-network-presence

homebridge-network-presence is a free plugin under the MIT license. it was developed as a contribution to the homebridge/hoobs community with lots of love and thoughts. Creating and maintaining Homebridge plugins consume a lot of time and effort and if you would like to share your appreciation, feel free to "Star" or donate.