Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. --[[
  2. %% properties
  3. %% events
  4. 367 CentralSceneEvent 1 Pressed2
  5. %% globals
  6. Alles_aus
  7. --]]
  8. local Grad1 = 16---Kinderzimmer,Bad--
  9. local Grad2 = 5--Schlafzimmer--
  10. local Grad3 = 18--Wohnzimmer-
  11. local startSource = fibaro:getSourceTrigger();
  12. if (
  13. ( true )
  14. or
  15. startSource["type"] == "other"
  16. )
  17. then
  18. fibaro:call(286, "setTargetLevel", Grad3);
  19. fibaro:call(286, "setTime", tonumber(os.time(t)) + 30*60);
  20. fibaro:call(288, "setTargetLevel", Grad3);
  21. fibaro:call(288, "setTime", tonumber(os.time(t)) + 30*60);
  22. fibaro:call(258, "setTargetLevel", Grad2);
  23. fibaro:call(258, "setTime", tonumber(os.time(t)) + 30*60);
  24. fibaro:call(307, "setTargetLevel", Grad1);
  25. fibaro:call(307, "setTime", tonumber(os.time(t)) + 30*60);
  26. fibaro:call(264, "setTargetLevel", Grad1);
  27. fibaro:call(264, "setTime", tonumber(os.time(t)) + 30*60);
  28.  
  29. fibaro:call(322, "turnOff")
  30. fibaro:call(268, "turnOff")
  31. fibaro:call(249, "turnOff")
  32. fibaro:call(361, "turnOff")
  33. fibaro:call(277, "turnOff")
  34. fibaro:call(260, "turnOff")
  35. fibaro:call(262, "turnOff")
  36. fibaro:call(300, "turnOff")
  37. fibaro:call(305, "turnOff")
  38.  
  39. fibaro:setGlobal('Autolicht', 1)
  40. fibaro:setGlobal('Heizung_an_aus', 1)
  41. fibaro:call(266, "sendPush", "Alles ist aus,")
  42.  
  43.  
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement