xiaomi-air-purifier
oleh radyakaze
DevOps & CloudRingkasan
Monitor and control Xiaomi Air Purifier 4 Lite via Mi Cloud.
Deskripsi
Apa yang Dilakukan Skill Ini
Controls and monitors Xiaomi Air Purifier 4 Lite via the Xiaomi Cloud API. Supports targeting devices by room name, device name, or device ID across multi-room setups. Reads PM2.5, humidity, temperature, and filter life, and adjusts power, fan mode, speed, brightness, buzzer, and child lock.
Enables scripting and automation of purifier control without opening the Mi Home app.
Kapan Menggunakannya
- Checking bedroom PM2.5 levels before sleep
- Turning on a purifier when air quality drops
- Switching fan to sleep mode at night
- Monitoring filter life remaining across devices
- Controlling purifiers in multiple rooms by name
Contoh Alur Kerja
User asks: What's the air quality in the bedroom right now?
- 1
Run the status command targeting the Bedroom room
- 2
Parse PM2.5, humidity, and temperature from the API response
- 3
Return the sensor readings to the user
Bedroom: PM2.5 12 μg/m³, Humidity 45%, Temperature 22.3°C
Persyaratan
- Xiaomi (Mi) account with Mi Cloud access
Instalasi
clawhub install radyakaze/xiaomi-air-purifierJalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.