360 Secure SkillHub
360 安全技能中心

Thermal Room Sensor

为仅上报遥测的房间温度传感器定义 SmartClaws 主题 telemetry.thermal_status、负载字段(temperature_c、ambient_c、relay_state、stale_relay_seconds、stale_relay、ts)及主代理可做与不可做的事项和数值校验规则;不安装 SmartClaws、不注册设备、不发布遥测,需与 smartclaws-maste…

eduv09
eduv09
热度 10.83
最近更新 2026-07-21 20:55:04
分类:自动化依赖:纯提示词应用场景:工作流 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add smartclaws-device-thermal-room-sensor
Metadata
name
smartclaws-device-thermal-room-sensor
description
Device contract for a telemetry-only room thermal sensor. Defines SmartClaws topics, payload fields, and master-agent interpretation rules.
license
LGPL-3.0-or-later
metadata
{"openclaw":{"emoji":"T","homepage":"https://github.com/skalenetwork/smartclaws","requires":{"config":["plugins.entries.smartclaws"]}}}

Thermal Room Sensor Device Contract

This is a device contract skill. It does not install SmartClaws, register a device, publish telemetry, or define an agent role. Use it with smartclaws-master-agent.

Device Identity

  • Device class: room thermal sensor
  • Capability: temperature telemetry
  • Authority: telemetry-only
  • Command support: none

SmartClaws Channels

The setup must provide channel addresses in SMARTCLAWS.md.

  • Outgoing telemetry channel: required.
  • Incoming command channel: not used by this contract.

Do not invent channel addresses. If a channel is missing, ask for setup.

Telemetry Topic

Topic: telemetry.thermal_status

Normalized payload:

{
  "temperature_c": 23.45,
  "ambient_c": 21.0,
  "relay_state": true,
  "stale_relay_seconds": 12.4,
  "stale_relay": false,
  "ts": "2026-07-01T11:12:13.000Z"
}

Fields:

  • temperature_c: current room temperature in Celsius.
  • ambient_c: configured ambient/resting temperature in Celsius, when provided.
  • relay_state: related heating/relay state when known; true = ON, false = OFF, null = unknown.
  • stale_relay_seconds: age of the related relay state in seconds, or null when unknown.
  • stale_relay: true when the relay correlation is stale or unavailable.
  • ts: producer timestamp in ISO-8601 format.

Master-Agent Use

A master may:

  • Read telemetry.thermal_status from the outgoing channel.
  • Use temperature_c as the room temperature signal.
  • Use stale_relay and stale_relay_seconds to decide whether relay correlation is trustworthy.
  • Combine this telemetry with commandable devices listed in SMARTCLAWS.md.

A master must not:

  • Publish commands to this device.
  • Treat ambient_c as a measured current temperature.
  • Treat relay_state as authoritative when stale_relay is true.
  • Invent missing readings, timestamps, or relay correlation.

Sanity Rules

  • temperature_c must be numeric.
  • ambient_c and stale_relay_seconds must be numeric when present and non-null.
  • relay_state must be boolean or null when present.
  • stale_relay must be boolean when present.
  • ts should be a timestamp string when present.
  • If recent telemetry is missing, report that no fresh thermal reading is available rather than guessing.