Geeklink Home Control | Geeklink Home 局域网控制
[English] | 中文
English
Use the local Geeklink Home gateway over LAN through the bundled self-contained Node.js skill runtime.
Features
- - Local LAN access to the Geeklink Home gateway
- Pairing-token based authentication
- Device catalog, scene catalog, and state snapshot access
- Background watcher with recent event and single-device state queries
- Scene activation and local device control
- Multi-gang panels are expanded into practical sub-devices such as
吊灯 and INLINECODE1 - Packaged around the bundled
vendor/geeklink-lan-cli.js runtime - The persistent runtime keeps a single watcher instance per loaded skill
Setup
- 1. Ensure
vendor/geeklink-lan-cli.js exists in the installed skill package. - Open the gateway details page in the Geeklink app and go to
AI Skill Access. - Copy
gatewayHost and pairingToken from that page. - Use the cross-platform Node wrapper scripts in
scripts/ to query devices, scenes, states, and execute actions. - When loaded by ClawHub/OpenClaw as a skill runtime, the watcher is started automatically and tools can read recent events.
Core Workflow
- 1. Open the gateway details page in the Geeklink app and enter
AI Skill Access. - Read the
gatewayHost and pairingToken shown on that page. - Run
node scripts/geeklink-home.js login --host <host> --pairing-token <token> once to cache session. - Use:
-
node scripts/geeklink-home.js catalog devices --refresh
-
node scripts/geeklink-home.js catalog devices --query 吊灯 --refresh
-
node scripts/geeklink-home.js catalog scenes --refresh
-
node scripts/geeklink-home.js state snapshot --refresh
-
node scripts/geeklink-home.js scene activate <sceneId>
- INLINECODE17
Natural Language Mapping
When the user asks for:
- - "What devices do I have?" -> run INLINECODE18
- "What scenes are available?" -> run INLINECODE19
- "Turn on living room light" -> find the matching expanded
catalog_device_id (for example 吊灯 under a panel), then run INLINECODE22 - "Set bedroom AC to 26 cool high" -> INLINECODE23
- "Run away mode" -> find
scene_id, then run INLINECODE25 - "Is the living room light on?" -> use INLINECODE26
- "What changed recently?" -> use INLINECODE27
Do not guess catalog_device_id. Always list devices first if the mapping is unclear. When a panel exposes named roads, prefer the expanded road device like 吊灯 instead of the parent panel name.
Release Notes
- - Version: INLINECODE30
- Validated:
- Device catalog
- Scene catalog
- Local device control
- State snapshot
- Single-watcher recent event tracking
- - ClawHub publisher owner id for this package is
lintertion.
中文说明
通过内置的自包含 Node.js 运行时,在局域网内直接访问 Geeklink Home 网关。
功能
- - 在局域网内访问 Geeklink Home 网关
- 基于 pairing token 的认证
- 读取设备目录、场景目录、状态快照
- 提供后台 watcher、最近事件和单设备状态查询
- 执行场景和本地设备控制
- 以
vendor/geeklink-lan-cli.js 为底层运行时 - 多路面板会展开成更符合用户习惯的子设备,例如
吊灯、 INLINECODE34 - 常驻 skill runtime 只会启动一个 watcher 实例
使用前准备
- 1. 确认已安装的 skill 包中存在
vendor/geeklink-lan-cli.js。 - 在 Geeklink App 的网关详情页进入
AI技能接入 页面。 - 在该页面查看并复制
gatewayHost 和 pairingToken。 - 通过
scripts/ 中的跨平台 Node 包装脚本完成登录、列表查询、场景执行和设备控制。 - 如果由 ClawHub/OpenClaw 以常驻 skill runtime 加载,watcher 会自动启动,并支持读取最近事件。
建议工作流
- 1. 先在 Geeklink App 的网关详情页打开
AI技能接入 页面。 - 记录页面展示的
gatewayHost 和 pairingToken。 - 首次使用先执行:
node scripts/geeklink-home.js login --host <host> --pairing-token <token>
- 4. 然后按需执行:
-
node scripts/geeklink-home.js catalog devices --refresh
-
node scripts/geeklink-home.js catalog devices --query 吊灯 --refresh
-
node scripts/geeklink-home.js catalog scenes --refresh
-
node scripts/geeklink-home.js state snapshot --refresh
-
node scripts/geeklink-home.js scene activate <sceneId>
- INLINECODE48
自然语言意图映射
- - “我有哪些设备” -> INLINECODE49
- “有哪些场景” -> INLINECODE50
- “打开客厅主灯” -> 先找到展开后的子设备
catalog_device_id,再执行 INLINECODE52 - “卧室空调调到 26 度制冷高速” -> INLINECODE53
- “执行离家模式” -> 找到
scene_id,再执行 INLINECODE55 - “客厅灯现在开着吗” -> INLINECODE56
- “最近发生了什么变化” -> INLINECODE57
不要猜测 catalog_device_id。如果设备匹配不确定,先列出设备再确认。对于多路面板,优先使用展开后的子设备名,例如 吊灯、筒灯,不要只盯着父设备名。
发布说明
- 设备目录
- 场景目录
- 本地设备控制
- 状态快照
- 单实例 watcher 最近事件跟踪
- - 该包发布到 ClawHub 时使用的
ownerId 为 lintertion。
技能名称: geeklink-home
详细描述:
Geeklink Home Control | Geeklink Home 局域网控制
[English] | 中文
English
通过内置的自包含 Node.js 技能运行时,在局域网内使用本地 Geeklink Home 网关。
功能
- - 在局域网内访问 Geeklink Home 网关
- 基于配对令牌的认证
- 设备目录、场景目录和状态快照访问
- 后台监视器,支持最近事件和单设备状态查询
- 场景激活和本地设备控制
- 多路面板会展开为实用的子设备,例如吊灯和筒灯
- 围绕内置的 vendor/geeklink-lan-cli.js 运行时打包
- 持久化运行时为每个加载的技能维护一个监视器实例
设置
- 1. 确保已安装的技能包中存在 vendor/geeklink-lan-cli.js。
- 在 Geeklink 应用中打开网关详情页面,进入 AI 技能接入。
- 从该页面复制 gatewayHost 和 pairingToken。
- 使用 scripts/ 中的跨平台 Node 包装脚本查询设备、场景、状态并执行操作。
- 当被 ClawHub/OpenClaw 作为技能运行时加载时,监视器会自动启动,工具可以读取最近事件。
核心工作流
- 1. 在 Geeklink 应用中打开网关详情页面,进入 AI 技能接入。
- 读取该页面显示的 gatewayHost 和 pairingToken。
- 运行 node scripts/geeklink-home.js login --host --pairing-token 一次以缓存会话。
- 使用:
- node scripts/geeklink-home.js catalog devices --refresh
- node scripts/geeklink-home.js catalog devices --query 吊灯 --refresh
- node scripts/geeklink-home.js catalog scenes --refresh
- node scripts/geeklink-home.js state snapshot --refresh
- node scripts/geeklink-home.js scene activate
- node scripts/geeklink-home.js device control ...
自然语言映射
当用户询问:
- - 我有哪些设备? -> 运行 catalog devices --refresh
- 有哪些场景可用? -> 运行 catalog scenes --refresh
- 打开客厅灯 -> 找到匹配的展开后的 catalogdeviceid(例如面板下的吊灯),然后运行 device control --power on
- 将卧室空调设置为 26 度制冷高速 -> device control --power on --temperature 26 --mode cool --fan-speed high
- 执行离家模式 -> 找到 sceneid,然后运行 scene activate
- 客厅灯开着吗? -> 使用 geeklinkgetdevicestate
- 最近发生了什么变化? -> 使用 geeklinkgetrecent_events
不要猜测 catalogdeviceid。如果映射不明确,始终先列出设备。当面板暴露命名回路时,优先使用展开后的回路设备,如吊灯,而不是父面板名称。
发布说明
- 设备目录
- 场景目录
- 本地设备控制
- 状态快照
- 单监视器最近事件跟踪
- - 此包的 ClawHub 发布者所有者 ID 为 lintertion。
中文说明
通过内置的自包含 Node.js 运行时,在局域网内直接访问 Geeklink Home 网关。
功能
- - 在局域网内访问 Geeklink Home 网关
- 基于配对令牌的认证
- 读取设备目录、场景目录、状态快照
- 提供后台监视器、最近事件和单设备状态查询
- 执行场景和本地设备控制
- 以 vendor/geeklink-lan-cli.js 为底层运行时
- 多路面板会展开成更符合用户习惯的子设备,例如 吊灯、筒灯
- 常驻技能运行时只会启动一个监视器实例
使用前准备
- 1. 确认已安装的技能包中存在 vendor/geeklink-lan-cli.js。
- 在 Geeklink 应用的网关详情页进入 AI 技能接入 页面。
- 在该页面查看并复制 gatewayHost 和 pairingToken。
- 通过 scripts/ 中的跨平台 Node 包装脚本完成登录、列表查询、场景执行和设备控制。
- 如果由 ClawHub/OpenClaw 以常驻技能运行时加载,监视器会自动启动,并支持读取最近事件。
建议工作流
- 1. 先在 Geeklink 应用的网关详情页打开 AI 技能接入 页面。
- 记录页面展示的 gatewayHost 和 pairingToken。
- 首次使用先执行:
bash
node scripts/geeklink-home.js login --host --pairing-token
- 4. 然后按需执行:
- node scripts/geeklink-home.js catalog devices --refresh
- node scripts/geeklink-home.js catalog devices --query 吊灯 --refresh
- node scripts/geeklink-home.js catalog scenes --refresh
- node scripts/geeklink-home.js state snapshot --refresh
- node scripts/geeklink-home.js scene activate
- node scripts/geeklink-home.js device control ...
自然语言意图映射
- - 我有哪些设备 -> catalog devices --refresh
- 有哪些场景 -> catalog scenes --refresh
- 打开客厅主灯 -> 先找到展开后的子设备 catalogdeviceid,再执行 device control --power on
- 卧室空调调到 26 度制冷高速 -> device control --power on --temperature 26 --mode cool --fan-speed high
- 执行离家模式 -> 找到 sceneid,再执行 scene activate
- 客厅灯现在开着吗 -> geeklinkgetdevicestate
- 最近发生了什么变化 -> geeklinkgetrecent_events
不要猜测 catalogdeviceid。如果设备匹配不确定,先列出设备再确认。对于多路面板,优先使用展开后的子设备名,例如 吊灯、筒灯,不要只盯着父设备名。
发布说明
- 设备目录
- 场景目录
- 本地设备控制
- 状态快照
- 单实例监视器最近事件跟踪
- - 该包发布到 ClawHub 时使用的 ownerId 为 lintertion。