返回顶部
S

Shelly BluTRV ManagerShelly温控管理

Control Shelly BluTRV thermostats and H&T sensors via local RPC with cloud fallback. Use when: (1) checking room temperatures, (2) setting thermostat targets, (3) controlling heating in Schlafzimmer/Wohnzimmer/Flur, (4) reading sensor data from Shelly devices. Triggers on phrases like "heizung", "temperatur setzen", "thermostat", "raumtemperatur", "BluTRV", "Shelly TRV".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
93
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

Shelly BluTRV Manager

Shelly BluTRV管理器

通过RPC对Shelly BluTRV恒温器进行本地优先控制,并自动云回退。

仓库

GitHub:https://github.com/wolf128058/openclaw-skill-shelly-blutrv-manager

设置

首次使用前,请先阅读references/setup.md,配置网关映射、云回退和写入限制,然后再执行命令。

访问

请参阅references/auth-and-access.md了解凭据处理、本地与云使用以及安全限制。

快速参考

BluTRV恒温器

房间网关TRV编号设备ID
卧室192.168.0.101200cafebabefeed
客厅
192.168.0.102 | 201 | bad0ff1ce123 | | 走廊 | 192.168.0.102 | 202 | f00dbabecafe |

H&T传感器(WiFi,仅云)

房间设备ID类型
卧室bad0ff1ce321H&T(温度+湿度)

H&T传感器提供: 温度、相对湿度、电池电量、信号强度

查询状态

BluTRV恒温器

bash

通过别名


~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/blutrv-status.sh 卧室

通过IP+TRV编号

~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/blutrv-status.sh 192.168.0.101 200

输出字段:roomtemperatureC, currentC, targetC, battery_percent, source, rssi

H&T传感器(仅云)

bash

查询包含温度和湿度的状态


~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/ht-status.sh 卧室

或通过设备ID

~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/ht-status.sh decafbadf00d

原始JSON

~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/shelly-cloud.sh status decafbadf00d

H&T输出字段: temperatureC, humiditypercent, battery_percent, rssi

一次性查询所有设备

bash

获取所有设备状态


~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/shelly-cloud.sh list | jq .data.devices_status

设置温度

bash

通过辅助脚本(推荐)


~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/blutrv-control.sh <网关IP> <温度>

示例:卧室设置为20°C

~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/blutrv-control.sh 192.168.0.101 200 20

通过别名

~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/blutrv-control.sh 卧室 20

直接通过RPC(用于调试)

curl -s -X POST http://192.168.0.101/rpc \ -H Content-Type: application/json \ -d {method:BluTrv.Call,params:{id:200,method:TRV.SetTarget,params:{id:0,target_C:20}}}

重要提示: BluTRV是蓝牙电池设备——命令执行需要几秒钟。

云API

bash

列出设备


~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/shelly-cloud.sh list

设备状态

~/.openclaw/workspace/skills/shelly-blutrv-manager/scripts/shelly-cloud.sh status <设备ID>

限制: 云API无法读取BluTRV状态——仅支持WiFi设备(H&T、Shelly Plug等)。对于TRV,请始终使用本地网关。

设备注册表

请参阅references/devices.md获取完整设备列表和网关映射。

目标别名

辅助脚本除了接受gatewayip和trvid外,还接受来自SHELLY_TARGETS的自由定义目标别名。
一个目标在内部通过gatewaykey + trvid + trvdeviceid唯一标识,以确保不同网关上的多个BluTrv (200)不会被混淆。

最佳实践

  1. 1. 始终使用辅助脚本——不要使用没有超时的裸curl
  2. 优先使用本地RPC——云有严格的速率限制
  3. 验证写入——blutrv-control.sh在设置后会检查最终的target_C
  4. 超时处理——blutrv-status.sh已内置超时和回退机制
  5. 错误公开沟通——遇到超时/卡顿时,说运行时检查失败,而不是静默卡住

范围

发布的包有意限制为本地RPC控制、验证写入和云回退。
实验性的WebSocket写入或调试辅助工具不属于此ClawHub版本。

故障排除

请参阅references/troubleshooting.md了解常见错误情况和恢复步骤。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 shelly-blutrv-manager-1775939222 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 shelly-blutrv-manager-1775939222 技能

通过命令行安装

skillhub install shelly-blutrv-manager-1775939222

下载

⬇ 下载 Shelly BluTRV Manager v1.0.0(免费)

文件大小: 20 KB | 发布时间: 2026-4-12 11:22

v1.0.0 最新 2026-4-12 11:22
Initial stable 1.0 release.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部