-
Notifications
You must be signed in to change notification settings - Fork 521
Open
Description
Description:
The current ranges for tempOffset and humidityOffset configurations are too limited. The tempOffset is restricted to -10 to 10, and the humidityOffset is also restricted to -10 to 10. To provide greater flexibility for calibration, these ranges need to be expanded:
tempOffset:-20to20humidityOffset:-20to20
Steps to Reproduce:
- Access the
tempOffsetorhumidityOffsetin device preferences of a temperature/humidity sensor. - Attempt to set values outside the respective ranges (
-10to10for both). - Observe that the system rejects these values.
Expected Behavior:
Both tempOffset and humidityOffset should support expanded ranges:
tempOffset: Accept values between-20and20.humidityOffset: Accept values between-20and20.
Actual Behavior:
tempOffsetis restricted to values between-10and10.humidityOffsetis restricted to values between-10and10.
Suggested Fix:
Update the tempOffset and humidityOffset range definitions in the firmware (I guess):
tempOffset = {
definition = {
default = 0,
maximum = 20,
minimum = -20,
},
description = "Temperature Offset",
preferenceType = "number",
title = "TempOffset",
}
humidityOffset = {
definition = {
default = 0,
maximum = 20,
minimum = -20,
},
description = "Enter a percentage to adjust the humidity.",
preferenceType = "integer",
title = "Humidity Offset",
}Additional Context:
Expanding these ranges ensures compatibility with a wider variety of cases that require larger calibration adjustments.
Metadata
Metadata
Assignees
Labels
No labels