|
发表于 2019-4-15 23:15:57
|
显示全部楼层
本帖最后由 zhenxiwen 于 2019-4-15 23:21 编辑
我的配置如下,可是总是不能识别,为何呀
- platform : baidu_face
api_key : "hUXYgP5XXXXXX"
secret_key: "0GGfsaOYyQ5sii2G2WXXXXX"
group_list: "['family_members']" # 格式例子
camera_entity_id: "camera.ip_webcam"
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI4OWE1M2UzYjgwMjg0OWY1ODM4ZDM3MmIyNGIwOGUyZCIsImlhdCI6MTU1NDczNDUwNSwiZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
liveness: "NORMAL"
# name: "ren lian shi bie"
# port: 8123
# pic_url: "网络、本地图片地址"
scan_interval: 2
这里有log,我也看不懂,请大大看看是什么问题:
Log Details (ERROR)Mon Apr 15 2019 23:17:46 GMT+0800 (中国标准时间)
Update for sensor.ren_lian_shi_bie failsTraceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 453, in wrap_socket cnx.do_handshake() File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1915, in do_handshake self._raise_ssl_error(self._ssl, result) File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1647, in _raise_ssl_error _raise_current_error() File "/usr/local/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue raise exception_type(errors)OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn conn.connect() File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 344, in connect ssl_context=context) File "/usr/local/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 357, in ssl_wrap_socket return context.wrap_socket(sock) File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 459, in wrap_socket raise ssl.SSLError('bad handshake: %r' % e)ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])",)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause))urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='127.0.0.1', port=8123): Max retries exceeded with url: /api/camera_proxy/camera.ip_webcam?time=1555339913%20-o%20image.jpg (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state await self.async_device_update() File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 379, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/baidu_face/sensor.py", line 117, in update self.download_picture(save_path) File "/config/custom_components/baidu_face/sensor.py", line 143, in download_picture response = requests.get(camera_url, headers=headers) File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get return request('get', url, params=params, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 514, in send raise SSLError(e, request=request)requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=8123): Max retries exceeded with url: /api/camera_proxy/camera.ip_webcam?time=1555339913%20-o%20image.jpg (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
|
|