
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@linchengyu-org/switchbot-channel
Advanced tools
SwitchBot channel plugin for OpenClaw — real-time device status
Connect your SwitchBot smart home devices to OpenClaw platform for real-time device status monitoring | 将您的 SwitchBot 智能家居设备连接到 OpenClaw 平台,实时监控设备状态变化
SwitchBot Channel is an official channel plugin for the OpenClaw platform that receives real-time SwitchBot device status changes via MQTT protocol. Whether it's contact sensors, temperature/humidity meters, or smart plugs, you can monitor device status in real-time through OpenClaw and set up intelligent notifications.
Before installing the plugin, ensure your OpenClaw environment has the required dependencies:
# Install pnpm if not already installed
npm install -g pnpm
# Install dependencies in your OpenClaw installation
pnpm install
# Install plugin from npm
openclaw plugins install @linchengyu-org/switchbot-channel
# Verify installation
openclaw plugins list
Open SwitchBot App
Enter Developer Options:
Get Credentials:
⚠️ Important: Keep your Token and Secret secure and don't share them with others
Edit OpenClaw configuration file ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"switchbot-channel": {
"enabled": true
}
}
},
"channels": {
"switchbot": {
"enabled": true,
"token": "your_switchbot_token_here",
"secret": "your_switchbot_secret_here"
}
}
}
# Restart OpenClaw Gateway
openclaw gateway restart
# Check plugin status
openclaw status
{
"channels": {
"switchbot": {
"enabled": true,
"token": "xxxx",
"secret": "xxxx"
}
}
}
After the plugin starts, it will automatically receive status changes from all devices. You can view them using:
# View device status
openclaw devices list switchbot
# View specific device
openclaw devices show <device_id>
A: Check configuration
# Check configuration syntax
openclaw config validate
# View detailed errors
openclaw gateway logs --follow
Enable detailed logging for troubleshooting:
{
"logging": {
"level": "debug",
"channels": {
"switchbot": "debug"
}
}
}
View logs:
# View real-time logs
tail -f ~/.openclaw/logs/gateway.log | grep "SwitchBot"
# View error logs
openclaw gateway logs --level error
If you encounter serious issues, you can reset the plugin:
# Stop service
openclaw gateway stop
# Clear plugin cache
rm -rf ~/.openclaw/cache/plugins/switchbot
# Restart
openclaw gateway start
SwitchBot Channel 是 OpenClaw 平台的官方渠道插件,通过 MQTT 协议实时接收 SwitchBot 设备状态变化。无论是门窗传感器、温湿度计还是智能插座,您都可以在 OpenClaw 中实时了解设备状态,并设置智能通知。
安装插件前,请确保您的 OpenClaw 环境已安装所需依赖:
# 安装 pnpm(如果尚未安装)
npm install -g pnpm
# 在您的 OpenClaw 安装目录中安装依赖
pnpm install
# 从 npm 安装插件
openclaw plugins install @linchengyu-org/switchbot-channel
# 验证安装
openclaw plugins list
打开 SwitchBot App
进入开发者选项:
获取凭证:
⚠️ 重要提示:请妥善保管您的 Token 和 Secret,不要泄露给他人
编辑 OpenClaw 配置文件 ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"switchbot-channel": {
"enabled": true
}
}
},
"channels": {
"switchbot": {
"enabled": true,
"token": "your_switchbot_token_here",
"secret": "your_switchbot_secret_here"
}
}
}
# 重启 OpenClaw Gateway
openclaw gateway restart
# 检查插件状态
openclaw status
{
"channels": {
"switchbot": {
"enabled": true,
"token": "xxxx",
"secret": "xxxx"
}
}
}
插件启动后会自动接收所有设备的状态变化,您可以通过以下方式查看:
# 查看设备状态
openclaw devices list switchbot
# 查看具体设备
openclaw devices show <device_id>
A: 检查配置
# 检查配置语法
openclaw config validate
# 查看详细错误
openclaw gateway logs --follow
启用详细日志进行问题诊断:
{
"logging": {
"level": "debug",
"channels": {
"switchbot": "debug"
}
}
}
查看日志:
# 实时查看日志
tail -f ~/.openclaw/logs/gateway.log | grep "SwitchBot"
# 查看错误日志
openclaw gateway logs --level error
如果遇到严重问题,可以重置插件:
# 停止服务
openclaw gateway stop
# 清理插件缓存
rm -rf ~/.openclaw/cache/plugins/switchbot
# 重新启动
openclaw gateway start
Made with ❤️ by the SwitchBot Team
FAQs
SwitchBot channel plugin for OpenClaw — real-time device status
The npm package @linchengyu-org/switchbot-channel receives a total of 9 weekly downloads. As such, @linchengyu-org/switchbot-channel popularity was classified as not popular.
We found that @linchengyu-org/switchbot-channel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.