Skip to content

Using with SSL to Hass API #3

@scstraus

Description

@scstraus

I can get the script to work if I turn off SSL on my hass instance, but not with the exact same hass configuration with SSL turned on and https:// and my https url. I can't run hass without SSL.

The following command works to access the API:

curl -X GET -H "Content-Type: application/json"  https://MYHOST:8123/api/config?api_password=MYPASS --insecure

the --insecure option seems to be the key but I can’t figure out how to do something similar in the script. I have the URLs defined as https:// but the script doesn’t work with https turned on.

Do you how to do something like the --insecure option from CURL with python’s POST() method?

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