//Rolladen Morgens hoch
rule Rolladen_hoch_fahren
when Channel 'astro:sun:local:rise#event' triggered START
then
	if(settings_rolladenautomatik.state==ON)
	{
		//Rolladenaktor_Rollo_Kanal_A.sendCommand(UP)
		Rolladenaktor_Rollo_Kanal_B.sendCommand(UP)
		Rolladenaktor_Rollo_Kanal_C.sendCommand(UP)
		Rolladenaktor_Rollo_Kanal_D.sendCommand(UP)
		Rolladenaktor_Rollo_Kanal_E.sendCommand(UP)
		//Rolladenaktor_Rollo_Kanal_F.sendCommand(UP)
		Rolladenaktor_Rollo_Kanal_G.sendCommand(UP)
		Rolladenaktor_Rollo_Kanal_H.sendCommand(UP)
		TagNacht.sendCommand(ON)
	}
end


//Rolladen Abends runter
rule Rolladen_runter_fahren
when Channel 'astro:sun:local:set#event' triggered START
then
	if(settings_rolladenautomatik.state==ON)
	{
		//Rolladenaktor_Rollo_Kanal_A.sendCommand(DOWN)
		Rolladenaktor_Rollo_Kanal_B.sendCommand(DOWN)
		Rolladenaktor_Rollo_Kanal_C.sendCommand(DOWN)
		Rolladenaktor_Rollo_Kanal_D.sendCommand(DOWN)
		Rolladenaktor_Rollo_Kanal_E.sendCommand(DOWN)
		//Rolladenaktor_Rollo_Kanal_F.sendCommand(DOWN)
		Rolladenaktor_Rollo_Kanal_G.sendCommand(DOWN)
		Rolladenaktor_Rollo_Kanal_H.sendCommand(DOWN)
		TagNacht.sendCommand(OFF)
	}
end


// when Time cron "0 30 6 ? * * *"
// then
// 	Rolladenaktor_Rollo_Kanal_A.sendCommand(UP)
// 	Rolladenaktor_Rollo_Kanal_B.sendCommand(UP)
// 	Rolladenaktor_Rollo_Kanal_C.sendCommand(UP)
// 	Rolladenaktor_Rollo_Kanal_D.sendCommand(UP)
// 	Rolladenaktor_Rollo_Kanal_E.sendCommand(UP)
// 	Rolladenaktor_Rollo_Kanal_F.sendCommand(UP)
// 	Rolladenaktor_Rollo_Kanal_G.sendCommand(UP)
// 	Rolladenaktor_Rollo_Kanal_H.sendCommand(UP)
// end


// rule Rolladen_runter_fahren
// when Time cron "0 0 18 ? * * *"
// then
// 	Rolladenaktor_Rollo_Kanal_A.sendCommand(DOWN)
// 	Rolladenaktor_Rollo_Kanal_B.sendCommand(DOWN)
// 	Rolladenaktor_Rollo_Kanal_C.sendCommand(DOWN)
// 	Rolladenaktor_Rollo_Kanal_D.sendCommand(DOWN)
// 	Rolladenaktor_Rollo_Kanal_E.sendCommand(DOWN)
// 	Rolladenaktor_Rollo_Kanal_F.sendCommand(DOWN)
// 	Rolladenaktor_Rollo_Kanal_G.sendCommand(DOWN)
// 	Rolladenaktor_Rollo_Kanal_H.sendCommand(DOWN)
// end


