Hab ne Rule gemach ,die soll mir meldet das irgentein Fenster offen ist, wenn ich Alarm einschalte.
Interesanterweise per email funktioniert das. aber per Telegram nicht.Wenn alle Fenster zu sind bekomme ich keine email das ist auch richtig. Und bekomme 4 Telegramme das Fenster offen sind. Wenn irgentein Fenster offen ist bekomme ich ne email mit entsprechenden Inhalt. Und wieder 4 Telegrame das alle Fenster offen sind.
Was mache ich den falsch? Oder wieso geht das nicht mit Telegram
rule "Fenster"
when
Item InnogyVariable changed from OFF to ON
then
if (WindowContact2.state == OPEN||WindowContact3.state == OPEN)
sendMail("smar@gmail.com", "Fenster noch offen", "Kinderzimmer
Fenster noch offen \ud83d\udd13 ")
sendTelegram("bot1", "Kinderzimmer Fenster noch offen ")
if (WindowContact6.state == OPEN||WindowContact7.state == OPEN)
sendMail("smar@gmail.com ", "Fenster noch offen", "Schlaffzimmer
Fenster noch offen \ud83d\udd13 ")
sendTelegram("bot1", "Schlaffzimmer Fenster noch offen")
if (WindowContact.state == OPEN)
sendMail("smar@gmail.com ", "Fenster noch offen", "Bad Fenster noch
offen \ud83d\udd13 ")
sendTelegram("bot1", "Bad Fenster noch offen")
if (WindowContact1.state == OPEN)
sendMail("smar@gmail.com ", "Fenster noch offen", "Dach Fenster noch
offen \ud83d\udd13 ")
sendTelegram("bot1", "Dach Fenster noch offen")
end
Zuletzt geändert von djuscha am 27. Nov 2018 03:32, insgesamt 1-mal geändert.
rule "Fenster"
when
Item InnogyVariable changed from OFF to ON
then
if (WindowContact2.state == OPEN||WindowContact3.state == OPEN) {
sendMail("smar@gmail.com", "Fenster noch offen", "Kinderzimmer Fenster noch offen \ud83d\udd13 ")
sendTelegram("bot1", "Kinderzimmer Fenster noch offen")
}
if (WindowContact6.state == OPEN||WindowContact7.state == OPEN) {
sendMail("smar@gmail.com ", "Fenster noch offen", "Schlafzimmer Fenster noch offen \ud83d\udd13 ")
sendTelegram("bot1", "Schlafzimmer Fenster noch offen")
}
if (WindowContact.state == OPEN) {
sendMail("smar@gmail.com ", "Fenster noch offen", "Bad Fenster noch offen \ud83d\udd13 ")
sendTelegram("bot1", "Bad Fenster noch offen")
}
if (WindowContact1.state == OPEN) {
sendMail("smar@gmail.com ", "Fenster noch offen", "Dach Fenster noch offen \ud83d\udd13 ")
sendTelegram("bot1", "Dach Fenster noch offen")
}
end
openHAB4.3.3 stable in einem Debian-Container (bookworm) (Proxmox 8.3.5, LXC), mit openHABian eingerichtet