Install
openclaw skills install @utkarshthedev/lg-thinq-universalUniversal LG ThinQ device setup and control. Discovers appliances and generates secure device skills.
openclaw skills install @utkarshthedev/lg-thinq-universalProvide a secure, automated gateway for LG ThinQ device integration. This skill acts as a discovery engine and skill generator, allowing users to control their appliances via OpenClaw without duplicating sensitive credentials across multiple files.
For transparency and security, this skill performs the following automated installation steps:
requests: Used for secure communication with the LG ThinQ API.python-dotenv: Used for local management of the LG_DEVICE_ID.pypi.org to download these libraries.If the user asks how to get their tokens, provide these instructions:
US, IN, GB).The agent MUST ensure the following are set before proceeding:
LG_PAT: Stored in shell environment or root .env.LG_COUNTRY: Stored in shell environment or root .env.Follow these steps in order when a user requests setup:
Run the automated discovery script. It validates configuration and prepares the device database.
Mandatory Safety Flow:
./setup.sh (without flags).ask_user to obtain explicit consent../setup.sh --confirm.Review the output from Step 1. Present the discovered devices to the user. Once an ID is selected, move immediately to assembly:
python3 scripts/assemble_device_workspace.py --id <DEVICE_ID> (without flags).ask_user to obtain consent for the file/directory operations.python3 scripts/assemble_device_workspace.py --id <DEVICE_ID> --confirm.After the assembly script completes, you MUST immediately:
[AVAILABLE COMMANDS] and [ENGINE CODE] printed by the script.references/api-reference.md for technical headers and control logic.references/device-skill-template.md as your guide.MEMORY.md.Use these commands for maintenance and discovery:
| Command | Description | Use Case |
|---|---|---|
python scripts/lg_api_tool.py list-devices | List all linked appliances | Verify connectivity |
python scripts/lg_api_tool.py save-route | Discover regional server | Fix "Route not found" errors |
python scripts/lg_api_tool.py get-state <id> | Get raw device state | Deep debugging |
python scripts/lg_api_tool.py --help | Show all API tool options | Explore advanced features |
LG_PAT into the chat.LG_PAT into generated device skill directories. Only LG_DEVICE_ID is permitted in those locations.| Document | Purpose |
|---|---|
references/skill-creation.md | Detailed post-setup workflow for creating device skills |
references/skill-generation-guide.md | Instructions for building device-specific SKILL.md files |
references/manual-setup.md | Manual installation steps (without setup scripts) |
references/api-reference.md | Technical details on API headers and control logic |
references/device-example.md | Complete example of a generated device skill |
references/public_api_constants.json | Public API keys and constants used by the scripts |
| Symptom | Resolution |
|---|---|
401 Unauthorized | Token expired. Guide user to https://connect-pat.lgthinq.com. |
No devices found | Verify device is added to the official LG ThinQ App on mobile first. |
Permission denied | The script should already be executable. If not, inform the developer. |