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

Setup failed when no internet connection is available #54

Open
0BanZai0 opened this issue Sep 2, 2024 · 2 comments
Open

Setup failed when no internet connection is available #54

0BanZai0 opened this issue Sep 2, 2024 · 2 comments

Comments

@0BanZai0
Copy link

0BanZai0 commented Sep 2, 2024

Hi, Im struggling to get this component running.
I have a working Default-Velux KLF200 integration up and running.

I really need some of the great additions of this CC for my switches and automations.

My problem: I'm getting an error on startup of HA:

"Logger: homeassistant.setup
Quelle: setup.py:269
Erstmals aufgetreten: 07:57:56 (1 Vorkommnisse)
Zuletzt protokolliert: 07:57:56

Setup failed for custom integration 'velux':
Requirements for velux not found:
lgit+https://github.com/pawlizio/pyvlx.git@fire-forgot-issue#pyvIx==0.3.23]."

My analysis shows that I need an internet connection to initialize the CC. I have no internet in my new home that is under construction right now.
That's why I brought my HA server and the KLF200 to my old home with a working internet connection.
Here the startup was without any errors and I was able to see the addition entities and stuff.

But when I brought back the devices to my internetless place this morning, I got the same error again.

TLDR: do I need to have an internet connection every time I start the Velux custom component?

Thx for your help!

@0BanZai0
Copy link
Author

0BanZai0 commented Sep 3, 2024

I think I've narrowed this issue down to the manifest.json with my basic understanding of software development..

In this line, it seems to initialize an intstallation of the PyVLX library every time the integration is started:
"requirements": ["git+https://github.com/pawlizio/pyvlx.git@fire-forgot-issue#pyvlx==0.3.23"],

Is there any way to implement this library offline within the my_velux solution?

@pawlizio
Copy link
Owner

I just now blocked my homeassistant on my router and then restarted homeassistant. Actually I had no issue to connect to KLF200.

Once pyvlx is installed, so after setup with internet connection, I don't think it is necessary if you then remove the internet. But probably you should not only install the custom_component, but also setup a first connection with your KLF when the internet is present in order to fully setup the custom_component. Probably the requirement libraries are only installed during setup via Integrations page. I do not know how HA is handling this. But afterwards you can move both devices to your location without internet.

Does your HA server support Wifi? Have you tried to build up access point using your mobile?

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