I install Wyze Home Assistant Integration
I get error below when running hass via systemd in virtualenv
However if I run manually activated virtualenv (source /srv/homeassistant/bin/activate)
/srv/homeassistant/bin/hass -c “/home/homeassistant/.homeassistant”
then no error
I follow this link Autostart using systemd to create systemd
I don’t understand why this ssl error only happen when hass executed via systemd ??
Anybody can help the solution?
2021-12-22 18:20:51 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry for wyzeapi
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection
transport, protocol = await self._create_connection_transport(
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport
await waiter
File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 528, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 188, in feed_ssldata
self._sslobj.do_handshake()
File "/usr/local/lib/python3.9/ssl.py", line 944, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)