User Tools

Site Tools


dictionary:unitinformation:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dictionary:unitinformation:index [2023/02/13 14:52] – external edit 127.0.0.1dictionary:unitinformation:index [2024/03/28 13:45] (current) – added xtCurrentLabel to the page James Sentman
Line 44: Line 44:
 see also: [[dictionary:unitcontrol:block|block]], [[dictionary:unitcontrol:unblock|unblock]], [[dictionary:unitcontrol:removeallblocks|remove all blocks]] see also: [[dictionary:unitcontrol:block|block]], [[dictionary:unitcontrol:unblock|unblock]], [[dictionary:unitcontrol:removeallblocks|remove all blocks]]
  
 +----
 +**xtCurrentLabel:** (read only string) returns the current fully formatted or display text of a Unit. A humidity sensor that displayed as “30%” would return that as a string. A perimeter Unit that displayed “open” or “closed” would return that string. Note that it may be necessary to cast this value to text before it can be sent to things like a write log command.
 +<code>
 +write log “the name of the HVAC mode is: “ & (xtCurrentLabel of xUnit “HVAC Mode”) as text
 +</code>
  
 ---- ----
dictionary/unitinformation/index.txt · Last modified: 2024/03/28 13:45 by James Sentman