0
Declined

Cater for Level values that are not natively a percentage

Paul G 6 years ago updated by Alex (ActionTiles) (Co-Founder) 6 years ago 1

Actiontiles appears to append a percent symbol to every level displayed on a tile... - I've not found any indication that this is user configurable...


I have devices exposed in ST (CBUS lights) that do not store levels as a percentage (which would only allow 100 distinct dim levels), but rather the level is a value in the 0-255 range, which allows a greater range of dim levels...


This means I get get tiles that show a level value of 255% - obviously not ideal... the 'best' way to deal with this would be IMO, to allow the user to specify how to display the level... (i.e. as a percentage, or a raw level value, and to handle the conversion if I choose to have a raw value displayed as a %).  
When you read a level value from ST, can you make it user-configurable whether that is interpreted as a raw level in the 0-255 range, or a % level in the 0-100 range, - and handle the conversion so that a value which is the correct % is always calculated & shown on the tile?...


That way, I can have the correct level values shown on tiles as a true % value (i.e. 255=100%) ->  (<current level> / 255) * 100 = the % value to show on the tile...


This should be configurable on a per-tile basis, as I do also have other devices which use 0-100 level values... the range upper value should also be configurable, as there may at some point be other devices which use other level range min & max values (although I'm not aware of such devices currently). Thus the calculation would be: (<current level> / <rangeupper>) * 100 = the % value to show on the tile...


Doable??
:-)
Paul G

Answer

Answer
Declined

Hi Paul,


As a Works With SmartThings application, ActionTiles conforms to device capabilities per official API.


Per ST Documentation, Switch Level attribute is a value between 0 and 100, therefore the value is representing a percentage.


If you are using a custom DTH, please contact the developer to add conversion in the DTH. We don't support non-conforming DTHs.


Thanks


Alex

Answer
Declined

Hi Paul,


As a Works With SmartThings application, ActionTiles conforms to device capabilities per official API.


Per ST Documentation, Switch Level attribute is a value between 0 and 100, therefore the value is representing a percentage.


If you are using a custom DTH, please contact the developer to add conversion in the DTH. We don't support non-conforming DTHs.


Thanks


Alex

Commenting disabled