npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-yeelight-screen-bar-pro

v0.0.1-beta.9

Published

Connects your Yeelight Screen Bar Pro to HomeKit via HomeBridge

Downloads

24

Readme

Homebridge Plugin for Yeelight Sreen Bar Pro

This plugin will help you connect your Yeelight Screen Bar Pro to Homebridge.

本插件可以将您的易来显示器挂灯 Pro 连接到 Homebridge。

Your screen bar should looks like this one:

你的挂灯应该看起来像这样:

Supported Devices 支持设备列表

Yeelight Screen Bar Pro 易来显示器挂灯

This plugin is originally made for the pro version. All of the features could be supported.

本插件是专为 Pro 版本开发的,因此所有功能在 Pro 版挂灯上均可使用。

Yeelight Screen Bar (Non-pro, standard version) 易来显示器挂灯标准版

(@ZhibinLiIntel)[https://github.com/ZhibinLiIntel] has tested the plugin with the standard version. It should work well. See this.

(@ZhibinLiIntel)[https://github.com/ZhibinLiIntel] 在标准版上进行了测试,本插件也可以工作。参阅这个 issue

Usage 使用

Firstly, install the plugin. You might need sudo:

首先,请安装本插件,你可能需要使用 sudo

npm i -g homebridge-yeelight-screen-bar-pro

Then head to Homebridge config.json, and add a new accessory:

然后在 Homebridge 的 config.json 中添加一个插件:

{
  // ... extra configs

  "accessories": [
    // ... extra accessories

    {
      "accessory": "YeelightScreenBarPro",
      "ip": "10.0.1.5",
      "token": "the-top-secret-token"
    }
  ]
}

Now reboot Homebridge and turn to your Apple Home app.

重启 Homebridge 后,请前往 Apple Home app。

Config 配置

Fields explained:

  • ip (string, required): The IP address of the screen bar
  • token (string, required): The miio token. In case you don't know what a token is, read this
  • pollingInterval (number): How often to fetch status of the screen bar in milliseconds.
  • serial (string): Serial Number field displayed in Home app. Will use the token field if absent
  • model (string): Model field displayed in Home app
  • manufacturer: Manufacturer field in Home app
  • smoothInterval (number): The animation duration in milliseconds.
  • backgroundName (string): Name for the second light bulb accessory to control ambient light.
  • backgroundColor (boolean):
    • true: Map ambient light to a color light bulb. This lets you control the ambient color and brightness via Siri or Home app.
    • false: Map the ambient light to a switch-only bulb. You can choose the mode of ambient in MiHome app, lets you to use all of the advanced ambient modes.

配置字段如下:

  • ip (必填): 屏幕挂灯的 IP 地址
  • token (必填): miio 密钥。如果您不知道这是啥,请看这里
  • name: 展示名称,用于在 HomeKit 中现实和打日志
  • serial: Home app 中显示的序列号,如果为空,会使用上面的 token 字段
  • model: Home app 中显示的型号
  • manufacturer: Home app 中显示的制造商
  • smoothInterval (number): 切换灯光状态时的动画间隔
  • backgroundName (string): 背景灯的名称
  • backgroundColor (boolean):
    • true: 将背景灯映射为一个彩色灯。此模式下你可以用 Siri 和 Home app 来控制背景灯的颜色和亮度
    • false: 将背景灯映射到一个只能切换开/关状态的灯。你需要在米家 app 中选择背景灯的模式。此模式下你可以使用各种高级的背景样式(比如跑马灯、流光等)

Develop 本地开发

yarn
yarn watch