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