Dropdown controls using Divisor default to the non-divided value #351
Labels
HS Core
This issue involves changes to core HS systems. NOT FOR PLUGINS
To Do
This issue is in need of attention
UI Visual Problem
This problem is causing the UI to display something incorrectly
Environment
HomeSeer
OS
Windows
HS Version
v4.2.19.0
Development
PSDK Version
v1.4.4
Language
VB
IDE
VS2022
Dev OS
Windows
Page
Devices
Problem
Description
I implemented the new Divisor property for my thermostat setpoint control, which is a dropdown that now can display 0.5-degree increments (yay!). Normally, when a dropdown control is used, the selected item is set to the current value (I'm sure by matching up the device value to the option key). The problem seems to be that the Divisor property only changes the display value, not the actual underlying value that the dropdown sends, but the logic that sets which item should be selected by default doesn't take the divisor into account by either multiplying the device value or comparing to the display value instead.
Also, the Status Controls show min/max without accounting for the divisor and showing the raw values (20 to 60, for example), not the adjusted values (10 to 30 if divisor is 2).
Screenshots
Attach screenshots showing what you are seeing.
Expected Behavior
Basically, the assumption is that raw CAPI values are used when talking between HS and the plugin, but divided values should be used in the UI for CAPI controls and settings.
Steps to Reproduce
Provide steps so the HomeSeer team can reproduce the reported problem and see the same thing:
The text was updated successfully, but these errors were encountered: