Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
Joep 200
I'm working on a scene for presence detection by reading the active Wi-Fi devices log from my UniFi Controller and put the state into a Virtual Device button.
To access the web API I have to login with a JSON post before I get the data. The UniFi website has a self signed certificate and I access it with an IP address.
I made the following code:
Please login or register to see this code.
When I run it the following error occurs:
After some research I think it is a TLS version issue. The LUA HTTP library maybe tries to open the secure HTTPS channel with an incorrect version, or the self signed certificate is not accepted.
As I cannot get more logging than this on the HC2 I'm asking if some other developer on the forum had encountered this problem and has a fix for it?
17 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.