I’m using HA from time ago in a raspberry pi 3, and all works well. Recently i migrate HA to a docker of synology NAS, and there are some components that doesn’t work as yeelight bulbs or the xiaomi smart home devices (motion sensor, door sensor, etc) when i say that this devices not work, i mean that not appear in the website of HA in a group components.
I think the problem must be to open some ports in NAS. Does someone know how to resolve this? Can soeone help me?
ok… I think the problem is that the docker container not running as -net host or with privilege… are you able to connect to your synology with an SSH session? With Windows you can user Putty.exe with linux a normal prompt.
then when you login to your synology put user and password then run the command
sudo -i
put the password and then run the command:
Also! xiaomi is not a valid component (officially included in HA) unless you have copied it from the Xiaomi thread in this forum to your custom_components folder?
yes it can be possible him have to download and add the components to the custom folder for the xiaomi gateway sensors… but the yeelight bulbs are implemented in hass so if him on’t see it there is a problem, or in config or in the docker installation.
Also! xiaomi is not a valid component (officially included in HA) unless you have copied it from the Xiaomi thread in this forum to your custom_components folder?
Thanks for reply. I know that xiaomi is not official component already and yes i have folder custom_component with files, concretely with @Danielhiversen file’s.
As i said before all configuration in raspberry worked well.
ok… I think the problem is that the docker container not running as -net host or with privilege… are you able to connect to your synology with an SSH session? With Windows you can user Putty.exe with linux a normal prompt.
then when you login to your synology put user and password then run the command
sudo -i
put the password and then run the command:
2017-06-09 18:00:12 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.netatmo
2017-06-09 18:00:12 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform netatmo
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/climate/netatmo.py", line 47, in setup_platform
for module_name in data.get_module_names():
File "/usr/src/app/homeassistant/components/climate/netatmo.py", line 162, in get_module_names
for module in self.thermostatdata.modules[self.device].values():
KeyError: 'relay_T'
2017-06-09 18:00:15 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi is taking over 10 seconds.
2017-06-09 18:00:20 ERROR (<concurrent.futures.thread.ThreadPoolExecutor object at 0x7ff48bfb7a90>_9) [custom_components.xiaomi] No gateway discovered
2017-06-09 18:00:20 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Component failed to initialize.
But in configuration xiaomi i have the key code… maybe is pycrypto package in synology?
yes I always start it from ssh… if you don’t delete the conteiner after the first start from ssh you can start and stop from the GUI.
By the way when there is an update you need to stop and delete the container and run again with SSH.