Skip to content

https / SSL support ? #61

@vntbrd

Description

@vntbrd

Hello,

Possible to support https?
Domoticz can only be configured in https. (Self-signed or not). In this case, SmartVirtualThermostat cannot work.

For my part I modified plugin.py to add

import ssl

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

And I modified line 660 (https) :

url = "https://{}:{}/json.htm?{}".format(Parameters["Address"], Parameters["Port"], parse.quote(APICall, safe="&="))

And line 670 (context=ctx) :

response = request.urlopen(req, context=ctx)

I am aware that the modification is not clean (I am not a dev). But it works for my use case.
This is a good lead for people who have the same problem as me.

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions