openhue

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

OpenHue CLI

OpenHue CLI

Use
openhue
to control Hue lights and scenes via a Hue Bridge.
Setup
  • Discover bridges:
    openhue discover
  • Guided setup:
    openhue setup
Read
  • openhue get light --json
  • openhue get room --json
  • openhue get scene --json
Write
  • Turn on:
    openhue set light <id-or-name> --on
  • Turn off:
    openhue set light <id-or-name> --off
  • Brightness:
    openhue set light <id> --on --brightness 50
  • Color:
    openhue set light <id> --on --rgb #3399FF
  • Scene:
    openhue set scene <scene-id>
Notes
  • You may need to press the Hue Bridge button during setup.
  • Use
    --room "Room Name"
    when light names are ambiguous.
使用
openhue
通过Hue Bridge控制Hue灯光和场景。
设置
  • 发现桥接器:
    openhue discover
  • 引导式设置:
    openhue setup
读取操作
  • openhue get light --json
  • openhue get room --json
  • openhue get scene --json
写入操作
  • 开启灯光:
    openhue set light <id-or-name> --on
  • 关闭灯光:
    openhue set light <id-or-name> --off
  • 调节亮度:
    openhue set light <id> --on --brightness 50
  • 设置颜色:
    openhue set light <id> --on --rgb #3399FF
  • 调用场景:
    openhue set scene <scene-id>
注意事项
  • 设置过程中可能需要按下Hue Bridge上的按钮。
  • 当灯光名称不明确时,使用
    --room "Room Name"
    参数。