SuperAPI AI 工具集

openhue

办公与效率

查看项目

更新于 10-16 02:32

技能介绍

用途:通过终端控制 Philips Hue 灯具、场景和房间,适合在 Hermes 等环境中用命令调节灯光。

主要能力:列出灯具、房间、场景;开关灯;调节亮度(0-100)、色温(153-500 mirek)和颜色(名称或十六进制);按房间批量控制;调用场景;组合预设如睡前、工作、观影模式。

安装:Linux 使用发布包解压安装,命令为 curl -sL "https://github.com/openhue/openhue-cli/releases/latest/download/openhue_Linux_x86_64.tar.gz" | tar -xz -C ~/.hermes/cache/scratch openhue && install -m 0755 ~/.hermes/cache/scratch/openhue ~/.local/bin/openhue,ARM64 用 openhue_Linux_arm64.tar.gz;macOS 用 brew install openhue/cli/openhue-cli。

用法示例:openhue get light 列出灯具;openhue set light "Bedroom Lamp" --on --brightness 50 调亮度;--temperature 300 调色温;--color red 或 --rgb "#FF5500" 调色;openhue set room "Bedroom" --off 关房间;openhue set scene "Relax" --room "Bedroom" 调场景。

限制:桥接器须与运行机器在同一局域网;首次运行需物理按下 Hue Bridge 按钮授权;颜色仅支持彩色灯泡;灯具和房间名称区分大小写,可用 get light 核对;可与 cron 配合做定时照明。