[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 <host> --pairing-token <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 <sceneId>node scripts/geeklink-home.js device control <catalogDeviceId> ...When the user asks for:
catalog devices --refreshcatalog scenes --refreshcatalog_device_id (for example 吊灯 under a panel), then run device control <id> --power ondevice control <id> --power on --temperature 26 --mode cool --fan-speed highscene_id, then run scene activate <sceneId>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 包装脚本完成登录、列表查询、场景执行和设备控制。先在 Geeklink App 的网关详情页打开 AI技能接入 页面。
记录页面展示的 gatewayHost 和 pairingToken。
首次使用先执行: bash
node scripts/geeklink-home.js login --host <host> --pairing-token <token>
然后按需执行:
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 <sceneId>node scripts/geeklink-home.js device control <catalogDeviceId> ...catalog devices --refreshcatalog scenes --refreshcatalog_device_id,再执行 device control <id> --power ondevice control <id> --power on --temperature 26 --mode cool --fan-speed highscene_id,再执行 scene activate <sceneId>geeklink_get_device_stategeeklink_get_recent_events不要猜测 catalog_device_id。如果设备匹配不确定,先列出设备再确认。对于多路面板,优先使用展开后的子设备名,例如 吊灯、 筒灯,不要只盯着父设备名。
0.1.0ownerId 为 lintertion。