Polisy Developers:ISY:API:Appendix:Node Definitions: Difference between revisions

From Universal Devices, Inc. Wiki
Jump to navigation Jump to search
(Copied from Isy V5)
 
m (Fix link to status names)
 
Line 45: Line 45:
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| rowspan="3" |'''''<st>'''''
| rowspan="3" |'''''<st>'''''
|id    || One of the predefined [[ISY Developers:API:Polisy:Appendix:Status_Names | status names]] e.g. "CLISPH"
|id    || One of the predefined [[Polisy_Developers:ISY:API:Appendix:Status_Names | status names]] e.g. "CLISPH"
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|editor || The id of the editor to use
|editor || The id of the editor to use

Latest revision as of 23:23, 4 April 2022


Polisy_Developers : ISY : API : Appendix : Node Definitions

 <nodeDefs>
    <nodeDef id="Thermostat" nls="143">
       <sts>
          <st id="ST" editor="I_TEMP_DEG" />
          <st id="CLISPH" editor="I_CLISPH_DEG" />
          <st id="CLISPC" editor="I_CLISPC_DEG" />
          <st id="CLIMD" editor="I_TSTAT_MODE" />
          <st id="CLIHCS" editor="I_TSTAT_HCS" />
          <st id="ERR" editor="I_ERR" hide="T" />
       </sts>
       <cmds>
          <sends>
             <cmd id="DON" />
             <cmd id="DOF" />
          </sends>
          <accepts>
             <cmd id="CLISPH">

</cmd> <cmd id="CLISPC">

</cmd> <cmd id="CLIMD">

</cmd> <cmd id="QUERY" /> </accepts> </cmds> </nodeDef> </nodeDefs>

<nodeDef> id Name of this node definition (e.g. "Thermostat")
nls NLS key string used to override names of commands, status and other elements.
<st> id One of the predefined status names e.g. "CLISPH"
editor The id of the editor to use
hide (Optional) Set to "T" or "True", hides status in views but is available in program conditions
<sends> The commands this node can send out. Used for control conditions in ISY programs and scene controllers.
<accepts> The commands this node accepts. Used for buttons etc. in ISY clients, and actions in ISY programs.
<cmd> id Name of a command.
<p> id Name of a command parameter. A command may have one unnamed parameter, all others must be named.
editor The id of the editor to use for this parameter
init (Optional) id of the <st> status value this parameter should be initialized and synchronized with. For example, CLISPH is both a status and a command.
optional (Optional) Set to "T" or "True" if this is an optional parameter
nls (Optional) NLS key string used to override name of parameter.