← 返回 Skills 市场
kaiofreitas

LG ThinQ

作者 hikaio · GitHub ↗ · v1.0.0
darwinlinux ⚠ suspicious
1992
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install lg-thinq
功能描述
Control LG smart appliances via ThinQ API. Use when user asks about their fridge, washer, dryer, AC, or other LG appliances. Supports checking status, changing temperature, toggling modes (express, eco), and monitoring door status.
使用说明 (SKILL.md)

LG ThinQ Skill

Control LG smart home appliances via the ThinQ Connect API.

Setup

  1. Get a Personal Access Token from https://connect-pat.lgthinq.com
  2. Store token: echo "YOUR_TOKEN" > ~/.config/lg-thinq/token
  3. Store country code: echo "MX" > ~/.config/lg-thinq/country

Quick Commands

All scripts are in the skill's scripts/ directory. Activate venv first:

cd ~/clawd && source .venv/bin/activate

List Devices

python3 skills/lg-thinq/scripts/thinq.py devices

Get Device Status

python3 skills/lg-thinq/scripts/thinq.py status \x3Cdevice_id>
python3 skills/lg-thinq/scripts/thinq.py status fridge  # alias

Control Refrigerator

# Set fridge temperature (0-6°C)
python3 skills/lg-thinq/scripts/thinq.py fridge-temp 3

# Set freezer temperature (-24 to -14°C typical)
python3 skills/lg-thinq/scripts/thinq.py freezer-temp -15

# Toggle express fridge
python3 skills/lg-thinq/scripts/thinq.py express-fridge on|off

# Toggle express freeze
python3 skills/lg-thinq/scripts/thinq.py express-freeze on|off

# Toggle eco mode
python3 skills/lg-thinq/scripts/thinq.py eco on|off

Washer/Dryer Status

python3 skills/lg-thinq/scripts/thinq.py status washer
python3 skills/lg-thinq/scripts/thinq.py status dryer

Supported Devices

Device Status Control
Refrigerator ✅ temp, door, modes ✅ temp, express, eco
WashTower Washer ✅ state, time ⚠️ limited
WashTower Dryer ✅ state, time ⚠️ limited
Air Conditioner ✅ temp, mode ✅ temp, mode, fan

Temperature Ranges

  • Fridge: 0°C to 6°C
  • Freezer: -24°C to -14°C (varies by model)

Error Handling

  • NOT_CONNECTED_DEVICE: Device offline, check WiFi or open ThinQ app
  • INVALID_COMMAND_ERROR: Wrong command format or value out of range
  • NOT_PROVIDED_FEATURE: Feature not supported by this model

Natural Language Examples

User says → Action:

  • "check my fridge" → status fridge
  • "set fridge to 5 degrees" → fridge-temp 5
  • "turn on express freeze" → express-freeze on
  • "is the fridge door open?" → status fridge (check doorStatus)
  • "how's the washer doing?" → status washer
安全使用建议
This skill appears to do what it says: it talks to LG ThinQ via the thinqconnect library and uses a Personal Access Token you supply. Before installing, verify the token source (https://connect-pat.lgthinq.com) and keep the token private. Ensure you install the Python dependencies (pip install thinqconnect aiohttp) in a controlled virtualenv; SKILL.md's virtualenv path looks inconsistent — confirm where you keep your venv. Check and restrict permissions on ~/.config/lg-thinq/token and be aware the skill will cache device metadata at ~/.config/lg-thinq/devices.json. If you want stronger protection, consider using a secrets manager or environment-restricted token rather than storing long-lived PATs in plaintext.
功能分析
Type: OpenClaw Skill Name: lg-thinq Version: 1.0.0 The skill is designed to control LG ThinQ appliances and generally appears benign, using standard configuration practices and a legitimate third-party library. However, the `scripts/thinq.py` file includes a `raw` command-line argument that allows sending arbitrary JSON payloads to the device control API. While not explicitly used for malicious purposes within the provided files, this capability (`thinq.py raw <device> <json>`) provides an unconstrained interface for device control, which could be exploited by a compromised agent or a malicious prompt to perform actions beyond the skill's stated high-level functions.
能力评估
Purpose & Capability
Name/description match the code and instructions: the CLI uses the ThinQ API (via thinqconnect) to list devices, query status, and send control payloads. Required resources (a ThinQ personal access token and country code file) are directly related to the stated purpose.
Instruction Scope
SKILL.md instructs storing a ThinQ PAT in ~/.config/lg-thinq/token and running the included Python script to interact with devices — this is within scope. Minor issues: the docs reference activating a virtualenv at 'cd ~/clawd && source .venv/bin/activate' (path/name appears inconsistent with the skill slug) and the README doesn't explicitly tell the user to pip-install the thinqconnect/aiohttp dependencies that the script requires. The script reads/writes only under ~/.config/lg-thinq (token, country, devices cache) and sends requests via the ThinQ API; it does not reference unrelated system paths.
Install Mechanism
There is no automated install spec (instruction-only plus an included script). That keeps disk changes minimal, but the provided Python script requires third-party packages (thinqconnect, aiohttp). SKILL.md does not provide explicit pip install steps for these dependencies, which is an operational omission but not a sign of maliciousness.
Credentials
No environment variables or unrelated credentials are requested. The skill asks the user to store a ThinQ Personal Access Token as a plaintext file in ~/.config/lg-thinq/token and to set a country code file; this is proportionate to interacting with the ThinQ API. Storing an access token in plaintext is sensitive — the token grants access to the user's devices and should be protected (file permissions, consider more secure storage).
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistence. It caches device lists under ~/.config/lg-thinq/devices.json (expected) and does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lg-thinq
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lg-thinq 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Control LG smart appliances (fridge, washer, dryer) via ThinQ API
元数据
Slug lg-thinq
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

LG ThinQ 是什么?

Control LG smart appliances via ThinQ API. Use when user asks about their fridge, washer, dryer, AC, or other LG appliances. Supports checking status, changing temperature, toggling modes (express, eco), and monitoring door status. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1992 次。

如何安装 LG ThinQ?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lg-thinq」即可一键安装,无需额外配置。

LG ThinQ 是免费的吗?

是的,LG ThinQ 完全免费(开源免费),可自由下载、安装和使用。

LG ThinQ 支持哪些平台?

LG ThinQ 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。

谁开发了 LG ThinQ?

由 hikaio(@kaiofreitas)开发并维护,当前版本 v1.0.0。

💬 留言讨论