aber wie gesagt: „ohne Controller“
<?
// es wird nur eine Aktion ausgef�hrt, wenn Kombination AN & AUS vorhanden ist!
// --> nach Switch auf AUS muss wieder auf AN umgeschalten
// werden, damit die Aktion beim n�chsten Mal wieder ausgef�hrt werden kann
// Pin0 true Pin1 true --> keine Aktion
// Pin0 false Pin1 true --> Hochfahren
// Pin0 true Pin1 false --> Runterfahren
$IDSkriptRollosteuerung = 49695 /*[Ger�te\ShutterControl\Rollosteuerung]*/;
$x = array (); // leeres Array wird definiert
$x [] = array ( "Zimmer" => "Arbeiten", // nicht notwendig
"1Wire" => 1, // nicht notwendig
"IDShutterControl" => 32282,
"IDRolloBefehl" => 36829, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "K�che", // nicht notwendig
"1Wire" => 2, // nicht notwendig
"IDShutterControl" => 12885,
"IDRolloBefehl" => 57041, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "ErkerRechts", // nicht notwendig
"1Wire" => 3, // nicht notwendig
"IDShutterControl" => 37861,
"IDRolloBefehl" => 11254, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "ErkerVorne", // nicht notwendig
"1Wire" => 4, // nicht notwendig
"IDShutterControl" => 42701,
"IDRolloBefehl" => 50156, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 23190);
$x [] = array ( "Zimmer" => "ErkerLinks", // nicht notwendig
"1Wire" => 5, // nicht notwendig
"IDShutterControl" => 22918,
"IDRolloBefehl" => 28091, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "Wohnen", // nicht notwendig
"1Wire" => 6, // nicht notwendig
"IDShutterControl" => 29556,
"IDRolloBefehl" => 22591, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "Eltern", // nicht notwendig
"1Wire" => 7, // nicht notwendig
"IDShutterControl" => 53117,
"IDRolloBefehl" => 42924, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "KindWestW", // nicht notwendig
"1Wire" => 8, // nicht notwendig
"IDShutterControl" => 32180,
"IDRolloBefehl" => 22880, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "KindWestS", // nicht notwendig
"1Wire" => 9, // nicht notwendig
"IDShutterControl" => 59622,
"IDRolloBefehl" => 52155, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "KindOstS", // nicht notwendig
"1Wire" => 10, // nicht notwendig
"IDShutterControl" => 57282,
"IDRolloBefehl" => 48556, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "KindOstO", // nicht notwendig
"1Wire" => 11, // nicht notwendig
"IDShutterControl" => 28155,
"IDRolloBefehl" => 55466, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
$x [] = array ( "Zimmer" => "BadOG", // nicht notwendig
"1Wire" => 12, // nicht notwendig
"IDShutterControl" => 32878,
"IDRolloBefehl" => 52188, //0:keine Aktion 1:Hochfahren 2:Runterfahren
"IDRolloStand" => 0);
for($i=0; $i < count($x); $i++)
{
$IDShutterControl = $x[$i]["IDShutterControl"];
$IDRolloBefehl = $x[$i]["IDRolloBefehl"];
$RolloBefehl = GetValueInteger ($IDRolloBefehl );
// Aktion ausf�hren
if ($RolloBefehl > 0 )
{
// Hochfahren
if ($RolloBefehl == 1 )
{
TMEX_F3A_SetPin($IDShutterControl , 0, false); //Pin 0 Hochfahren
TMEX_F3A_SetPin($IDShutterControl , 0, true); //Pin 0 Hochfahren
}
// Runterfahren
else
{
TMEX_F3A_SetPin($IDShutterControl , 1, false); //Pin 1 Runterfahren
TMEX_F3A_SetPin($IDShutterControl , 1, true); //Pin 1 Runterfahren
}
SetValueInteger ($IDRolloBefehl , 0 );
}
}
// Rollo_Stand: "Window"
IPS_SetScriptTimer($IDSkriptRollosteuerung, 110); //60s * 60min * 24h *31Tage
?>