iot-protocols
IoT protocols: Zigbee (mesh), Z-Wave (home), LoRaWAN (long-range), CoAP (lightweight), Matter (interoperable), Thread (I
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o iot-protocols.zip https://jpskill.com/download/22231.zip && unzip -o iot-protocols.zip && rm iot-protocols.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22231.zip -OutFile "$d\iot-protocols.zip"; Expand-Archive "$d\iot-protocols.zip" -DestinationPath $d -Force; ri "$d\iot-protocols.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
iot-protocols.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
iot-protocolsフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
iot-protocols
目的
このスキルは、Zigbee、Z-Wave、LoRaWAN、CoAP、Matter、ThreadなどのIoTプロトコルと連携するためのツールを提供し、IoTアプリケーションにおけるデバイス接続、データ交換、ネットワーク管理を可能にします。
使用する場面
低電力、メッシュネットワーキング(例:スマートホーム向けのZigbee)、長距離通信(例:遠隔地のセンサー向けのLoRaWAN)、または軽量プロトコル(例:制約のあるデバイス向けのCoAP)を必要とするIoTシステムを構築する際に、このスキルを使用してください。スマートホームオートメーション、産業用IoT監視、Matterとの相互運用可能なエコシステムなどのシナリオで適用できます。
主な機能
- 特定のプロトコルを使用してデバイスへの接続を確立します。例:メッシュネットワークにはZigbee、IPv6ベースの低電力ワイヤレスにはThread。
- データペイロードを送受信します。例:CoAP経由でセンサーデータを照会したり、Z-Waveデバイスを制御したりします。
- ネットワーク設定を構成します。例:LoRaWANゲートウェイやMatterファブリックブリッジを設定します。
- プロトコル固有の機能を処理します。例:デバイスペアリングのためのZigbeeのバインディングや、LoRaWANの適応データレート。
- プロトコル間で相互運用します。例:MatterデバイスをThreadネットワークとブリッジしてシームレスな統合を実現します。
使用パターン
タスクを達成するには、まず環境変数 export IOT_API_KEY=your_api_key を設定して認証してください。セッションを初期化するには openclaw iot init コマンドから始め、その後プロトコル固有のアクションにはサブコマンドを使用します。例えば、デバイスに接続するには、プロトコルとデバイスIDを指定します。データ操作にはクエリフラグを使用します。スクリプトには常にエラーチェックを含めてください。パターン:openclaw iot <subcommand> --protocol <protocol> --device-id <id>。複雑な設定にはJSON設定ファイルを使用します。例えば、config.json という名前のファイルに { "protocol": "zigbee", "networkKey": "hex_key" } を作成し、--config config.json を介して渡します。
一般的なコマンド/API
迅速な対話にはOpenClaw CLIを、プログラムによるアクセスにはREST APIを使用してください。認証には $IOT_API_KEY ヘッダーが必要です。
-
CLIコマンド:プロトコルを一覧表示
openclaw iot list --protocol zigbee
これは利用可能なZigbeeデバイスを出力します。詳細なネットワーク情報には--verboseを追加してください。 -
CLIコマンド:デバイスに接続
openclaw iot connect --protocol lorawan --device-id 456 --region EU868
LoRaWAN接続を確立するためにこれを使用します。周波数帯域には地域フラグを指定してください。 -
APIエンドポイント:CoAP経由でデータを送信
POST /api/iot/send
Body:{ "protocol": "coap", "endpoint": "/sensors/temp", "payload": "{\"temp\": 25}" }
ヘッダーを含める:Authorization: Bearer $IOT_API_KEY -
APIエンドポイント:Z-Waveステータスを照会
GET /api/iot/status?protocol=z-wave&device-id=789
レスポンス:{ "status": "online", "nodes": 5 }のようなJSONオブジェクト。コードで簡単なフェッチで処理します。
fetch('/api/iot/status', { headers: { 'Authorization': process.env.IOT_API_KEY } }) .then(response => response.json()) -
設定形式:Matter統合にはYAMLファイルを使用します。
matter-config.yaml: protocol: matter, fabricId: 12345, nodeId: 678
次のようにロードします:openclaw iot load-config --file matter-config.yaml
統合に関する注意点
このスキルを他のOpenClawツールと統合するには、ワークフローで iot クラスターを参照してください。外部システムの場合、$IOT_API_KEY をエクスポートし、API呼び出しで使用します。データベーススキルと組み合わせるには、出力をパイプします。例:openclaw iot get --protocol coap | openclaw db insert。Thread統合の場合、ネットワークスタックでIPv6互換性を確保してください。例:Node.jsアプリでOpenClaw SDKをインポートし、次のように呼び出します。
const openclaw = require('openclaw-sdk'); openclaw.iot.connect({ protocol: 'thread', deviceId: '101' });
常にインプットを検証してください。Zigbeeの場合、接続する前にメッシュトポロジーを確認してください。
エラー処理
CLIの終了コードまたはAPIレスポンスステータスを確認してエラーを処理してください。一般的なエラーには、認証失敗(HTTP 401)やプロトコル不一致(例:無効なZigbeeネットワークキー)があります。コードでtry-catchを使用してください。
try { await openclaw.iot.connect({ protocol: 'z-wave', deviceId: '202' }); } catch (error) { console.error(error.message); // e.g., "Device not found" }
CLIの場合、出力を解析します。openclaw iot connect がゼロ以外の値を返した場合、stderrで「Protocol not supported」のようなメッセージを確認してください。一時的なエラー(例:LoRaWAN信号損失)は指数関数的バックオフで再試行してください。
具体的な使用例
-
Zigbeeメッシュネットワークのセットアップ: まず、キーをエクスポートします:
export IOT_API_KEY=abc123。次に、初期化します:openclaw iot init --protocol zigbee。デバイスを接続します:openclaw iot connect --protocol zigbee --device-id 303 --pan-id 0x1a62。ライトを切り替えるコマンドを送信します:openclaw iot send --protocol zigbee --endpoint /lights/1 --payload '{"state": "on"}'。これにより、ホームオートメーション用のメッシュが確立されます。 -
LoRaWANセンサーからデータを照会: 環境変数経由で認証し、次に:
openclaw iot connect --protocol lorawan --device-id 404 --app-eui 70B3D57EF0000000。データを取得します:openclaw iot get --protocol lorawan --payload-type temp。コードでは:
openclaw.iot.get({ protocol: 'lorawan', deviceId: '404' }).then(data => console.log(data));
これは遠隔地の環境センサーの監視に役立ちます。
グラフの関係
- 関連:iot-cluster(より広範なIoT管理用)、networking-skills(プロトコルに依存しないネットワーキング用)。
- 依存:security-skills(Zigbeeなどのプロトコルにおける暗号化用)。
- 接続方法:iotタグ。OpenClawのグラフでスキル間のクエリを可能にします。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
iot-protocols
Purpose
This skill provides tools for interacting with IoT protocols like Zigbee, Z-Wave, LoRaWAN, CoAP, Matter, and Thread, enabling device connectivity, data exchange, and network management in IoT applications.
When to Use
Use this skill when building IoT systems requiring low-power, mesh networking (e.g., Zigbee for smart homes), long-range communication (e.g., LoRaWAN for sensors in remote areas), or lightweight protocols (e.g., CoAP for constrained devices). Apply it in scenarios like smart home automation, industrial IoT monitoring, or interoperable ecosystems with Matter.
Key Capabilities
- Establish connections to devices using specific protocols: e.g., Zigbee for mesh networks or Thread for IPv6-based low-power wireless.
- Send/receive data payloads: e.g., query sensor data via CoAP or control Z-Wave devices.
- Configure network settings: e.g., set up LoRaWAN gateways or Matter fabric bridges.
- Handle protocol-specific features: e.g., Zigbee's binding for device pairing or LoRaWAN's adaptive data rate.
- Interoperate across protocols: e.g., bridge Matter devices with Thread networks for seamless integration.
Usage Patterns
To accomplish tasks, always authenticate first by setting the environment variable export IOT_API_KEY=your_api_key. Start with the openclaw iot init command to initialize the session, then use subcommands for protocol-specific actions. For example, to connect to a device, specify the protocol and device ID; for data operations, use query flags. Always include error checking in scripts. Pattern: openclaw iot <subcommand> --protocol <protocol> --device-id <id>. Use JSON config files for complex setups, e.g., create a file named config.json with { "protocol": "zigbee", "networkKey": "hex_key" } and pass it via --config config.json.
Common Commands/API
Use the OpenClaw CLI for quick interactions or REST APIs for programmatic access. Authentication requires the $IOT_API_KEY header.
-
CLI Command: List protocols
openclaw iot list --protocol zigbee
This outputs available Zigbee devices; add--verbosefor detailed network info. -
CLI Command: Connect to a device
openclaw iot connect --protocol lorawan --device-id 456 --region EU868
Use this to establish a LoRaWAN connection; specify region flag for frequency bands. -
API Endpoint: Send data via CoAP
POST /api/iot/send
Body:{ "protocol": "coap", "endpoint": "/sensors/temp", "payload": "{\"temp\": 25}" }
Include header:Authorization: Bearer $IOT_API_KEY -
API Endpoint: Query Z-Wave status
GET /api/iot/status?protocol=z-wave&device-id=789
Response: JSON object like{ "status": "online", "nodes": 5 }; handle with a simple fetch in code:
fetch('/api/iot/status', { headers: { 'Authorization': process.env.IOT_API_KEY } }) .then(response => response.json()) -
Config Format: For Matter integration, use a YAML file:
matter-config.yaml: protocol: matter, fabricId: 12345, nodeId: 678
Load it with:openclaw iot load-config --file matter-config.yaml
Integration Notes
Integrate this skill with other OpenClaw tools by referencing the iot cluster in your workflow. For external systems, export $IOT_API_KEY and use it in API calls. To combine with a database skill, pipe output: e.g., openclaw iot get --protocol coap | openclaw db insert. For Thread integration, ensure IPv6 compatibility in your network stack. Example: In a Node.js app, import OpenClaw SDK and call:
const openclaw = require('openclaw-sdk'); openclaw.iot.connect({ protocol: 'thread', deviceId: '101' });
Always validate inputs; for Zigbee, check mesh topology before connecting.
Error Handling
Handle errors by checking CLI exit codes or API response status. Common errors include authentication failures (HTTP 401) or protocol mismatches (e.g., invalid Zigbee network key). Use try-catch in code:
try { await openclaw.iot.connect({ protocol: 'z-wave', deviceId: '202' }); } catch (error) { console.error(error.message); // e.g., "Device not found" }
For CLI, parse output: if openclaw iot connect returns non-zero, check stderr for messages like "Protocol not supported". Retry transient errors (e.g., LoRaWAN signal loss) with exponential backoff.
Concrete Usage Examples
-
Set up a Zigbee mesh network: First, export your key:
export IOT_API_KEY=abc123. Then, initialize:openclaw iot init --protocol zigbee. Connect devices:openclaw iot connect --protocol zigbee --device-id 303 --pan-id 0x1a62. Send a command to toggle a light:openclaw iot send --protocol zigbee --endpoint /lights/1 --payload '{"state": "on"}'. This establishes a mesh for home automation. -
Query data from a LoRaWAN sensor: Authenticate via env var, then:
openclaw iot connect --protocol lorawan --device-id 404 --app-eui 70B3D57EF0000000. Retrieve data:openclaw iot get --protocol lorawan --payload-type temp. In code:
openclaw.iot.get({ protocol: 'lorawan', deviceId: '404' }).then(data => console.log(data));
This is useful for monitoring remote environmental sensors.
Graph Relationships
- Related to: iot-cluster (for broader IoT management), networking-skills (for protocol-agnostic networking).
- Depends on: security-skills (for encryption in protocols like Zigbee).
- Connected via: iot tag, allowing cross-skill queries in OpenClaw's graph.