用途:OpenHue CLI 用于通过 Hue Bridge 控制飞利浦 Hue 灯具与场景,适合在命令行或脚本中管理灯光。
主要能力:可发现网桥、进行引导式设置;读取灯光、房间、场景信息(支持 --json 输出);可开关灯、调节亮度、设置 RGB 颜色以及激活场景。
使用方式:发现网桥使用 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" 指定房间。其他平台、收费或效果信息暂未提供。