Skip to content

Instantly share code, notes, and snippets.

@danielperna84
Last active November 26, 2018 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielperna84/9e206f69655fd3c4431df7e4e48cd768 to your computer and use it in GitHub Desktop.
Save danielperna84/9e206f69655fd3c4431df7e4e48cd768 to your computer and use it in GitHub Desktop.
Tests for CCU3 + pyhomematic (authentication + SSL)
#!/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