Open rmasonjr opened 2 years ago
With HS 4.2.15.0 I cannot reproduce this exact issue, but I see some other issues with the "less than" trigger and this feature.
That being said it is a bit strange to have the exact same status set to a range of values. If you remove the status and add a prefix/suffix instead, the event works correctly, and the status gives you the exact battery %
Environment and System Config
Describe the issue I am creating a Feature on a Root device using the following code: ff = FeatureFactory.CreateFeature(OMNI_NAME) ff.OnDevice(rootRef) ff.AsType(EFeatureType.Generic, EGenericFeatureSubType.Battery) ff.WithName("battery") ff.WithLocation(OMNI_NAME) ff.WithLocation2(OMNI_NAME) ff.WithDefaultValue(0) ff.AddGraphicForRange(g_imageFileLocation & "batteryDead_64.png", 0, 10.0, "Battery Dead") ff.AddGraphicForRange(g_imageFileLocation & "battery50_64.png", 10.01, 11.22, "Battery Less Than 50%") ff.AddGraphicForRange(g_imageFileLocation & "battery75_64.png", 11.23, 11.94, "Battery Less Than 75%") ff.AddGraphicForRange(g_imageFileLocation & "batteryFull_64.png", 11.95, 99, "Battery Ok")
If you try and create an Event, the Event engine will not allow it to save:
Steps to Reproduce Steps to reproduce the behavior:
Expected behavior Event engine should allow a save
Screenshots See above
Logs n/a
Additional info n/a