ตัวควบคุมอุณหภูมิ Smart Home
action.devices.types.THERMOSTAT
- ตัวควบคุมอุณหภูมิคืออุปกรณ์สําหรับจัดการอุณหภูมิ พร้อมตั้งค่าจุดและโหมด ซึ่งจะแยกตัวออกจากเครื่องทําความร้อนและเครื่องปรับอากาศ และอาจมีเพียงโหมดและการตั้งค่าเท่านั้น (เช่น สูง/ต่ํา) กับอุณหภูมิเป้าหมาย
ข้อความประเภทนี้ระบุว่าอุปกรณ์จะได้รับไอคอนตัวควบคุมอุณหภูมิ รวมถึงคําพ้องความหมายและชื่อแทนที่เกี่ยวข้องบางรายการ
อุปกรณ์ควบคุมอุณหภูมิประเภทนี้ ขณะที่ห้องทําความร้อน/ห้องเย็นบางห้องมีการควบคุมที่ต่างกันและโหมดสูง/ต่ํา แต่ไม่ใช่การควบคุมอุณหภูมิความสามารถของอุปกรณ์
อ่านรายละเอียดเกี่ยวกับลักษณะการใช้งาน เช่น แอตทริบิวต์และรัฐที่บริการควรรองรับ ตลอดจนวิธีสร้างการตอบกลับ "EXECUTE" และ "QUERY"
ลักษณะเฉพาะที่จําเป็น
ต้องมีลักษณะเฉพาะและคําสั่งเหล่านี้ หากเกี่ยวข้องกับอุปกรณ์ของคุณ
คําสั่งตัวควบคุมอุณหภูมิมักจะเชื่อมโยงอยู่กับ Intent EXECUTE
ผู้ใช้ที่ระบุว่า *ตั้งค่าความร้อนเป็น 72* จะสร้างคําสั่งโหมดตามด้วยอุณหภูมิที่กําหนด
ข้อกำหนดด้านคุณภาพ
- เวลาในการตอบสนอง: ต้องน้อยกว่าหรือเท่ากับ 700 มิลลิวินาที
- ความเสถียร: ต้องมากกว่าหรือเท่ากับ 97%
ตัวอย่างอุปกรณ์: ตัวควบคุมอุณหภูมิแบบง่าย
ส่วนนี้ประกอบด้วยเพย์โหลดตัวอย่างของตัวอย่างที่สื่อถึง "ตัวควบคุมอุณหภูมิ" ที่พบบ่อย ซึ่งอิงตามประเภทอุปกรณ์และลักษณะข้างต้น หากคุณเพิ่มหรือนําลักษณะเฉพาะออกจากการใช้งาน ให้แก้ไขคําตอบให้สอดคล้องกับการเปลี่ยนแปลงเหล่านั้น
ตัวอย่างการตอบกลับ SYNC
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.THERMOSTAT", "traits": [ "action.devices.traits.TemperatureSetting" ], "name": { "name": "Simple thermostat" }, "willReportState": true, "attributes": { "availableThermostatModes": [ "off", "heat", "cool", "heatcool", "on" ], "thermostatTemperatureRange": { "minThresholdCelsius": 15, "maxThresholdCelsius": 30 }, "thermostatTemperatureUnit": "F" }, "deviceInfo": { "manufacturer": "smart-home-inc", "model": "hs1234", "hwVersion": "3.2", "swVersion": "11.4" } } ] } }
ตัวอย่างการตอบกลับ QUERY
{ "requestId": "6894439706274654514", "inputs": [ { "intent": "action.devices.QUERY", "payload": { "devices": [ { "id": "123" } ] } } ] }
{ "requestId": "6894439706274654514", "payload": { "devices": { "123": { "status": "SUCCESS", "online": true, "thermostatMode": "cool", "thermostatTemperatureSetpoint": 23, "thermostatTemperatureAmbient": 25.1, "thermostatHumidityAmbient": 45.3 } } } }
ตัวอย่างคําสั่ง EXECUTE
ตัวควบคุมอุณหภูมิอุณหภูมิที่กําหนด
โปรดดูรายละเอียดเพิ่มเติมเกี่ยวกับพารามิเตอร์คําสั่งในข้อมูลอ้างอิง
action.devices.traits.TemperatureSetting
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatTemperatureSetpoint", "params": { "thermostatTemperatureSetpoint": 22 } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "cool", "thermostatTemperatureSetpoint": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }
ช่วงอุณหภูมิควบคุมอุณหภูมิ
โปรดดูรายละเอียดเพิ่มเติมเกี่ยวกับพารามิเตอร์คําสั่งในข้อมูลอ้างอิง
action.devices.traits.TemperatureSetting
{ "requestId": "6894439706274654518", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatTemperatureSetRange", "params": { "thermostatTemperatureSetpointHigh": 26, "thermostatTemperatureSetpointLow": 22 } } ] } ] } } ] }
{ "requestId": "6894439706274654518", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heatcool", "thermostatTemperatureSetpointHigh": 26, "thermostatTemperatureSetpointLow": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }
โหมดตัวควบคุมอุณหภูมิ
โปรดดูรายละเอียดเพิ่มเติมเกี่ยวกับพารามิเตอร์คําสั่งในข้อมูลอ้างอิง
action.devices.traits.TemperatureSetting
{ "requestId": "6894439706274654520", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatSetMode", "params": { "thermostatMode": "heatcool" } } ] } ] } } ] }
{ "requestId": "6894439706274654520", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heatcool", "thermostatTemperatureSetpointHigh": 26, "thermostatTemperatureSetpointLow": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }
อุปกรณ์ ERRORS
ดูรายการข้อผิดพลาดและข้อยกเว้นทั้งหมดinHeatOrCool
- คําสั่งทําความร้อน/ทําความเย็น/ช่วงไม่สําเร็จเนื่องจากอุปกรณ์ทําความร้อนหรือทําความเย็นอย่างชัดเจนinHeatCool
- คําสั่งทําความร้อนหรือทําความเย็นล้มเหลวเพราะอุปกรณ์ร้อนหรือเย็นlockedToRange
- ล็อกอุปกรณ์โดยอยู่ในช่วงหรือโหมดอุณหภูมิ แล้วทําการเปลี่ยนแปลงไม่ได้rangeTooClose
- จุดวัดอุณหภูมิในช่วงทําความร้อน • อยู่ใกล้กันเกินไป