Hi. I used to run rest_command:
set_climate_to_on:
method: POST
url: http://192.168.x.x:8123/api/states/climate.air?api_password=pass
headers:
content-type: application/json
payload: '{"state": "cool", "attributes": ...
and all was good, but after I was setup secure connection via https I’ve got error
set_climate_to_on:
method: POST
url: https://sub.domain.com:8123/api/states/climate.air?api_password=pass
headers:
content-type: application/json
payload: '{"state": "cool", "attributes": ...
Log after call rest_command:
Error executing service <ServiceCall rest_command.set_climate_to_on (c:8d6718ff2ff54b139ff38dcff3edd101)>
22:01 components/rest_command.py (ERROR)
Error doing job: SSL error errno:1 reason: CERTIFICATE_VERIFY_FAILED
22:01 /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
22:00 /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
At the tasker there is a option ‘trust_any_certificate’ for exemple. What can I do in HA to solve this?
Thanks.