Closed Bjsulla closed 7 years ago
remove the accessory and add it again this way:
{
"name":"outdoor_temp",
"service":"TemperatureSensor",
"CurrentTemperature": {
"minValue": -20,
"maxValue": 60,
"minStep": 1
}
}
change minValue
and maxValue
for your need
Worked great. Thank you!
Perhaps a beginners question but I have a problem with handling negative temperature values. Sending a command with the following payload works: {payload:{"name": "outdoor_temp", "characteristic": "CurrentTemperature", "value": "7"}}
But if I instead issue the command {payload:{"name": "outdoor_temp", "characteristic": "CurrentTemperature", "value": "-7"}} I get the following error: [mqtt] Accessory.parse outdoor_temp CurrentTemperature value '-7' outside range.
Is there any way to work around negative values?