rytilahti / python-yeelightbt

Python library for Yeelight's bedside (btle) and candela lamps
83 stars 26 forks source link

Ha plugin installation error #6

Closed Pho7ography closed 7 years ago

Pho7ography commented 7 years ago

Hi again,

I try to install the custom component in HA, but this is the error, can't you give me some light ?

17-02-05 19:14:38 ERROR (MainThread) [homeassistant.loader] Unable to find component light.yeelight_bt 17-02-05 19:14:38 ERROR (MainThread) [homeassistant.bootstrap] Unable to find platform light.yeelight_bt

rytilahti commented 7 years ago

How have you installed it? You need to put it in ~/.homeassistant/custom_components/light directory, and then you can use light.yeelight_bt in your config.

Pho7ography commented 7 years ago

I have done that and validate that homeassistant user have rights in the directory.

Pho7ography commented 7 years ago

Hi, I have change de directory and now: File "/home/homeassistant/.homeassistant/custom_components/light/yeelight_bt.py", line 59, in setup_platform add_devices_callback(lights, True) # request an update before adding File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 300, in add_entities entity.update() File "/home/homeassistant/.homeassistant/custom_components/light/yeelight_bt.py", line 162, in update with self._dev: File "/home/homeassistant/.homeassistant/custom_components/light/yeelight_bt.py", line 130, in _dev from yeelightbt import Lamp ImportError: No module named 'yeelightbt'

rytilahti commented 7 years ago

Have you installed the module itself? You can do that by running "pip install ." in the source directory.

rytilahti commented 7 years ago

Closing for inactivity, this sounds like missing installation.