Advertisement
jp112

Telegram_Offene

Oct 9th, 2018
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.61 KB | None | 0 0
  1. string a = dom.GetObject("Brennende Lichter").Value();
  2. string b = dom.GetObject("offene Fenster").Value();
  3. string c = dom.GetObject("offene Tueren").Value();
  4. string nachricht = "";
  5.  
  6. if( a!= "Alle Lichter aus") {
  7.     nachricht = " Folgende Lichter sind noch an: "#a;
  8. }
  9.  
  10. if(b != "Alle Fenster zu") {
  11.     nachricht = nachricht # " Folgende Fenster sind noch auf: "#b;
  12. }
  13.  
  14. if(c != "Alle Türen zu") {
  15.     nachricht = nachricht # " Folgende Türen sind stehen noch auf: "#c;
  16. }
  17.  
  18.  
  19. if (nachricht != "") {
  20.   string send = "Gute Nacht. Hier die Übersicht: ***"#nachricht;
  21.   dom.GetObject("Telegram").State(send);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement