# Send Living Room Smoke Detector to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "living-room-smoke-detector",
    "name": "Living Room Smoke Detector",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/maverick-2/living-room-smoke-detector",
    "canonicalUrl": "https://clawhub.ai/maverick-2/living-room-smoke-detector",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/living-room-smoke-detector",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=living-room-smoke-detector",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "data/detector_state.json",
      "scripts/smoke_detector.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/living-room-smoke-detector"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/living-room-smoke-detector",
    "downloadUrl": "https://openagent3.xyz/downloads/living-room-smoke-detector",
    "agentUrl": "https://openagent3.xyz/skills/living-room-smoke-detector/agent",
    "manifestUrl": "https://openagent3.xyz/skills/living-room-smoke-detector/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/living-room-smoke-detector/agent.md"
  }
}
```
## Documentation

### Living Room Smoke Detector

A simple, focused smoke and fire detection system that monitors the living room ALPSTUGA air sensor via the Dirigera hub.

### What It Does

Queries Dirigera directly every 5 minutes (not from database)
Simple state only - keeps just the latest reading, no history
Detects danger: PM2.5 > 250 µg/m³ OR CO2 > 2000 ppm
Continuous alert - plays "Attention! Abnormal smoke level detected" on Mac speaker
Loops until cleared - keeps playing every 5 seconds until air quality normalizes
Backup smoke alarm - works alongside your regular smoke detector

### 1. Copy Alert Sound (optional)

If you already have the alert sound from the air monitor skill:

cp ~/.openclaw/workspace/skills/living-room-air-monitor/data/smoke_alert_message.mp3 \\
   ~/.openclaw/workspace/skills/living-room-smoke-detector/data/alert.mp3

Otherwise it will auto-generate on first run.

### 2. Cron Setup

Add to crontab to check every 5 minutes:

*/5 * * * * /opt/homebrew/bin/python3 /Users/macmini/.openclaw/workspace/skills/living-room-smoke-detector/scripts/smoke_detector.py >> /tmp/smoke_detector.log 2>&1

### Manual Check

python3 ~/.openclaw/workspace/skills/living-room-smoke-detector/scripts/smoke_detector.py

### View Status

# Latest reading
cat ~/.openclaw/workspace/skills/living-room-smoke-detector/data/detector_state.json

# Log
tail -f /tmp/smoke_detector.log

### How It Works

Cron triggers every 5 minutes
Fetches data directly from Dirigera hub
Checks thresholds:

PM2.5 > 250 µg/m³ (smoke particles)
CO2 > 2000 ppm (combustion byproduct)


If danger detected:

Saves state (alert_active = true)
Enters alert loop
Plays alert sound every 5 seconds
Re-checks sensor between plays
Exits loop when air clears


If normal: Updates state and exits

### State File

data/detector_state.json:

{
  "latest_reading": {
    "pm25": 3,
    "co2": 525,
    "time": "2026-02-25T20:30:00"
  },
  "alert_active": false,
  "last_check": "2026-02-25T20:30:00"
}

### Alert Behavior

When danger is detected:

Mac speaker plays: "Attention! Abnormal smoke level detected"
Waits 5 seconds
Checks sensor again
Repeats until PM2.5 ≤ 250 AND CO2 ≤ 2000
Press Ctrl+C to stop manually if needed

### Files

FilePurposescripts/smoke_detector.pyMain detection scriptdata/alert.mp3Alert sound filedata/detector_state.jsonLatest reading and status

### Dependencies

Python 3.x
Dirigera hub access (192.168.1.100)
Auth token at ~/.openclaw/workspace/.dirigera_token
macOS afplay (built-in)
say and ffmpeg (for alert generation)

### Differences from Air Monitor Skill

FeatureAir MonitorSmoke DetectorData storageFull SQLite databaseLatest reading onlyQuery sourceDatabaseDirigera directlyFrequencyEvery 2 minEvery 5 minPurposeHistory + chartsImmediate alertingAlertSingle playContinuous loopComplexityMulti-featureSingle-purpose

Use both for complete coverage: air monitor for data logging, smoke detector for focused alerting.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: maverick-2
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/living-room-smoke-detector)
- [Send to Agent page](https://openagent3.xyz/skills/living-room-smoke-detector/agent)
- [JSON manifest](https://openagent3.xyz/skills/living-room-smoke-detector/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/living-room-smoke-detector/agent.md)
- [Download page](https://openagent3.xyz/downloads/living-room-smoke-detector)