question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot setup example_light

See original GitHub issue

I think the example configuration for example_light still uses an old identifier:

https://github.com/home-assistant/example-custom-config/blame/master/custom_components/example_light/README.md#L18

should be:

  • platform: example_light

I this is correct, I can create an PR but even with this change, I can’t get it to work. in the logs I see this:

Unable to install package awesomelights==1.2.3: ERROR: Could not find a version that satisfies the requirement awesomelights==1.2.3 (from versions: none) ERROR: No matching distribution found for awesomelights==1.2.3 WARNING: You are using pip version 19.3; however, version 19.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
1:21 util/package.py (ERROR) - message first occurred at 1:19 and shows up 2 times
Platform error: light - Requirements for example_light not found: ['awesomelights==1.2.3'].
1:19 config.py (ERROR)
You are using a custom integration for example_light which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
1:19 loader.py (WARNING)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
h4de5commented, Sep 15, 2020

I think it is the later one. Any communication with the actual lights/hub/platform etc. should be outsourced to a python package on its own (like the imaginary awesomelights) leaving only the part that communicates with HA in the maintained source.

if you are looking for an example of the former one, checkout the list of light integrations: https://www.home-assistant.io/integrations/#light e.g.: https://github.com/home-assistant/core/tree/dev/homeassistant/components/elgato

1reaction
balloobcommented, Nov 21, 2019

It’s using the old identifier, but it does still work. You’re right that we should update these.

Your error is because you didn’t update the requirements, so it is trying to install a library for awesomelights==1.2.3 which does not exist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Events - Home Assistant
Example: light . core_config_updated. This event is fired when the core configuration is updated, for example when the location has been changed ...
Read more >
Be an Example and a Light
President Thomas S. Monson teaches us to be “an example of the believers” and a light to the world. I doing so, we...
Read more >
Create a light object - MATLAB light - MathWorks
light creates a Light object in the current axes. You cannot see Light objects themselves, but you can see their effects on any...
Read more >
Wave Interactions | CK-12 Foundation
An echo occurs when sound waves bounce back from a surface that they can't pass through. The woman pictured here is trying to...
Read more >
Troubleshooting Light Leakage or Light Bleeding on a Dell ...
Figure 3: Example of light leak from the middle of each side. ... If you cannot, it could be an issue with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found