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 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-dooyashade

v1.0.7

Published

Dooya Shade RS485 TO TCP

Readme

Homebridge Dooya Shade Plugin

这个插件可以让你通过HomeKit控制Dooya智能窗帘电机。支持开、关、暂停和位置调节等功能。

功能特点

  • 支持多个窗帘电机的控制
  • 实时反馈窗帘位置状态
  • 自动重连机制,确保稳定连接
  • 支持窗帘位置百分比调节
  • TCP通信,支持自定义端口

安装

npm install -g homebridge-dooyashade

配置

在Homebridge的配置文件中(config.json)添加以下配置:

{
  "platforms": [
    {
      "platform": "DooyaShade",
      "name": "DooyaShade",
      "host": "192.168.1.xxx",
      "port": 8899,
      "shades": [
        {
          "name": "客厅窗帘",
          "address": 1
        },
        {
          "name": "卧室窗帘",
          "address": 2
        }
      ]
    }
  ]
}

配置说明

  • platform: 必须设置为 "DooyaShade"
  • name: 平台名称,可自定义
  • host: 网关IP地址
  • port: 网关TCP端口号,默认8899
  • shades: 窗帘设备列表
    • name: 窗帘名称,将显示在HomeKit中
    • address: 窗帘地址码,范围1-255

使用说明

  1. 安装插件后,窗帘设备会自动添加到HomeKit
  2. 在Home应用中可以:
    • 点击开/关按钮完全打开或关闭窗帘
    • 通过滑块调节窗帘开合度
    • 查看窗帘当前位置状态

故障排除

  1. 连接失败

    • 检查网关IP地址和端口是否正确
    • 确保网关和Homebridge在同一网络中
    • 检查防火墙设置是否允许TCP连接
  2. 窗帘控制无响应

    • 确认窗帘地址码设置正确
    • 检查窗帘是否处于学习模式
    • 重启Homebridge服务

支持

如果你在使用过程中遇到问题,可以:

  1. 查看Homebridge日志获取详细错误信息
  2. 在GitHub上提交Issue
  3. 通过Pull Request贡献代码

开发

# 克隆项目
git clone https://github.com/yourusername/homebridge-dooyashade.git

# 安装依赖
npm install

# 编译TypeScript
npm run build

# 开发模式
npm run watch

许可

MIT License