Skip to content

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

@amurillo1229

Description

@amurillo1229

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions