06.01.2013 Aufrufe

Migration - Smarthome-Components

Migration - Smarthome-Components

Migration - Smarthome-Components

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

}<br />

break;<br />

}<br />

break;<br />

case SC_DIRECTION_DOWN:<br />

MXC_ShutterMoveDown($_IPS['INSTANCE']);<br />

if($_IPS['DURATION'] > 0)<br />

{<br />

}<br />

break;<br />

IPS_Sleep($_IPS['DURATION']);<br />

MXC_ShutterStop($_IPS['INSTANCE']);<br />

case "{2D871359-14D8-493F-9B01-26432E3A710F}": //LCN<br />

$type=LCN_GetUnit($_IPS['INSTANCE']);<br />

switch($type)<br />

{<br />

case 0: //Ausgänge<br />

switch($_IPS['DIRECTION'])<br />

{<br />

}<br />

break;<br />

case SC_DIRECTION_STOP:<br />

LCN_SetIntensity($_IPS['INSTANCE'],0,0);<br />

LCN_SetIntensity($_IPS['INSTANCE2'],0,0);<br />

break;<br />

case SC_DIRECTION_UP:<br />

LCN_SetIntensity($_IPS['INSTANCE'],100,4);<br />

if($_IPS['DURATION'] > 0)<br />

{<br />

IPS_Sleep($_IPS['DURATION']);<br />

LCN_SetIntensity($_IPS['INSTANCE'],0,0);<br />

}<br />

break;<br />

case SC_DIRECTION_DOWN:<br />

LCN_SetIntensity($_IPS['INSTANCE2'],100,4);<br />

if($_IPS['DURATION'] > 0)<br />

{<br />

IPS_Sleep($_IPS['DURATION']);<br />

LCN_SetIntensity($_IPS['INSTANCE2'],0,0);<br />

}<br />

case 2: //Reais<br />

break;<br />

switch($_IPS['DIRECTION'])<br />

{<br />

case SC_DIRECTION_STOP:<br />

LCN_SwitchRelay($_IPS['INSTANCE'],false);<br />

break;<br />

case SC_DIRECTION_UP:<br />

LCN_SwitchRelay($_IPS['INSTANCE'],true);<br />

LCN_SwitchRelay($_IPS['INSTANCE2'],false); // Um Relaisrichtung zu ändern bitte auf true<br />

if($_IPS['DURATION'] > 0)<br />

{<br />

}<br />

break;<br />

IPS_Sleep($_IPS['DURATION']);<br />

LCN_SwitchRelay($_IPS['INSTANCE'],false);<br />

case SC_DIRECTION_DOWN:<br />

LCN_SwitchRelay($_IPS['INSTANCE'],true);<br />

LCN_SwitchRelay($_IPS['INSTANCE2'],true);// Um Relaisrichtung zu ändern bitte auf false

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!