Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lifx add-on can’t load on Gateway version 1.0.0 #1395

Open
amurillo1229 opened this issue May 7, 2021 · 1 comment
Open

Lifx add-on can’t load on Gateway version 1.0.0 #1395

amurillo1229 opened this issue May 7, 2021 · 1 comment

Comments

@amurillo1229
Copy link

Hi everyone,

Hope somebody can help me out with my query.

I’ve got a Raspberry Pi 4 which runs the Gateway version 1.0.0. I’ve added the Lifx add-on but I’m getting multiple errors when trying to enable it. Please see below:

2021-04-01 01:53:47.753 INFO : Loading add-on: lifx-adapter
2021-04-01 01:53:49.482 ERROR : lifx-adapter: Traceback (most recent call last):
2021-04-01 01:53:49.484 ERROR : lifx-adapter: File “/home/pi/.webthings/addons/lifx-adapter/main.py”, line 31, in
2021-04-01 01:53:49.486 ERROR : lifx-adapter: _ADAPTER = LifxAdapter(verbose=_DEBUG)
2021-04-01 01:53:49.488 ERROR : lifx-adapter: File “/home/pi/.webthings/addons/lifx-adapter/pkg/lifx_adapter.py”, line 28, in init
2021-04-01 01:53:49.490 ERROR : lifx-adapter: self.start_pairing(_TIMEOUT)
2021-04-01 01:53:49.492 ERROR : lifx-adapter: File “/home/pi/.webthings/addons/lifx-adapter/pkg/lifx_adapter.py”, line 47, in start_pairing
2021-04-01 01:53:49.494 ERROR : lifx-adapter: device = LifxBulb(self, _id, dev)
2021-04-01 01:53:49.496 ERROR : lifx-adapter: File “/home/pi/.webthings/addons/lifx-adapter/pkg/lifx_device.py”, line 57, in init
2021-04-01 01:53:49.497 ERROR : lifx-adapter: if self.is_color():
2021-04-01 01:53:49.500 ERROR : lifx-adapter: File “/home/pi/.webthings/addons/lifx-adapter/pkg/lifx_device.py”, line 187, in is_color
2021-04-01 01:53:49.502 ERROR : lifx-adapter: return bool(self.lifxlan_dev.supports_color())
2021-04-01 01:53:49.504 ERROR : lifx-adapter: File “/home/pi/.webthings/addons/lifx-adapter/lib/lifxlan/device.py”, line 386, in supports_color
2021-04-01 01:53:49.506 ERROR : lifx-adapter: return self.product_features[‘color’]
2021-04-01 01:53:49.508 ERROR : lifx-adapter: TypeError: ‘NoneType’ object is not subscriptable
2021-04-01 01:53:49.551 INFO : Plugin: lifx-adapter died, code = 1 restarting after 0

Looks like the add-on tries to load but the script main.py is having some problems in line 31 and right after that, the add-on gets several errors and then dies. I compared the line with other add-on I have in my Gateway which works and they are exactly the same, so I can’t figure out what the error is:

_ADAPTER = TPLinkAdapter(verbose=_DEBUG)
_ADAPTER = LifxAdapter(verbose=_DEBUG)

I’m just wondering if somebody’s had the same error and also if there is a solution.

Really appreciate your support and prompt response in this matter as I’ve been stuck in this error for a while.

Thanks.

Anderson

@AcidRobot
Copy link

Hey Anderson,
I was able to fix this by install the latest version of the python module for lifxlan inside the addon 1.2.5 -> 1.2.7

  1. cd into /home/pi/.webthings/addons/lifx-adapter
  2. ignore checksums git init
  3. curl -o lifxlan-1.2.7.tar.gz https://files.pythonhosted.org/packages/4f/c3/e8b58064578e2fecf8778f685a79a6d505fba7151e3842fec06ed0314544/lifxlan-1.2.7.tar.gz
  4. tar -xf lifxlan-1.2.7.tar.gx
  5. mv lifxlan-1.2.7/lifxlan/* .webthings/addons/lifx-adapter/lib/lifxlan/
  6. reload adapter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants