Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Automation script for KDhome (Home automation system) - http://krystiand.net/projekt/12/kdhome
- import kdhome
- class Light(kdhome.KDHome):
- def __init__(self):
- super().__init__()
- def onInputChangedEvent(self, id, name, value):
- if name == "LIGHT_SWITCH":
- self.toggleOutput("LIGHT")
- home = Light()
- home.connect("localhost", 9999)
- home.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement