{*** Tooltip for troubleshooting purposes
***}
|
{#if $T.line.displayname}{$T.line.displayname}{#else}{$T.line.name}{#/if}
|
{* STATUS IS DISPLAYED HERE *}
{#if $T.line.refreshOpt=="Var" || ($T.line.typeControl=="Var" && (!$T.line.refreshOpt || $T.line.refreshOpt=="All")) }
| {* Variable output displayed here *}
{#elseif $T.line.refreshOpt=="Pgm" || ($T.line.typeControl=="Pgm" && (!$T.line.refreshOpt || $T.line.refreshOpt=="All")) } {* Default refresh Opt for a Program is "Pgm" *}
| {* Program status goes here *}
{#else}
| {* Device status goes here. This tag is also a placeholder for the current level 0-255 *}
{#/if}
{* CONTROLS DISPLAYED HERE *}
{#if $T.line.hideControls=="Yes"} {* Hide Controls, just display the Status. *}
|
{#elseif $T.line.typeControl=="Pgm"} {* BUTTONS FOR PROGRAMS *}
{#if $T.line.programId && (!$T.line.refreshOpt || $T.line.refreshOpt!="Var" || ($T.line.refreshOpt=="Var" && ($T.line.varId && $T.line.varType)))} {* If we can insert a real button now *}
|
{#else}
{* Buttons for program control will be inserted here dynamically at init time based on variables from the div below. Dummy buttons are inserted for now. They will be overwritten with the proper onlick *}
|
{#/if}
{#elseif $T.line.typeControl=="Var"} {* BUTTONS FOR VARIABLES *}
{#if $T.line.varId && $T.line.varType} {* If Id & Type are supplied, we can insert a real button now *}
|
{#else}
{* Buttons for variable control will be inserted here dynamically at init time based on variable name and other data from the div below. Dummy buttons are inserted for now. They will be overwritten with the proper onclick with processVarButtons()*}
|
{#/if}
{#if $T.line.typeControl == "Var" && (($T.line.varControl=="1") || ($T.line.varControl==undefined))} {* add a variable slider *}
|
{#/if}
{#elseif $T.line.specControls=="doorlock"} {* BUTTONS FOR A DOORLOCK *}
|
{#elseif $T.line.specControls=="stat"} {* BUTTONS FOR A Thermostat *}
{**** ****}
|
{#else} {* BUTTONS FOR ALL OTHER DEVICES, Z-Wave or Insteon *}
|
{* SLIDERS FOR DEVICES ARE INSERTED HERE *}
{#if $T.line.dimmer255 } {* Device is a dimmer 0-255, add the slider *}
|
{#/if}
{#if $T.line.dimmer100 } {* Device is a dimmer 0-100, add the slider *}
{* slid100 is a slider working on a scale from 0 to 100 *}
|
{#/if}
{#/if}
{#/for}
{#/for}