Advertisement
KrystianD

Get state of an input or temperature sensor

Jan 13th, 2015
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. # Automation script for KDhome (Home automation system) - http://krystiand.net/projekt/12/kdhome
  2.  
  3. import kdhome
  4.  
  5. home = kdhome.KDHome()
  6. home.connect("localhost", 9999)
  7. print(home.getInput("WINDOW"))
  8. print(home.getTemp("OUTSIDE"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement