~/dyson-cli with venvQuick check:
cd ~/dyson-cli && source .venv/bin/activate && dyson list --check
dyson on # Turn on
dyson off # Turn off
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
dyson heat on # Enable heating
dyson heat off # Disable heating
dyson heat target 22 # Set target temp (°C)
dyson night on # Night mode on
dyson night off # Night mode off
dyson status # Show current state
dyson status --json # JSON output
Use -d to target a specific device:
dyson on -d "Bedroom"
dyson fan speed auto -d "Office"
# "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']}%\")"
If commands fail:
dyson list --checkdyson setupFor installation, device setup, and full documentation, see README.md.
共 1 个版本