I have started adding support for authentication and SSL to pyhomematic (the library the homematic component is using). Authentication and SSL however is not available on my CCU2, so I need someone with a CCU3 to verify that my code actually works like it should.
Replace the _hm.py of the now installed pyhomematic with this (the exact location depends on your system, but it’s usually within a folder called site-packages)
Use this script as a template to test different configurations
In any case you have to change the value of DEVICE and PARAMETER to something you actually have. The example code would work for a HM-Sec-SC-2 binary sensor. A switch with at least one channel would work too. Basically anything we can get a value from. The UI of the CCU has a list with devices, and there you can also find the parameters and their channels.
The more important part is what you set in CONNECTIONDATA though.
With the data in the script (of course replace the IP first) you should be able to connect to your CCU3 if authentication and SSL are disabled. When executing the script the last line of the output should print out the value of whatever parameter you have configured above.
What I need someone to test:
Enable authentication on the CCU3 for the XML-RPC API, try the script again. It should fail.
With authentication enabled, add the username and password to CONNECTIONDATA and try again (uncomment those lines too). It should succeed.
Enable SSL on your CCU3, uncomment ssl and verify_ssl. Leave the values as they are. As far as I know the SSL-ports on the CCU3 are prepended with a 4. So 42001 would be the port you have to set for regular wireless devices. It should succeed.
a) Assuming you are using a self-signed certificate, set the value of verify_ssl to True and try again. It should fail.
b) If your certificate is trusted (I don’t know if the CCU3 even supports importing certificates though) and verify_ssl is set to True, the same test should succeed.
I’d be thankful if somebody could perform these tests for me. If I did everything correctly, you’ll be able to make your setup quite a bit more secure in an upcoming release.
EDIT:
I have managed to verify SSL is working already. So now I only need someone to test that authentication is working properly.