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

mike182uk/homebridge-zwave: A Homebridge plugin for ZWave devices

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

开源软件名称:

mike182uk/homebridge-zwave

开源软件地址:

https://github.com/mike182uk/homebridge-zwave

开源编程语言:

JavaScript 100.0%

开源软件介绍:

⚠️ This project is no longer maintained

homebridge-zwave

Version Build Status npm License

A Homebridge plugin for ZWave devices.

Index

Prerequisites

  1. Node.js >= 12.13.0
  2. OpenZWave 1.6
  3. Homebridge >= 1.0.0
  4. A good understanding of how Homebridge, HomeKit and ZWave works

Installation

npm i -g homebridge-zwave

Usage

Register the plugin with Homebridge by adding a new entry to the platforms section of your Homebridge config:

{
  "platform": "ZWavePlatform",
  "name": "ZWavePlatform",
  "zwave": {
    "devicePath": "/dev/cu.usbmodem14201",
    "networkKey": "0xE0, 0x40, 0x58, 0x10, 0x79, 0x32, 0x9B, 0x52, 0x96, 0x4B, 0x8F, 0xC5, 0x62, 0x4F, 0x79, 0x3B"
  },
  "accessories": [
    {
      "zwaveNodeId": 2,
      "displayName": "Desk Power Socket",
      "homekitCategory": "Outlet",
      "homekitServices": [
        "Outlet"
      ]
    },
    {
      "zwaveNodeId": 3,
      "displayName": "Light Switch",
      "homekitCategory": "Switch",
      "homekitServices": [
        "Switch"
      ]
    },
    {
      "zwaveNodeId": 4,
      "displayName": "Office Multisensor",
      "homekitCategory": "Sensor",
      "homekitServices": [
        "Battery",
        "MotionSensor",
        "HumiditySensor",
        "TemperatureSensor"
      ]
    }
  ],
  "noCache": false
}

If you do not have a platforms section in your Homebridge config you will need to define one.

zwave.devicePath is the path to your ZWave controller. This can vary based on the controller manufacturer and the operating system you are using.

zwave.networkKey is the network key to use for encrypting secure messages over the network. This property can be omitted if you do not require this functionality.

accessories is where you will map a ZWave node to a HomeKit accessory. To define an accessory the information needed is:

  • zwaveNodeId - the ID of the node in the ZWave network that this accessory is for
  • displayName - the name that will be used for this accessory in HomeKit
  • homekitCategory - the type of accessory HomeKit will see this accessory as. Supported categories are:
    • Outlet
    • Sensor
    • Switch
  • homekitServices - the HomeKit services provided by this accessory. Supported services are:
    • If homekitCategory is Outlet:
      • Outlet
    • If homekitCategory is Sensor:
      • Battery
      • HumiditySensor
      • LightSensor
      • MotionSensor
      • TemperatureSensor
    • if homekitCategory is Switch
      • Switch

You do not have to specify the service for an accessory if the accessory does not support it (i.e a multisensor that only measures temperature and humidity only needs the HumiditySensor and TemperatureSensor services).

noCache sets whether accessories registered by this plugin should be cached or not. By default this value is false. Set to true to disable the cache.

Notes

Devices tested with this plugin

FAQ's

How do I install OpenZWave on macOS

You can install v1.6 of OpenZWave using Homebrew:

brew tap mike182uk/tap

brew install mike182uk/tap/open-zwave

⚠️ WARNING

If you run:

brew install open-zwave

This will install an older version of OpenZWave that will not work with this plugin.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
moifort/homebridge-mi-led-desk-lamp: Mi led Desk Lamp Homebridge发布时间:2022-06-14
下一篇:
Sponsor @tj on GitHub Sponsors · GitHub发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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