Actions on google 智能家居温度设置读数(摄氏度)自定义范围
我正在使用action.devices.types.恒温器和action.devices.traits.Temperature设置,我想将摄氏度的自定义范围设置为16到28。是否可能?我尝试过使用BufferRangeCellius属性,但它对范围和默认的摄氏度范围(从10到32)没有产生任何影响,我尝试过如下所示Actions on google 智能家居温度设置读数(摄氏度)自定义范围,actions-on-google,google-smart-home,nodejs-server,Actions On Google,Google Smart Home,Nodejs Server,我正在使用action.devices.types.恒温器和action.devices.traits.Temperature设置,我想将摄氏度的自定义范围设置为16到28。是否可能?我尝试过使用BufferRangeCellius属性,但它对范围和默认的摄氏度范围(从10到32)没有产生任何影响,我尝试过如下所示 app.onSync((body, headers) => { return { requestId: body.requestId, payload: {
app.onSync((body, headers) => {
return {
requestId: body.requestId,
payload: {
agentUserId: '1836.15267389',
devices: [{
id: '123',
type: 'action.devices.types.THERMOSTAT',
traits: [
'action.devices.traits.TemperatureSetting'
],
name: {
defaultNames: ['Honeywell Thermostat T-1000'],
name: 'Homer Simpson Thermostat',
nicknames: ['living room thermostat']
},
willReportState: false,
attributes: {
availableThermostatModes: 'off,heat,cool,on',
thermostatTemperatureUnit: 'C',
bufferRangeCelsius : 16-28
},
deviceInfo: {
manufacturer: 'honeywell',
model: 't-1000',
hwVersion: '3.2',
swVersion: '11.4'
},
customData: {
fooValue: 74,
barValue: true,
bazValue: 'lambtwirl'
}
}]
}
};
});
bufferRangeCellius
属性用于报告heatcool
模式下两个设定点之间的最小差值,并且不影响允许设定点的最小/最大范围(当文档提到范围时,它们通常指的是当前低和高设定点之间的距离)
API当前不支持报告恒温器温度控制的完全支持范围。如果您的服务收到将温度设置在支持范围之外的请求,请返回valueOutOfRange
错误响应:
{
"requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
"payload": {
"commands": [
{
"ids": ["123"],
"status": "ERROR",
"errorCode": "valueOutOfRange"
}
]
}
}
是否有其他特征可以用来设置自定义范围?我曾将其用于ac(action.devices.types.ac_UNIT),但ac特征在滑动范围上没有触发事件,因此我们可以获得更改的值。目前没有,但我欢迎您在公共问题跟踪器上提交功能请求,详细说明您的需求: