HomeSeer / Plugin-SDK

Plugin development kit for the 4th major edition of the HomeSeer platform.
https://www.nuget.org/packages/HomeSeer-PluginSDK/
GNU Affero General Public License v3.0
20 stars 4 forks source link

StatusControl IsRange is not set? #343

Open alexbk66 opened 1 year ago

alexbk66 commented 1 year ago

PluginSDK 1.4.3.0

When I create StatusControl with ValueRange, the StatusControl.IsRange is not set to 'true'. I have to set it explicitly.

image

It must be broken at some point - because initially StatusControl.IsRange used to be set to 'true' automatically.

image

image

Another issue with the range (probably should be a separate ticket) - in the event action configuration the values for the range (0 -1023) have increment of 4. How can I select value '1' for example?

image

spudwebb commented 1 year ago

What EControlType is this StatusControl? IsRange is set to true automatically only if the StatusControl type is EControlType.ValueRangeDropDown or EControlType.ValueRangeSlider I don't think this has changed recently.

alexbk66 commented 1 year ago

I'm using EControlType.TextBoxNumber so the user can enter exact value. ValueRangeSlider is not precise for this, ValueRangeDropDown can be too awkward to use if the range is big.

I think the behaviour should not depend on the UI control chosen, especially if user can change the type. This is just wrong.

alexbk66 commented 1 year ago

Another issue with the range (probably should be a separate ticket) - in the event action configuration the values for the range (0 -1023) have increment of 4. How can I select value '1' for example?

alexbk66 commented 1 year ago

Anybody?