← 返回
未分类 Key

Xiaomi Air Purifier

Monitor and control Xiaomi Air Purifier 4 Lite via Mi Cloud. Use when asked to check air quality, humidity, purifier status, turn on/off the air purifier, or...
通过米云监控并控制小米空气净化器4 Lite。适用于查询空气质量、湿度、净化器状态、开关空气净化器等操作。
radyakaze radyakaze 来源
未分类 clawhub v1.1.2 1 版本 99925.4 Key: 需要
★ 0
Stars
📥 1,340
下载
💾 0
安装
1
版本
#latest

概述

Xiaomi Air Purifier Control

Control and monitor Xiaomi Air Purifier 4 Lite (zhimi.airp.rmb1) via Xiaomi Cloud API. Supports multiple devices and room-based targeting.

Setup

  1. Install dependencies:
  2. cd xiaomi-air-purifier && pnpm install
    
  1. Login to Mi Cloud (OTP will be sent via SMS/Email):
  2. pnpm exec xmihome login -u <email/phone> -p <password> -c <country>
    

Supported countries: sg, ru, us, cn

  1. List devices to verify discovery:
  2. node scripts/purifier.js devices
    

Usage

Commands can be targeted by Room Name, Device Name, or DID. If no target is provided, it uses the selected default or the only available device.

node scripts/purifier.js status [room]      # Check status (e.g., status Bedroom)
node scripts/purifier.js status-full [room] # Show full status (incl. filter)
node scripts/purifier.js on [room]          # Power on
node scripts/purifier.js off [room]         # Power off
node scripts/purifier.js mode <0-2> [room]  # 0=Auto, 1=Sleep, 2=Favorite
node scripts/purifier.js level <0-14> [room]# Fan speed (Favorite mode)
node scripts/purifier.js brightness <0-2> [room]
node scripts/purifier.js buzzer <on|off> [room]
node scripts/purifier.js lock <on|off> [room]

Quick Reference

PropertysiidpiidTypeDescription
-----------------------------------------
Power21boolOn/Off
Mode24int0=Auto, 1=Sleep, 2=Favorite
Humidity31intRelative humidity (%)
PM2.534intAir quality (μg/m³)
Temperature37floatTemperature (°C)
Filter Life41intFilter remaining (%)
Buzzer61boolNotification sound on/off
Child Lock81boolPhysical button lock
Fan Level911int0-14 (Favorite mode)
Brightness132int0=Off, 1=Dim, 2=On

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-05-12 04:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 243 📥 30,632
life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 56 📥 85,112
life-service

healthcheck

stellarhold170nt
使用 JSON 文件存储追踪饮水和睡眠
★ 11 📥 30,118