OpenHue CLI
使用openhue通过Hue桥接器控制Hue灯光和场景。
设置
- 发现桥接器:
openhue discover - 引导式设置:
openhue setup
读取
openhue get light --jsonopenhue get room --jsonopenhue 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桥接器上的按钮。
- 当灯光名称不明确时,请使用
--room "房间名称"参数。


微信扫一扫,打赏作者吧~
网友评论
最新评论