Docker with Alpine as host on a Nuc! Thatās exactly my setup also (since a couple of days). ![:slight_smile: :slight_smile:](https://community.home-assistant.io/images/emoji/twitter/slight_smile.png?v=9)
Do you still run it in that environment?
Seemāed like the ultimate solution, but I have run in to problems.
I have the xiaomi_aqara component configured, and I have tried my config both on different flavors of Raspberry PI, on my previous install on my Nuc which was Debian. No problem. But in Docker and Alpine linux as host, I get this error when trying to send events to the Xiaomi Gateway (play ringtone, turn on light etc):
Error executing service <ServiceCall light.turn_on: entity_id=['light.gateway_light_34ce00fb510b']>
Traceback (most recent call last):
File "/usr/src/app/homeassistant/core.py", line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/src/app/homeassistant/components/light/__init__.py", line 270, in async_handle_light_service
yield from light.async_turn_on(**params)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 327, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/light/xiaomi_aqara.py", line 98, in turn_on
if self._write_to_hub(self._sid, **{self._data_key: rgbhex}):
File "/usr/local/lib/python3.6/site-packages/xiaomi_gateway/__init__.py", line 288, in write_to_hub
data['key'] = self._get_key()
File "/usr/local/lib/python3.6/site-packages/xiaomi_gateway/__init__.py", line 337, in _get_key
backend=default_backend()).encryptor()
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/backends/__init__.py", line 15, in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/__init__.py", line 7, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 54, in <module>
from cryptography.hazmat.bindings.openssl import binding
File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 13, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: /usr/local/lib/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: cannot change memory protections: Permission denied
I am new to Alpine, and I donāt find anything at all on this by Google. Perhaps you have an idea on what could be causing the problem?
I am running the HA container in privileged mode with host networking, so I guess it has to do with the host.