Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- %% properties
- %% globals
- presentState
- --]]
- local doorlockID = 215 -- ID des Doorlocks
- if (fibaro:getGlobal('presentState') == 'Home') then
- fibaro:debug('Doorlock vorhanden, Tür wird geöffnet.')
- fibaro:call(doorlockID, 'unsecure')
- elseif (fibaro:getGlobal('presentState') == 'Away') then
- fibaro:debug('Doorlock vorhanden, Tür wird verschlossen.')
- fibaro:call(doorlockID, 'secure')
- end
Add Comment
Please, Sign In to add comment