简介
通过本地MQTT协议控制Dyson空气净化风扇,支持风速调节、温度控制、摆头等功能,需与设备处于同一WiFi网络。
原始描述
Control Dyson air purifiers, fans, and heaters via local MQTT. Use when asked to control Dyson devices, adjust fan speed, set temperature/heat, enable oscillation, or check room temperature/humidity. Requires being on the same WiFi network as the device.
通过你的 Agent 添加
安装目录:dyson-cli/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: dyson-cli description: Control Dyson air purifiers, fans, and heaters via local MQTT. Use when asked to control Dyson devices, adjust fan speed, set temperature/heat, enable oscillation, or check room temperature/humidity. Requires being on the same WiFi network as the device.
Dyson CLI
Prerequisites
- CLI installed at
~/dyson-cliwith venv - Must be on same WiFi as the Dyson - local MQTT only, won't work remotely
Quick check:
cd ~/dyson-cli && source .venv/bin/activate && dyson list --check
Commands
Power
dyson on # Turn on
dyson off # Turn off
Fan Control
dyson fan speed 5 # Speed 1-10
dyson fan speed auto # Auto mode
dyson fan oscillate on # Enable oscillation
dyson fan oscillate on -a 90 # 90° sweep (45/90/180/350)
dyson fan oscillate off # Disable oscillation
Heat Control (Hot+Cool models)
dyson heat on # Enable heating
dyson heat off # Disable heating
dyson heat target 22 # Set target temp (°C)
Other
dyson night on # Night mode on
dyson night off # Night mode off
dyson status # Show current state
dyson status --json # JSON output
Multiple Devices
Use -d <name> to target a specific device:
dyson on -d "Bedroom"
dyson fan speed auto -d "Office"
Common Patterns
# "Turn on the Dyson and set to auto"
dyson on && dyson fan speed auto
# "Heat to 23 degrees"
dyson heat on && dyson heat target 23
# "Turn on with gentle oscillation"
dyson on && dyson fan speed 3 && dyson fan oscillate on -a 45
# "What's the current temperature?"
dyson status --json | python3 -c "import sys,json; d=json.load(sys.stdin); print(f\"Temp: {d['temperature']-273:.1f}°C, Humidity: {d['humidity']}%\")"
Troubleshooting
If commands fail:
- Check device is online:
dyson list --check - Ensure on same WiFi network as the Dyson
- Re-run setup if credentials expired:
dyson setup
For installation, device setup, and full documentation, see README.md.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。