我正在使用 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'
}
}]
}
};
});