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