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

nschum/homebridge-twinkly

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

开源软件名称:

nschum/homebridge-twinkly

开源软件地址:

https://github.com/nschum/homebridge-twinkly

开源编程语言:

JavaScript 99.5%

开源软件介绍:

homebridge-twinkly

verified-by-homebridge

Unofficial Homebridge plugin for Twinkly decorative smart lights

Features

Use Siri or HomeKit automation to:

  • Turn lights on or off
  • Change brightness

A simple command line tool is also included.

Setup

  1. First set up Homebridge.
  2. Configure Twinkly using the iOS or Android app and make sure it's connected to the same network.
  3. Install homebridge-twinkly using homebridge-config-ui-x or manually using sudo npm install -g homebridge-twinkly.

Configuration options

Value Default Description
allowBrightnessControl true Adds a brightness control instead of a simple on/off switch
removeUnreachableDeviceMinutes 0 When to remove unreachable devices (0 meaning never)

The options can be configured using the UI or manually in a config.json.

Example config.json

{
  "bridge": {
    "name": ""
  },
  "platforms": [{
    "platform": "Twinkly",
    "allowBrightnessControl": true,
    "removeUnreachableDeviceMinutes": 0
  }]
}

Setup as accessory (deprecated)

Prior to version 0.4.0 all lights had to be added individually. This is still possible, but is deprecated. Use this if device discovery doesn't work in your network.

You'll need to find the IP address of each light using the Twinkly app. It might be useful to have your router always assign it the same IP address.

Configuration options

Value Default Description
accessory (required) Identifies module and must be "Twinkly"
name (required) The name for light as it will appear in HomeKit
ip (required) The IP address of the lights.
allowBrightnessControl true Adds a brightness control instead of a simple on/off switch

The options can be configured using the UI or manually in a config.json. Multiple lights are can be added as individual accessories.

Example config.json

{
  "bridge": {
    "name": ""
  },
  "accessories": [{
    "accessory": "Twinkly",
    "name": "Christmas Lights",
    "ip": "192.168.4.1",
    "allowBrightnessControl": true
  }]
}

Command line

Discover devices on network:

twinkly --discover

Turn on:

twinkly --mode movie

Turn off:

twinkly --mode off

Set brightness to 50%:

twinkly --brightness 50

Blink:

twinkly -c 128,0,0 -c 0,255,0 -c 64,0,6 --effect blink --delay 500

Acknowledgements

Thanks to Pavol Babinčák for documenting the private API.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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