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

knalli/homebridge-pilight: Accessory plugin for Homebridge allowing to manage an ...

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

开源软件名称:

knalli/homebridge-pilight

开源软件地址:

https://github.com/knalli/homebridge-pilight

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Homebridge pilight Plugin

npm version Build Status License Greenkeeper badge

This is an accessory plugin for Homebridge allowing to manage and control pilight devices.

What does this plugin do?

This plugin only communications to the pilight daemon via the WebSocket API exposed by pilight itself. You should be sure to enable this api and the configured port is not blocked by any firewall.

Install

Important: This plugin is using ES6/ES2015. Please use an appropriate environment like NodeJS v4 or higher.

If you have already installed homebridge globally, just install

npm install -g homebridge-pilight

Alternativly, add the dependency into your local project with

npm install -S homebridge-pilight

Configuration

The plugin registers itself as pilight. You have the following options:

Option Default
host localhost
port 5001
device lamp
sharedWS false
type Switch

If you are running a pilight daemon on the same machine, you will probably skip both host and port.

The optional setting sharedWS = true will share a single connection for devices addressing the same pilight instance.

The Setting type = "type" can be "Switch", "TemperatureSensor", "HumiditySensor" or "Dimmer".

Additionally you have the Homebridge options accessory (for the actual plugin) and name (for representation later).

Example config.json

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },
  "description": "This is an example configuration file with pilight plugin.",
  "accessories": [
    {
      "accessory": "pilight",
      "name": "My lamp",
      "device": "lamp",
      "sharedWS": false,
      "type": "Switch"
    }
  ],
  "platforms": [
  ]
}

License

Copyright 2017-2018 by Jan Philipp. Licensed under MIT.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
sleemanj/pcb-test-pattern: A test pattern for checking your Homebrew PCB efforts ...发布时间:2022-06-17
下一篇:
bagonyi/homebrew-formulae发布时间: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