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

timschuerewegen/homebridge-nikobus: Nikobus platform plugin for Homebridge (http ...

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

开源软件名称:

timschuerewegen/homebridge-nikobus

开源软件地址:

https://github.com/timschuerewegen/homebridge-nikobus

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-nikobus

Nikobus platform plugin for Homebridge (https://github.com/nfarina/homebridge)

Installation

  1. Install Homebridge.
    • npm install -g homebridge
  2. Install this plugin.
    • npm install -g homebridge-nikobus
  3. Configure the plugin by editing your Homebridge configuration file (config.json).
    • see sample-config.json in this repository for an example
  4. Start Homebridge

Configuration

See sample-config.json in this repository for a complete example.

This is the syntax for the Nikobus platform:

{
	"platforms": [
		{
			"platform": "Nikobus",
			"name": "Nikobus",
			"port": "/dev/ttyS0",
			"loglevel": 0,
			"modules": [
				...
			]
		}
	]
}
  • platform has to be Nikobus
  • name can be anything
  • port is the name of the serial port
  • loglevel is the log level (0, 1, 2, ...)
  • modules is an array of modules

Switch module

This is the syntax for a Switch module:

{
	"type": "switch",
	"name": "Switch Module 1",
	"address": "1234",
	"model": "05-000-02",
	"outputs": [
    	...
	]
}
  • type has to be switch
  • name can be anything
  • address is the address of the module
  • model can be anything
  • outputs is an array of outputs

This is the syntax for an output:

{
	"number": 3,
	"name": "Light 2",
	"service": "lightbulb"
}
  • number is the number of the output (1, 2, 3, ...)
  • name can be anything
  • service has to be lightbulb or switch

Pushbutton module

This is the syntax for a Pushbutton module:

{
	"type": "pushbutton",
	"name": "Pushbutton 1",
	"address": "123456",
	"model": "05-000-02",
	"buttons": [
    	...
	]
}
  • type has to be pushbutton
  • name can be anything
  • address is the address of the module
  • model can be anything
  • buttons is an array of buttons

This is the syntax for a button:

{
	"number": "A",
	"name": "Television On",
	"service": "lightbulb"
}
  • number is the number of the button (has to be A, B, C, D with an optional 1 or 2 prefix)
  • name can be anything
  • service has to be lightbulb or switch



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
edubai/Gogogate2: Configuration files for homebridge-garagedoor-command (Homebri ...发布时间:2022-06-17
下一篇:
wso2/homebrew-wso2发布时间: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