| 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-cli with 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
dyson off
Fan Control
dyson fan speed 5
dyson fan speed auto
dyson fan oscillate on
dyson fan oscillate on -a 90
dyson fan oscillate off
Heat Control (Hot+Cool models)
dyson heat on
dyson heat off
dyson heat target 22
Other
dyson night on
dyson night off
dyson status
dyson status --json
Multiple Devices
Use -d <name> to target a specific device:
dyson on -d "Bedroom"
dyson fan speed auto -d "Office"
Common Patterns
dyson on && dyson fan speed auto
dyson heat on && dyson heat target 23
dyson on && dyson fan speed 3 && dyson fan oscillate on -a 45
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.