Re: Homematic Rolladensteuerung nach Astro Binding
Verfasst: 21. Apr 2020 19:01
Code: Alles auswählen
rule "Rolllaeden abends"
when
Channel "astro:sun:home:set#event" triggered START
then
W_Rollo.sendCommand (80)
end
Code: Alles auswählen
rule "Rolllaeden abends"
when
Channel "astro:sun:home:set#event" triggered START
then
W_Rollo.sendCommand (80)
end
Code: Alles auswählen
rule "sunsetautomatik"
when
Channel "astro:sun:local:set#event" triggered START
then
val telegramAction = getActions("telegram","telegram:telegramBot:<UID>")
if (Sunsetautomatik.state == ON) {
//Sonnenuntergang Automatik Schlafzimmer
GF_Sunset_Rollo.sendCommand(100)
Sunsetautomatik_last.postUpdate(now.toString())
telegramAction.sendTelegram(<ChatID>L, "Sonnenuntergangsautomatik Schlafzimmer durchgeführt ")
}
if (Sunsetautomatik_Dinningroom.state ==ON) {
GF_Dining_Shutter_Right.sendCommand(100)
GF_Dining_Shutter_Left.sendCommand(56)
telegramAction.sendTelegram(<ChatID>L, "Sonnenuntergangsautomatik Esszimmer durchgeführt ")
}
end
Code: Alles auswählen
rule "sunriseautomatik"
when
Channel "astro:sun:local:rise#event" triggered START
then
val telegramAction = getActions("telegram","telegram:telegramBot:<UID>")
if (Sunsetautomatik.state == ON) {
//Sonnenaufgang Automatik Schlafzimmer
GF_Sunset_Rollo.sendCommand(0)
Sunriseautomatik_last.postUpdate(now.toString())
telegramAction.sendTelegram(<ChatID>L, "Sonnenaufgangsautomatik Schlafzimmer durchgeführt")
//Sonnenaufgang Automatik Esszimmer
if (Sunriseautomatik_Dinningroom.state ==ON) {
if (GF_Dining_Shutter_Right.state == 100) {
GF_Dining_Shutter_Right.sendCommand(15)
GF_Dining_Shutter_Left.sendCommand(15)
telegramAction.sendTelegram(-458937281L, "Sonnenaufgangsautomatik Esszimmer durchgeführt")
}
}
}
end