| Next revision | Previous revision |
| indigo_2025.1_documentation:variable_class [2025/09/22 19:58] – created - external edit 127.0.0.1 | indigo_2025.1_documentation:variable_class [2026/03/03 19:26] (current) – davel17 |
|---|
| |//''id''//| integer |the unique id of the variable, assigned on creation by IndigoServer| | |//''id''//| integer |the unique id of the variable, assigned on creation by IndigoServer| |
| |//''folderId''//| integer |the unique id of the folder this variable is in (0 if it's not in a folder) - use //''moveToFolder()''// method to change| | |//''folderId''//| integer |the unique id of the folder this variable is in (0 if it's not in a folder) - use //''moveToFolder()''// method to change| |
| |//''name''//| string |the name of the variable - no two variable can have the same name| | |//''name''//| string |the name of the variable - no two variable can have the same name and the name cannot contain whitespace| |
| |//''readOnly''//| string |is the variable read only - currently only the //''isDaylight''// variable is read only| | |//''readOnly''//| string |is the variable read only - currently only the //''isDaylight''// variable is read only| |
| |//''remoteDisplay''//| boolean |should this variable be displayed in remote clients (IWS, Indigo Touch, etc)| | |//''remoteDisplay''//| boolean |should this variable be displayed in remote clients (IWS, Indigo Touch, etc)| |
| ^ Parameters ^^^^ | ^ Parameters ^^^^ |
| ^ Parameter ^ Required ^ Type ^ Description ^ | ^ Parameter ^ Required ^ Type ^ Description ^ |
| |//''folder''//| No | integer |id or instance of the folder in which to put the newly created device - defaults to 0 (no folder)| | |direct parameter| Yes | string |the name of the variable| |
| |//''name''//| Yes | string |the name of the variable| | |
| |//''value''//| No | string |the value of the variable| | |//''value''//| No | string |the value of the variable| |
| | |//''folder''//| No | integer |id or instance of the folder in which to put the newly created device - defaults to 0 (no folder)| |
| |
| === Delete === | === Delete === |
| |
| ^ Command Syntax Examples ^ | ^ Command Syntax Examples ^ |
| |<code>depDict = indigo.variable.getDependencies(123)</code>| | |<code>indigo.variable.getDependencies(123)</code>| |
| |
| ^ Parameters ^^^^ | ^ Parameters ^^^^ |