rule "Schattenprogramm einschalten" when Item Localweather_ApparentTemperature changed then if ((Anwesenheit.state == OFF) && (Localweather_ApparentTemperature.state > 24 [℃]) && (Schattenprogramm.state == OFF)){ Schattenprogramm.postUpdate(ON) } end rule "Abschattieren" when Item Schattenprogramm changed to ON then RolllaedenAutomatik.sendCommand(DOWN) if (Anwesenheit.state == ON) { createTimer(now.plusSeconds(13)) [| RolllaedenAutomatik.sendCommand(STOP) ] } end rule "Schattenprogramm ausschalten" when Item Schattenprogramm changed from ON to OFF then RolllaedenAutomatik.sendCommand(UP) end