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

szokeptr/homebridge-tradfri-plugin: Ikea Tradfri plugin for Homebridge

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

开源软件名称:

szokeptr/homebridge-tradfri-plugin

开源软件地址:

https://github.com/szokeptr/homebridge-tradfri-plugin

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-tradfri-plugin

npm version

Ikea Tradfri Gateway plugin for Homebridge.

Supported features:

  • automatically discover your lights and list them
  • turn on and off the lightbulbs
  • adjust brightness
  • adjust color temperature (far from perfect, better solutions than estimating the temperature from hue/saturation are welcome!)
  • NEW: color temperature can be adjusted gradually, not just the 3 predefined values.
  • NEW: support for outlets

Brightness and Color

Dependencies

The plugin talks to your gateway through COAP protocol, so you'll need to compile libcoap yourself in order to get going. Instructions for macOS (you need homebrew or some other package manager installed):

brew install libtool

git clone --recursive https://github.com/obgm/libcoap.git
cd libcoap
git checkout dtls
git submodule update --init --recursive
./autogen.sh
./configure --disable-documentation --disable-shared
make
sudo make install

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-tradfri-plugin
  3. Update your configuration file. See the sample below.

Configuration

You just need to add the platform to your config.json as shown below:

"platforms": [
...
{
  "platform": "IkeaTradfri",
  "name": "Tradfri",
  "host": "192.168.x.x",
  "key": "PSK",
  "ignoreBulbs": false // set to true to hide bulbs
}
],

Of course, you will need to add the IP address of the Ikea gateway and the key, which is printed on the bottom of it.

Contributing

The source can be found in the src/ folder. The project is using rollup to bundle the source files. You just need to run npm run build to get it bundled. Don't forget to install the devDependencies too!

Todo

  • improve color temperature conversion
  • tests

Credit

Thanks to everyone discussing this in this issue: bwssytems/ha-bridge#570

Also, special thanks to stenehall for his project, homebridge-ikea which got me starting.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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