Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string a = dom.GetObject("Brennende Lichter").Value();
- string b = dom.GetObject("offene Fenster").Value();
- string c = dom.GetObject("offene Tueren").Value();
- string nachricht = "";
- if( a!= "Alle Lichter aus") {
- nachricht = " Folgende Lichter sind noch an: "#a;
- }
- if(b != "Alle Fenster zu") {
- nachricht = nachricht # " Folgende Fenster sind noch auf: "#b;
- }
- if(c != "Alle Türen zu") {
- nachricht = nachricht # " Folgende Türen sind stehen noch auf: "#c;
- }
- if (nachricht != "") {
- string send = "Gute Nacht. Hier die Übersicht: ***"#nachricht;
- dom.GetObject("Telegram").State(send);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement