Install
openclaw skills install @eduv09/smartclaws-device-novapm-sds011Device contract for a NovaPM/SDS011 air-quality bridge. Defines SmartClaws telemetry topics, payloads, local serial behavior, and safety rules.
openclaw skills install @eduv09/smartclaws-device-novapm-sds011This is a device contract skill. It does not install SmartClaws or define an
agent role. Use it with smartclaws-bridge-agent for publishing telemetry and
with smartclaws-master-agent for reading/auditing air-quality data.
/dev/ttyUSB0.30 seconds; never below 15 seconds.The setup must provide channel addresses in SMARTCLAWS.md.
Do not invent channel addresses.
Topic: telemetry.air_quality
Payload:
{
"pm25_ug_m3": 12.3,
"pm10_ug_m3": 28.1,
"sensor": "sds011",
"port": "/dev/ttyUSB0",
"ts": "<current ISO 8601 UTC>"
}
Fields:
pm25_ug_m3: PM2.5 concentration in micrograms per cubic meter.pm10_ug_m3: PM10 concentration in micrograms per cubic meter.sensor: should be sds011 for this contract.port: serial port used for the reading.ts: ISO 8601 UTC timestamp for the reading.None. This device is read-only.
If a setup provides an incoming channel or command topic for this device, treat it as a setup error unless an operator explicitly changes the device contract.
A bridge should:
telemetry.air_quality to the outgoing channel with smartclaws_publish.The bridge should preserve sensor life. Avoid unnecessarily short polling intervals; existing setup guidance used a 5-minute cadence with a 30-second warmup.
A master may:
telemetry.air_quality from the outgoing channel.A master must not publish commands to this device.
Reject a reading and publish no telemetry when:
pm25_ug_m3 < 0 or pm25_ug_m3 > 1000.pm10_ug_m3 < 0 or pm10_ug_m3 > 1000.pm25_ug_m3 > pm10_ug_m3, which is physically inconsistent for this sensor.Do not repair, smooth, or invent readings. Bad data is worse than no data.
When reporting readings to a person, include raw values and a plain label.
The bands and thresholds below are non-authoritative display reference (drawn
from common EU/EPA/WHO levels) — they help you label a reading, not decide policy.
Actual alert thresholds and what to do about them are the owner's call and
belong in AGENTS.md, not this device contract. Reference only:
35 µg/m³; WHO 24h guideline is 15).50 µg/m³; WHO 24h guideline is 45).Useful context labels:
0-5, PM10 0-20.5-15, PM10 20-45.15-35, PM10 45-50.>35, PM10 >50.Always check the timestamp. If the latest reading is older than the expected publish cadence, say the data may be stale.