View a markdown version of this page

中的 HVAC 系統的輸入定義 AWS IoT Events - AWS IoT Events

支援終止通知:2026 年 5 月 20 日, AWS 將終止對 的支援 AWS IoT Events。2026 年 5 月 20 日之後,您將無法再存取 AWS IoT Events 主控台或 AWS IoT Events 資源。如需詳細資訊,請參閱AWS IoT Events 終止支援

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

中的 HVAC 系統的輸入定義 AWS IoT Events

seedTemperatureInput 用於建立區域的偵測器執行個體,並定義其操作參數。

在 中設定 HVAC 系統的輸入對於有效的氣候控制 AWS IoT Events 至關重要。此範例說明如何設定擷取參數的輸入,例如溫度、濕度、佔用率和能源消耗資料。了解如何定義輸入屬性、設定資料來源和設定預先處理規則,以協助偵測器模型接收準確且及時的資訊,以獲得最佳管理和效率。

使用的 CLI 命令:

aws iotevents create-input --cli-input-json file://seedInput.json

檔案: seedInput.json

{ "inputName": "seedTemperatureInput", "inputDescription": "Temperature seed values.", "inputDefinition": { "attributes": [ { "jsonPath": "areaId" }, { "jsonPath": "desiredTemperature" }, { "jsonPath": "allowedError" }, { "jsonPath": "rangeHigh" }, { "jsonPath": "rangeLow" }, { "jsonPath": "anomalousHigh" }, { "jsonPath": "anomalousLow" }, { "jsonPath": "sensorCount" }, { "jsonPath": "noDelay" } ] } }

回應:

{ "inputConfiguration": { "status": "ACTIVE", "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/seedTemperatureInput", "lastUpdateTime": 1557519620.736, "creationTime": 1557519620.736, "inputName": "seedTemperatureInput", "inputDescription": "Temperature seed values." } }

應視需要由每個區域中的每個感應器temperatureInput傳送 。

使用的 CLI 命令:

aws iotevents create-input --cli-input-json file://temperatureInput.json

檔案: temperatureInput.json

{ "inputName": "temperatureInput", "inputDescription": "Temperature sensor unit data.", "inputDefinition": { "attributes": [ { "jsonPath": "sensorId" }, { "jsonPath": "areaId" }, { "jsonPath": "sensorData.temperature" } ] } }

回應:

{ "inputConfiguration": { "status": "ACTIVE", "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/temperatureInput", "lastUpdateTime": 1557519707.399, "creationTime": 1557519707.399, "inputName": "temperatureInput", "inputDescription": "Temperature sensor unit data." } }