• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

nitaybz/homebridge-network-presence: Homebridge plugin that provides occupancy s ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

nitaybz/homebridge-network-presence

开源软件地址:

https://github.com/nitaybz/homebridge-network-presence

开源编程语言:

JavaScript 100.0%

开源软件介绍:

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) 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.






鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap