Last active
November 26, 2018 21:59
-
-
Save danielperna84/9e206f69655fd3c4431df7e4e48cd768 to your computer and use it in GitHub Desktop.
Tests for CCU3 + pyhomematic (authentication + SSL)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import logging | |
from pyhomematic import HMConnection | |
logging.basicConfig(level=logging.WARNING) | |
DEVICE = "KEQ1234567:1" | |
PARAMETER = "STATE" | |
CONNECTIONDATA = { | |
"ccu3test": { | |
"ip": "192.168.1.23", | |
"port": 2001, | |
#"username": "", | |
#"password": "", | |
#"ssl": True, | |
#"verify_ssl": False, | |
} | |
} | |
connection = HMConnection(interface_id="pyhomematic", autostart=False, remotes=CONNECTIONDATA) | |
connection._server.proxies["pyhomematic-ccu3test"].getValue(DEVICE, PARAMETER) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment