boomx

PART2

Jan 9th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. --[[
  2. %% properties
  3. %% globals
  4. presentState
  5. --]]
  6.  
  7. local doorlockID = 215 -- ID des Doorlocks
  8.  
  9. if (fibaro:getGlobal('presentState') == 'Home') then
  10. fibaro:debug('Doorlock vorhanden, Tür wird geöffnet.')
  11. fibaro:call(doorlockID, 'unsecure')
  12. elseif (fibaro:getGlobal('presentState') == 'Away') then
  13. fibaro:debug('Doorlock vorhanden, Tür wird verschlossen.')
  14. fibaro:call(doorlockID, 'secure')
  15. end
Add Comment
Please, Sign In to add comment