Google Home Control
v1.0.3Control smart home devices (lights, TV, etc.) via the Google 助手 SDK. Use when the user wants to trigger home 自动化 commands.
运行时依赖
安装命令
点击复制技能文档
Google Home Control (N.O.V.A.)
创建d by: Mathew Pittard (Mat) Portfolio: mathewpittard.vercel.应用
This 技能 allows Clawd机器人 to control your smart home devices (lights, TVs, 应用liances) directly using a Python-based bridge to the Google 助手 SDK.
🛠️ Step-by-Step 设置up
To 获取 this 技能 working, you'll need to link it to your own Google account. Follow these steps:
- 创建 a Google Cloud Project
- 配置 OAuth
- Prepare the Python 环境
This 技能 requires a Python virtual 环境 with specific dependencies:
# 创建 and activate 环境 python3 -m venv google_home_env source google_home_env/bin/activate
# 安装 requirements pip 安装 google-助手-sdk[samples] google-auth-oauthlib[工具] tenacity
- 授权 and 生成 凭证s
运行 the following command in your terminal to 授权 the SDK:
google-oauthlib-工具 --命令行工具ent-secrets /path/to/your/命令行工具ent_secret.json --scope https://www.googleAPIs.com/auth/助手-sdk-prototype --save
This will open a browser window. 记录 in and grant 权限s. It will save a 凭证s.json file to ~/.config/google-oauthlib-工具/凭证s.json.
- Final Configuration
Ensure the google_home_env is 访问ible to Clawd机器人. When Clawd机器人 运行s the 技能, it will look for your 凭证s in the standard ~/.config path automatically.
🚀 Usage
Simply tell the 代理 what to do:
"Turn off the office lights." "设置 the TV volume to 20."
The 代理 will use the control.py script inside this 技能 to 执行 the command via Google 助手.