I've been trying to get my features to display properly by adding a StatusGraphic to them. Most of these are numeric values that fall within a specific range. When I configure the StatusGrapic range and set IsRange to true, all the range information seems to be ignored. I've dumped both the StatusGraphic and the feature info below. For this case I'm changing the value of the feature to 57.6 using UpdateFeatureValueByRef().
The StatusGraphic
After the update, I dump the feature itself:
After the update, the value does indeed change to 57.6, but the status remains blank. In the List view GUI this gets displayed as:
Dim 57.6% Dewpoint
It seems to completely ignore my range prefix (hello kitty) and my range suffix and instead is using what appears to be default prefix and suffix values.
On the other hand, if I create a StatusGraphics with IsRange set to false and have labels configured for specific values, the labels are correctly displayed in the GUI.
The StatusGraphic
Code:
--------- Device status graphics ------ Graphic = c:/Program Files (x86)/HomeSeer HS4/html/images/HomeSeer/contemporary/Thermometer-10 0.png IsRange = True Label = RangeMax = 200 RangeMin = -200 Value = -200 min = -200 max = 200 prefix = hello kitty suffix = °F decimals = 1
Code:
Dumping information for Dewpoint(1033) Address: AR-00013142-4 Image: Interface: HS4WeatherFlow LastChange: 9/27/2019 2:20:13 PM Location: Location2: Misc: 272 Relationship: Feature Status: UserAccess: Any UserNote: Value: 57.6 VoiceCommand: PlugExtraData: 6 - decimal_places = 1 - default_uid = 1 - type = 6 - uid = 2 - unit_type = 1 - units = 2 Update returned true.
Dim 57.6% Dewpoint
It seems to completely ignore my range prefix (hello kitty) and my range suffix and instead is using what appears to be default prefix and suffix values.
On the other hand, if I create a StatusGraphics with IsRange set to false and have labels configured for specific values, the labels are correctly displayed in the GUI.
Comment