名称: samsung-smart-tv
描述: 通过 SmartThings 控制三星电视(OAuth 应用 + 设备控制)。
主页: https://developer.smartthings.com/docs
元数据: {"clawdbot":{"emoji":"📺","requires":{"bins":["python3","npx"]},"install":[{"id":"python-brew","kind":"brew","formula":"python","bins":["python3"],"label":"安装 Python (brew)"},{"id":"node-brew","kind":"brew","formula":"node","bins":["node","npx"],"label":"安装 Node.js (brew)"}]}}
此技能用于配置 SmartThings OAuth 应用,并为 Clawdbot 存储凭据。
code 查询参数,重新运行命令以交换令牌。.env 文件中设置客户端 ID 和密钥。smartthings-clawdbot 的 OAuth-In SmartApp。r:devices:* 和 x:devices:* 权限(读取 + 执行命令)。https://httpbin.org/get(可通过 redirect-uri 选项覆盖)。SMARTTHINGS_APP_ID、SMARTTHINGS_CLIENT_ID、SMARTTHINGS_CLIENT_SECRET 及 OAuth 令牌写入 ~/.clawdbot/.env(或 CLAWDBOT_STATE_DIR/.env)。SMARTTHINGS_DEVICE_ID 到同一个 .env 文件中。applicationLauncher 或 samsungtv。supportedApps 或 installedApps 字段中查找应用 ID。appId 启动应用。tvChannelName、installedApps 或 supportedApps 等字段,以提取当前 appId。appId 以备后用;部分 ID 是设备特定的。org.tizen.netflix-apporg.tizen.primevideoorg.tizen.[app-name]{random}.TizenYouTube{random}.ZAPPNVOLLTVFREIGESTREAMT{random}.{PackageName}appId。SMARTTHINGS_TOKEN(或 SMARTTHINGS_PAT)环境变量提供 PAT 进行身份验证。code 查询参数,然后使用 auth-code 重新运行命令。https://httpbin.org/get 以在 URL 中显示代码;如不想使用 httpbin,可切换至自己的重定向 URI。