将 OpenClaw 连接到 Clawhome 平台,实现双向消息收发。
bash
npx -y openclaw-clawhome-cli@latest install
告知 Clawhome 连接信息
bash
openclaw config set channels.clawhome.channelId "你的频道ID"
openclaw config set channels.clawhome.channelSecret "你的频道密钥"
bash
openclaw gateway restart
channel/${CHANNEL_ID}/user/eventchannel/${CHANNEL_ID}/agent/actionjson
{
"type": "ping",
"role": "agent",
"timestamp": 1774245227871
}
json
{
"type": "message",
"role": "agent",
"timestamp": 1774245227871,
"content": "你好,我是 Clawhome 机器人"
}
配置项说明默认值mqttUrlMQTT Broker 地址wss:// www.clawhome.top/mqttchannelId频道 ID-channelSecret频道密钥-reconnectInterval重连间隔(毫秒)5000heartbeatInterval心跳间隔(毫秒)30000