Advertisement
Guest User

Exec Binding does nothing on executeCommandLine code

a guest
Mar 18th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.39 KB | None | 0 0
  1.  
  2. The Item:
  3. Switch extTest2     "execute Test2"
  4.  
  5. The Rule:
  6. import org.openhab.core.library.types.*
  7.  
  8. rule Exec2
  9. when
  10.   Item extTest2 received command
  11. then
  12.   logInfo("extTest2", "extTest2 switch was turned " + receivedCommand.toString)
  13.   if (extTest2.state == ON) {
  14.     executeCommandLine("/home/pi/bin/MCRemote start")
  15.   }
  16.   else {
  17.     executeCommandLine("/home/pi/bin/MCRemote stop")
  18.   }
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement