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

paolotremadio/homebridge-automation-presence: Manage presence in your home, base ...

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

开源软件名称:

paolotremadio/homebridge-automation-presence

开源软件地址:

https://github.com/paolotremadio/homebridge-automation-presence

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Automation - Presence

Why this plugin

HomeKit does a brilliant job detecting when someone is home but it only works with iOS devices. If you have a guest, you must invite him/her to the Home app (assuming he/she has an iPhone). HomeKit can tell you if someone is home but can't tell you which room is occupied.

This plugin:

  • Support for people presence using devices that are not iPhones.
  • Support for "Zones" so you can determine the presence in areas of your house.
  • Easier automation by track presence by zone without having to check the value of multiple sensors.
  • Support for a "Master presence" sensor to know if there's presence if any of your zones. The true "someone is home".
  • State is persisted on disk, so it will survive reboot/restart of homebridge.
  • Every change in state is logged on file for future analysis.

What is a zone?

This plugin lets you create one or more "zones". A zone can be a room (e.g. Living Room), a group of rooms (e.g. Upstairs), a group of devices (e.g. Guests) or a group of sensors (e.g. Someone is in bed).

You give a "zone" the semantic you like.

Some example of zones:

  • By room: Living Room, Bedroom, Bathroom
  • By area: Upstairs, Downstairs, Outside
  • By collection of sensors: Bedroom bed, Couch (to link multiple sensors together and stop lights to turn on if someone is in bed, for example)
  • By personal devices, people presence: myself, partner, kid, cleaner, guests

What are triggers?

For every zone you can define a list of triggers. When one or more triggers are On, the zone is On.

For example, let's assume you have a zone Living room.

Here's the triggers you could have to detect presence:

  • Motion sensors
  • Audio streaming (turn On the switch when you stream audio and turn the switch Off when you stop streaming; works well with homebridge-automation-chromecast)
  • Lights are on (unless they are triggered by motion sensors)
  • Media player is playing (e.g. Plex media player, see homebridge-plex)
  • Vibration sensors for your furniture (e.g. the Xiaomi/Aqara Vibration sensor, see homebridge-hue with deconz)

About using non-iPhones to track people presence

You can use Bluetooth to track who's home.

For example, you could track personal devices like phones, smart watches, headphones / earphones or fitness trackers.

You could also buy some cheap "iTag" devices or Tile trackers to attach to the dog, your keys, the keys you give to your guests, etc.

You can detect if a Bluetooth device is at home by using my homebridge-automation-bluetooth-presence plugin.

Config

Example config.json:

{
  "accessory": "AutomationPresence",
  "name": "Home Presence",
  "masterPresenceOffDelay": 600,
  "zones": [
    {
      "name": "Zone 1 name",
      "triggers": [
        {
          "name": "Trigger 1 name"
        },
        {
          "name": "Trigger 2 name"
        },
        {
          "name": "Trigger 3 name"
        },
        {
          "name": "..."
        }
      ]
    },
    {
      "name": "Zone 2 name",
      "triggers": [
        {
          "name": "Trigger 1 name"
        },
        {
          "name": "..."
        }
      ]
    },
    {
      "name": "...",
      "triggers": [
        {
          "name": "..."
        }
      ]
    }
  ]
}

This accessory will create a switch for every Trigger and a motion sensor for every Zone, including a Master motion sensor.

Turning On one or more switches will turn on the Zone they belong to. If one of more Zone is on, the Master switch is On.

Turning on all the switches will turn off the master zone after the masterPresenceOffDelay (in seconds).

Configuration options

Attribute Required Usage Example
name Yes A unique name for the accessory. It will be used as the accessory name in HomeKit. Home Presence
masterPresenceOffDelay No Number of seconds before turning Off the Master sensor, after no presence is detected 600 (600 seconds, 10 minutes)
zones Yes A list of one or more Zones and their Triggers n/a



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
senorshaun/homebridge-nuheat: NuHeat Homebridge plugin发布时间:2022-06-17
下一篇:
The Missing Package Manager for macOS (or Linux) — Homebrew发布时间:2022-06-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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