Akıllı Ev Isıtıcısı Kılavuzu
action.devices.types.HEATER
: Isıtıcılar termostatlara benzer ancak soğutmayı desteklemez ve sıcaklık hedefleri belirlemeyi desteklemeyebilir.
Bu tür, cihazın Isıtıcı simgesini ve bazı ilgili eş anlamlı kelimeleri ve takma adları aldığını gösterir.
Cihaz özellikleri
Hizmetinizin desteklemesi gereken özellikler ve durumlar gibi uygulama ayrıntıları ve EXECUTE ile QUERY yanıtlarının nasıl oluşturulacağı hakkında bilgi edinmek için ilgili özellik dokümanlarına bakın.
Zorunlu özellikler
Cihazınız için geçerliyse bu özellikler ve komutlar gereklidir. Cihazınız bu özellikleri desteklemiyorsa bir QUERY veya EXECUTE yanıtına functionNotSupported
hata kodunu girin. Daha fazla bilgi için Hatalar ve istisnalar bölümüne bakın.
Önerilen özellikler
Cihazınız için geçerliyse bu özellikler önerilir. Ancak mevcut ürün işlevinize en uygun şekilde tüm özellikleri bir araya getirebilirsiniz.
Kalite gereksinimleri
- Gecikme: 1000 ms'den az veya bu değere eşit olmalıdır.
- Güvenilirlik: %97'den büyük veya buna eşit olmalıdır.
Örnek cihaz: Basit ısıtıcı
Bu bölümde, yukarıdaki cihaz türüne ve özelliklere göre yaygın bir "Isıtıcı"yı temsil eden örnek intent yüklemeleri bulunmaktadır. Uygulamanızda özellik ekler veya kaldırırsanız bu değişiklikleri yansıtacak şekilde yanıtlarınızı değiştirin.
Örnek SYNC yanıtı
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.HEATER", "traits": [ "action.devices.traits.FanSpeed", "action.devices.traits.TemperatureSetting" ], "name": { "name": "Simple heater" }, "willReportState": true, "attributes": { "availableFanSpeeds": { "speeds": [ { "speed_name": "low_key", "speed_values": [ { "speed_synonym": [ "Low", "Slow" ], "lang": "en" } ] }, { "speed_name": "high_key", "speed_values": [ { "speed_synonym": [ "High" ], "lang": "en" } ] } ], "ordered": true }, "availableThermostatModes": [ "off", "heat", "fan-only", "on" ], "thermostatTemperatureUnit": "C" }, "deviceInfo": { "manufacturer": "smart-home-inc", "model": "hs1234", "hwVersion": "3.2", "swVersion": "11.4" } } ] } }
Örnek QUERY yanıtı
{ "requestId": "6894439706274654514", "inputs": [ { "intent": "action.devices.QUERY", "payload": { "devices": [ { "id": "123" } ] } } ] }
{ "requestId": "6894439706274654514", "payload": { "devices": { "123": { "status": "SUCCESS", "online": true, "currentFanSpeedSetting": "low_key", "thermostatMode": "heat", "thermostatTemperatureSetpoint": 30, "thermostatTemperatureAmbient": 25 } } } }
Örnek EXECUTE komutları
SetFanSpeed
Komut parametreleri hakkında daha fazla bilgi için
action.devices.traits.FanSpeed
referansına bakın.
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.SetFanSpeed", "params": { "fanSpeed": "high_key" } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentFanSpeedSetting": "high_key" } } ] } }
ThermostatTemperatureSetpoint
Komut parametreleri hakkında daha fazla bilgi için
action.devices.traits.TemperatureSetting
referansına bakın.
{ "requestId": "6894439706274654518", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatTemperatureSetpoint", "params": { "thermostatTemperatureSetpoint": 28 } } ] } ] } } ] }
{ "requestId": "6894439706274654518", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heat", "thermostatTemperatureSetpoint": 28, "thermostatTemperatureAmbient": 25 } } ] } }
ThermostatSetMode
Komut parametreleri hakkında daha fazla bilgi için
action.devices.traits.TemperatureSetting
referansına bakın.
{ "requestId": "6894439706274654520", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatSetMode", "params": { "thermostatMode": "heat" } } ] } ] } } ] }
{ "requestId": "6894439706274654520", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heat", "thermostatTemperatureSetpoint": 30, "thermostatTemperatureAmbient": 25 } } ] } }