Zoneminder component problem

I try config Zoneminder component but i have problem with ssl. my server run Elastix, Zoneminder and homeassistant and the log of homeassistant is this:

Dec 28 22:09:32 localhost hass: File “/usr/local/lib/python3.5/site-packages/homeassistant/components/zoneminder.py”, line 59, in setup
Dec 28 22:09:32 localhost hass: return login()
Dec 28 22:09:32 localhost hass: File “/usr/local/lib/python3.5/site-packages/homeassistant/components/zoneminder.py”, line 73, in login
Dec 28 22:09:32 localhost hass: req = requests.post(ZM[‘url’] + ‘/index.php’, data=login_post)
Dec 28 22:09:32 localhost hass: File “/usr/local/lib/python3.5/site-packages/requests/api.py”, line 110, in post
Dec 28 22:09:32 localhost hass: return request(‘post’, url, data=data, json=json, **kwargs)
Dec 28 22:09:32 localhost hass: File “/usr/local/lib/python3.5/site-packages/requests/api.py”, line 56, in request
Dec 28 22:09:32 localhost hass: return session.request(method=method, url=url, **kwargs)
Dec 28 22:09:32 localhost hass: File “/usr/local/lib/python3.5/site-packages/requests/sessions.py”, line 488, in request
Dec 28 22:09:32 localhost hass: resp = self.send(prep, **send_kwargs)
Dec 28 22:09:32 localhost hass: File “/usr/local/lib/python3.5/site-packages/requests/sessions.py”, line 609, in send
Dec 28 22:09:32 localhost hass: r = adapter.send(request, **kwargs)
Dec 28 22:09:32 localhost hass: File “/usr/local/lib/python3.5/site-packages/requests/adapters.py”, line 497, in send
Dec 28 22:09:32 localhost hass: raise SSLError(e, request=request)
Dec 28 22:09:32 localhost hass: requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:646)#033[0m
Dec 28 22:09:32 localhost hass: #033[32m16-12-28 22:09:32 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=140516731344992-7, service=create, domain=persistent_notification, service_data=message=The following components and platforms could not be set up:
Dec 28 22:09:32 localhost hass: * zoneminder
Dec 28 22:09:32 localhost hass: * sensor.zoneminder
Dec 28 22:09:32 localhost hass: * switch.zoneminder
Dec 28 22:09:32 localhost hass: Please check your config, notification_id=invalid_config, title=Invalid config>#033[0m

what is the problem? Any solution?

Please post your configuration.yaml or wherever you call the zoneminder entity.

zoneminder:
ssl: True
host: localhost
path: /zm/

I try host with the 3 possibility but not working
host: ???.asuscomm.com
host: 127.0.0.1
host: 192.168.123.200

Perhaps a spacing issue? Anything in the logs? Do you have a username/pw set?

zoneminder:
  host: !secret camera_server
  path: /zm/
  ssl: False
  username: !secret camera_serveruid
  password: !secret camera_serverpw

spacing is ok. I use zoneminder with password and i set without password but not working. I think the problem is ssl because in browser i have NET::ERR_CERT_AUTHORITY_INVALID and i bypass proceding.

Same story for me. Is there any way to disable certificate check (similar to Plex component, “verify” option)?

Quick fix for the issue: add “verify=False” parameter to all requests.* calls in zoneminder.py (/opt/homeassistant/lib/python3.6/site-packages/homeassistant/components) as per this link.
Currently zoneminder plugin have 3 requests.* calls (lines 81, 86 and 102).
Sample:
req = requests.post(ZM['url'] + '/index.php', data=login_post, verify=False)

Note that any HA updates will overwrite those changes.