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

ilcato/homebridge-ifttt: Homebridge plugin for IFTTT Maker channel

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

开源软件名称:

ilcato/homebridge-ifttt

开源软件地址:

https://github.com/ilcato/homebridge-ifttt

开源编程语言:

TypeScript 100.0%

开源软件介绍:

homebridge-ifttt

Homebridge plugin for IFTTT Maker Channel

Installation

Follow the instruction in homebridge for the homebridge server installation. The plugin is published through NPM and should be installed "globally" by typing:

npm install -g homebridge-ifttt

Configuration

Remember to configure the plugin in config.json in your home directory inside the .homebridge directory.

Look for a sample config in sample.config.json.

See IFTTT Maker Channel for an explanation on how to configure an IFTTT recipe with a Maker Channel.

You need to put the IFTTT Maker channel key in the configuration file and define a set of Buttons. Every button, once pressed with a Homekit app or via Siri, will generate an IFTTT trigger on the Maker channel.

If you specify both "triggerOn" and "triggerOff" values to a button configuration, it will generate different triggers for the two different statuses of the switch.

If you only specify the "trigger" value to a button configuration, it will behave like a push button generating the trigger after the selection of the button and automatically returning to the off status.

You can send up to 3 values (IFTTT limit) along with a button press. Use "values" to specify which values to send. If you'd like to send different values for "triggerOn" and "triggerOff", use "valuesOn" and "valuesOff" respectively instead. You can also just use "valuesOn" and "valuesOff" with "trigger".

You can delay triggers using "delayOn" and "delayOff". If you have a button with "triggerOn" and "triggerOff", the actions can be delayed by "delayOn" and "delayOff" respectively.

If you have a button with only "trigger" specified, the trigger can be delayed using "delayOn".

If you leave out "delayOn" or "delayOff" it will be treated as if there is no delay. This means you can have "delayOn" without "delayOff" and vice versa or even leave both values out. All delay values are specified in seconds.

If you use the optional "stateful" config, the switch will maintain state across shutdown/reboots.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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