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

robertklep/homebridge-klikaanklikuit: Homebridge plugin for KlikAanKlikUit outle ...

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

开源软件名称:

robertklep/homebridge-klikaanklikuit

开源软件地址:

https://github.com/robertklep/homebridge-klikaanklikuit

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Homebridge KlikAanKlikUit plugin

This is a plugin for Homebridge to allow controlling your KlikAanKlikUit devices. This plugin is meant to run on Raspberry Pi's (or boards with a similar GPIO setup), using a cheap 433Mhz transmitter (see this page for more information on how to connect the transmitter to your Raspberry Pi).

DISCLAIMER: this plugin is not in any way endorsed by, or related to, COCO International B.V. or Trust International B.V.

Installation

$ npm i homebridge-klikaanklikuit -g

Homebridge plugins need to be installed globally, so the -g is mandatory. You may need to use sudo as well.

Configuration

First, you need a working Homebridge installation.

Once you have that working, edit ~/.homebridge/config.json and add a new platform containing accessories:

"platforms" : [{
  "platform" : "KlikAanKlikUit",
  "driver"   : {
    "type" : "rpi",
    "pin"  : 8
  },
  "accessories" : [
    {
      "name"     : "Light Kitchen",
      "type"     : "Lightbulb",
      "dimmable" : true,
      "address"  : "C",
      "device"   : "2"
    },
    {
      "name"     : "Outlet Garage",
      "type"     : "Outlet",
      "address"  : "A",
      "device"   : "1"
    },
    {
      "name"     : "LED lamp",
      "type"     : "Lightbulb",
      "dimmable" : true,
      "address"  : 1337,
      "device"   : 0
    }
  ]
}, ...]

There is only one supported driver, rpi. The pin property reflects the physical GPIO pin that the 433Mhz transmitter is connected to. The default is pin 11 (which is GPIO17).

The plugin supports both old-style (configurable through a rotary switch) and new-style (self-learning) KlikAanKlikUit devices. Old-style devices are addressed using a string (A, B, ...) and a device number. New-style devices are addressed using a number, which is either the unique code of your remote, or a code that you can pick yourself. In case of the latter, you need your device to learn the new code (put it in learning mode and send the "On" command from the Home app).

Dimming is only supported for new-style devices.

Only supports Homebridge services that respond to the "On" characteristic (which are "Outlet", "Lightbulb" and "Switch"). The service for each device it set through the type property.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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