Closed lerteng closed 2 days ago
Hello @lerteng,
thanks for reporting. We had this issue already here but the context was a bit different. The people used a different gateway and the workaround was to implement lazy loading of the lib so that they actually do not need it. In your case it is needed. At that time I was not able to reproduce the issue and only 3 people including you reported so far the issue. My guess is that it might be related with some configurations in HA which prevent downloading packages. Maybe you can find some logs while installing the integration. If you have access to HA you could try to install the package manually and check if it is working. This is the package and that the repo.
Hello @grimmpp, thank you very much for your quick response. Thank you for linking the similar issue. I read it, however, as you mentioned in my case the lib is needed.
Unfortunately I'm not quite sure how i should install the package manually. I thought every component has it's own container. So for example with the Terminal&ssh addon I don't see a python folder in user/local/lib at all. Using VisualStudio Server add on I see user/local/lib/python3.11. So could you tell me you I can install the package?
Sadly, the log file was also unremarkable.
If that does work I gues the only option is to reinstall HomeAssistant and start on a clean setup.
Yes, you are right. You would need to jump into the container and run pip install enocean==0.60.1
. Would be actually less than a workaround.
I'm actually using HA OS which does not allow you anything in that direction. At least AFAIK.
Can you check if there are some information in the logs when installation the integration. Maybe it fails to download the dependencies. The dependencies are listed in the manifest.json. Usually HA installs them automatically.
@grimmpp Thank you very much for your support. You are absolutely right with your assumption regarding the dependency problem. In the current HA OS, some new messages have appeared in the log that point to a dependency problem of the esp2-gateway-adapter package.
In a next step, I added all requirements of the esp2-gateway-adapter package to the manifest file of the eltako components. So I found out that the packages “zeroconf==0.132.2”, “PyYAML==6.0.1” caused the problem.
As I changed the manifest.json to "zeroconf>=0.132.2","PyYAML>=6.0.1" none of them caused a depenency error.
Is there any way to check which packages need a newer version or is it possible to use the newer packages in the esp2-gateway-adapter-package?
Best regards
Great, of course I can change it. How did you get this error message?
I tried to fix it as described (on HA OS):
but fore me the failure still appears
@lerteng: can you please share your config?
@FMDHET unfortunately my message was not the solution. I only described the problem.
esp2-gateway-adapter package cannot be installed, as it depends on the packages “zeroconf==0.132.2”, “PyYAML==6.0.1”. I discoeverd that as I added the two packages to the manifest.json (before the esp2-gateway-adapter). Then I got the error showed in my message above. When I changed der manifest.json to "zeroconf>=0.132.2","PyYAML>=6.0.1" I still got the error message for the esp2-gateway-adapter (as it depends on “zeroconf==0.132.2”, “PyYAML==6.0.1”) but not the error messages for zeroconf and pyyaml.
@grimmpp this message appeared since the latest HA-OS core update.
I have found another way to check the depencies.
With the addon "Advanced SSH & Web Terminal" you can get into the homeassisstant container via docker exec -it homeassistant /bin/bash
. To this end you must disable the save mode of the add on at first. In the container you can use pip to analyze the installed packages and to install new ones.
In this way, I also saw that enocean==0.50.0 was installed on my machine. This led to the first error I described in this thread. For some reason the depency was not installed correctly on my machine. (Without further noticein the logs) And this reason seems to be that I tried the official enocean integration at first. During that test I added an entry like
- name: TestSensor platform: enocean id: [0x00,0x00,0x00,0x00] device_class: humidity
to my configuration.yaml. As I removed that entry I could update to the newer version enocean 0.60.1.
I've released esp2-gateway-adapter 0.2.11 and adjusted feature-branch which worked for me. Can you Test it?
It's working for at least a few people so I created a new release containing all other changes made in between as well. Can you please test version 1.5.8
@grimmpp thank you very much for your support again. For me everything is working now.
Hello,
I followed the documentation and installed home-assistant-eltako via HACS and added the following lines to the configuration.yaml.
Unfortunatley the Eltako Integration cannot be startet, see following messages from the log:
A manual installation via the custom_components folder led to the same behavior. The import of UTETeachInPacket in the python packages esp2_gateway_adapter seems not to work.
Does anyone have any idea what the problem could be and how to fix it?