我正在将action.devices.types.THERMOSTAT与action.devices.traits.TemperatureSetting一起使用,我想将摄氏温度的自定义范围设置为16到28吗?我尝试使用bufferRangeCelsius属性,但对范围没有任何影响,默认的摄氏温度范围为10到32,我尝试了如下操作,
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'
}
}]
}
};
});