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

@homelib/xiaomi

v0.0.0-wip.ee82b974e462

Published

[![NPM version](https://img.shields.io/npm/v/@homelib/xiaomi?color=%23cb3837&style=flat-square)](https://www.npmjs.com/package/@homelib/xiaomi) [![MIT License](https://img.shields.io/badge/license-MIT-999999?style=flat-square)](../../LICENSE) [![Discord](

Readme

NPM version MIT License Discord

@homelib/xiaomi

HomeLib 的 Xiaomi MIoT provider,提供米家账号授权、设备发现、绑定、状态同步与控制。

支持的设备

| 设备 | MIoT service | 支持能力 | | ------------ | -------------------------------------------- | ----------------------------------------------------------------- | | 灯 | light | 开关;可选亮度、色温 | | 空调 | air-conditioner | 开关;可选运行模式、自动/分档风速、目标温度、目标湿度、室温、湿度 | | 除湿机 | dehumidifier | 开关;可选运行模式、目标湿度、温度、湿度、水箱保护状态 | | 风扇 | fan | 开关;可选普通/自然风模式、四档风速、水平摇头 | | 宠物喂食器 | pet-feeder | 粮仓余粮状态、实时食盆余粮克数、按份放粮 | | 温湿度传感器 | temperature-humidity-sensor, environment | 温度、相对湿度 | | 运动传感器 | motion-sensor | 人体移动状态 |

除特别注明外,适配不限制设备型号或 MIoT spec revision。空调风速目前匹配已验证的 xiaomi-mt*xiaomi-rr6r00;除湿机水箱保护状态目前匹配已验证的 xiaomi.derh.13l;宠物喂食器目前匹配已验证且 spec 结构相同的 xiaomi.feeder.pi2001xiaomi.feeder.iv2001;运动传感器按 service/event 结构匹配,目前已验证 lumi.motion.bmgl01。每项能力仅在设备公开的 service、属性类型、取值和访问方式均匹配时启用。

同一类设备可能因型号或固件不同而公开不同能力;HomeLib 只启用设备实际支持且能够可靠同步的部分。

License

MIT License.