Connect and manage your LG ThinQ devices seamlessly with OpenClaw.
This skill acts as a Universal Manager that automates the entire integration process. It starts by discovering all LG appliances (ACs, Refrigerators, Washers, etc.) linked to your account. Then, it simplifies management by generating specialized, lightweight OpenClaw skills for each individual device. This approach ensures a secure, private connection that allows for natural language control without ever exposing your sensitive credentials in the device-specific skills.
Install the universal skill using clawhub:
clawhub install lg-thinq-universalYou can obtain your Personal Access Token (PAT) by following these steps:
- Visit the official portal: https://connect-pat.lgthinq.com
- Log in with your ThinQ account.
- Select the "ADD NEW TOKEN" button.
- Enter a Token name (e.g., "OpenClaw-Skill").
- Select the features you want to control.
- Select the "CREATE TOKEN" button.
- Copy the newly generated token immediately.
We recommend setting your credentials in your shell environment for better security.
Option A: Shell Environment (Preferred)
export LG_PAT="your_newly_generated_token"
export LG_COUNTRY="IN" # Your 2-letter ISO country code (US, GB, IN, etc.)Option B: .env File (Root Only)
Create a .env file only in the lg-thinq-universal directory:
cd ~/.openclaw/workspace/skills/lg-thinq-universal
echo "LG_PAT=your_token_here" > .env
echo "LG_COUNTRY=your_country_code" >> .env
⚠️ SECURITY WARNING: NEVER copy this.envfile or yourLG_PATinto the individual device skill folders created later. Those folders must remain isolated for your safety.
Now that your credentials are set, it's time to let OpenClaw handle the rest.
Paste this simple prompt into your OpenClaw chat to begin the automated setup of your devices:
I have installed the lg-thinq-universal skill and added the tokens. Please follow the SKILL.md to run the discovery setup and help me assemble the workspace for my LG devices.
Once the agent is ready, you can manually run management scripts from ~/.openclaw/workspace/skills/lg-thinq-universal/:
python scripts/lg_api_tool.py list-devices: See all your connected LG appliances.python scripts/lg_api_tool.py check-config: Verify your token and country are set correctly.
After the setup is complete, you will have specific skills like lg-ac-livingroom. You can then talk to OpenClaw naturally:
- "OpenClaw, turn on the living room AC."
- "OpenClaw, set the kitchen fridge to 3 degrees."
- "OpenClaw, check if the washer is finished."
A: There are two common reasons:
- Not in App: Ensure you have added the device to your LG account using the official LG ThinQ app on your phone. If it's not in the app, it won't show up here.
- Offline: Check that the device is "Online" and connected to Wi-Fi in the LG ThinQ app.
A: Your LG_PAT might be expired or incorrect. Double-check your environment variables and regenerate the token if necessary.
A: Navigate to the directory and run: chmod +x setup.sh.
A: Simply run ./setup.sh again from the lg-thinq-universal directory to refresh all profiles.
- Zero-Leak: We never store your
LG_PATin generated device skills. They only use aLG_DEVICE_ID. - Shell Credentials for Device Skills: Generated device skills expect
LG_PATandLG_COUNTRYto be available in the shell when they run. - Local-First: All API communication happens directly from your machine to LG's servers.
- Validation: Every command uses optimistic locking (
x-conditional-control) to ensure your device state is always what you expect.
Contributions are welcome! If you have ideas for improvements, new features, or additional device profiles, feel free to open an issue or submit a pull request.
Made with ❤️ by Utkarsh Tiwari | Welcome contributions!