Midea Cloud Control
Connect and control Midea devices through the Midea cloud with a local cached account/device config. Use when a user wants to connect a Midea account, list d...
Like a lobster shell, security has layers — review code before you run it.
License
SKILL.md
Midea Cloud Control
This is a pure-text publishable skill for ClawHub.
The uploaded skill folder contains only Markdown/text files. When the skill is first used, OpenClaw should write local helper scripts from the code blocks stored in references/generated-config-store.md and references/generated-midea-skill-cli.md, then execute those local scripts.
Use this skill only for the minimum verified workflow:
- connect a user's Midea cloud account
- read and cache device information locally
- power a named device on or off
Do not promise features that are not yet verified, including:
- temperature control
- real-time state reads
- indoor temperature reads
- mode switching
Bootstrap step (first use only)
Before handling connect/list/toggle requests, ensure the following two local files exist in a local working directory, for example skills_runtime/midea-cloud-control/ under the workspace:
config_store.pymidea_skill_cli.py
If they do not exist:
- Read
references/generated-config-store.md - Extract the Python code block and write it locally as
config_store.py - Read
references/generated-midea-skill-cli.md - Extract the Python code block and write it locally as
midea_skill_cli.py - Then run commands against the local generated
midea_skill_cli.py
Suggested local runtime directory:
skills_runtime/midea-cloud-control/
Conversation workflow
Intent A: connect Midea account
When the user says things like:
- 我想连接美的设备
- 帮我配置美的账号
- 连接我的美的空调
Do this:
- Tell the user credentials will be saved locally at
~/.openclaw/midea-cloud-control/config.json. - Ask for account and password if they have not provided them yet.
- Ensure the bootstrap step above has been completed.
- Run:
uv run python skills_runtime/midea-cloud-control/midea_skill_cli.py connect --account "<ACCOUNT>" --password "<PASSWORD>"
- If success, summarize devices as:
- device name
- device id
- model
- home
- If failure, show the returned failure reason clearly.
Intent B: list connected devices
When the user asks to list devices:
- Ensure the bootstrap step above has been completed.
- Run:
uv run python skills_runtime/midea-cloud-control/midea_skill_cli.py list
If config is missing, tell the user to connect account first.
Intent C: power on/off by device name
When the user says things like:
- 打开儿童房空调
- 关闭主卧空调
- 打开“客厅空调”
Do this:
- Ensure the bootstrap step above has been completed.
- Run one of:
uv run python skills_runtime/midea-cloud-control/midea_skill_cli.py toggle --device-name "儿童房空调" --power on
uv run python skills_runtime/midea-cloud-control/midea_skill_cli.py toggle --device-name "儿童房空调" --power off
Then:
- Report that the cloud command was sent.
- Do not claim physical success unless the user confirms the device reacted.
- If the device name is missing from cache, tell the user to reconnect or list devices first.
Safety and privacy
- Always warn before first-time credential storage.
- Do not echo passwords back in normal chat responses.
- Keep the response focused on success/failure and device summary.
Resources
references/
references/api-notes.md— validated scope and limitationsreferences/generated-config-store.md— source code to generate localconfig_store.pyreferences/generated-midea-skill-cli.md— source code to generate localmidea_skill_cli.py
Files
4 totalComments
Loading comments…
