[English] | 中文
Use the local Geeklink Home gateway over LAN through the bundled self-contained Node.js skill runtime.
吊灯 and 筒灯vendor/geeklink-lan-cli.js runtimevendor/geeklink-lan-cli.js exists in the installed skill package.AI Skill Access.gatewayHost and pairingToken from that page.scripts/ to query devices, scenes, states, and execute actions.AI Skill Access.gatewayHost and pairingToken shown on that page.node scripts/geeklink-home.js login --host --pairing-token once to cache session.node scripts/geeklink-home.js catalog devices --refreshnode scripts/geeklink-home.js catalog devices --query 吊灯 --refreshnode scripts/geeklink-home.js catalog scenes --refreshnode scripts/geeklink-home.js state snapshot --refreshnode scripts/geeklink-home.js scene activate node scripts/geeklink-home.js device control ... When the user asks for:
catalog devices --refreshcatalog scenes --refreshcatalog_device_id (for example 吊灯 under a panel), then run device control --power on device control --power on --temperature 26 --mode cool --fan-speed high scene_id, then run scene activate geeklink_get_device_stategeeklink_get_recent_eventsDo 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.
0.1.0lintertion.通过内置的自包含 Node.js 运行时,在局域网内直接访问 Geeklink Home 网关。
vendor/geeklink-lan-cli.js 为底层运行时吊灯、筒灯vendor/geeklink-lan-cli.js。AI技能接入 页面。gatewayHost 和 pairingToken。scripts/ 中的跨平台 Node 包装脚本完成登录、列表查询、场景执行和设备控制。AI技能接入 页面。gatewayHost 和 pairingToken。```bash
node scripts/geeklink-home.js login --host
```
node scripts/geeklink-home.js catalog devices --refreshnode scripts/geeklink-home.js catalog devices --query 吊灯 --refreshnode scripts/geeklink-home.js catalog scenes --refreshnode scripts/geeklink-home.js state snapshot --refreshnode scripts/geeklink-home.js scene activate node scripts/geeklink-home.js device control ... catalog devices --refreshcatalog scenes --refreshcatalog_device_id,再执行 device control --power on device control --power on --temperature 26 --mode cool --fan-speed high scene_id,再执行 scene activate geeklink_get_device_stategeeklink_get_recent_events不要猜测 catalog_device_id。如果设备匹配不确定,先列出设备再确认。对于多路面板,优先使用展开后的子设备名,例如 吊灯、筒灯,不要只盯着父设备名。
0.1.0ownerId 为 lintertion。共 1 个版本