-
Notifications
You must be signed in to change notification settings - Fork 26
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
latest update NHC2 dependencies issue #38
Comments
so it's in the HA update :) |
Any update ? |
No work arround for the moment, it is python pip dependency problem that needs to be resolved in nhc2-coco. Best thing for the moment is roll back to previous backup and wait untill the issues is solved |
Found another work around because I wanted to use the new media features. |
I believe it can be resolved by either changing the nhc2-coco requirement to 'paho-mqtt==1.6.1', or by completely removing the requirement. Unfortunately you cannot access this file in a regular HA installation. |
I commented out the requirement in __init__.py
But I’m still getting this ERROR when trying to add the Niko Home Control 2 integration (custom_component)
2022-03-04 19:26:49 INFO (SyncWorker_4) [homeassistant.util.package] Attempting install of nhc2-coco==1.4.1
2022-03-04 19:27:08 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package nhc2-coco==1.4.1: ERROR: Cannot install nhc2-coco==1.4.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
|
it's in the setup process, not in de installed files, and as far as I know we can't modify those ourselves |
Ah wait I understand, ….
It would indeed be nice if the latest commit (if this is the fix) was in eg. 1.4.2 and released as a Python package/module.
Then we could just change to that version in __init__.py and get the custom component / integration working.
Or is there another way to get the custom component working?
|
Yes indeed I understood after I saw the commit.
It’s in the requirements.txt for nhc2-coco …
I first thought it was regarding the ‘REQUIREMENTS’ in __init__.py from hass-nhc2
|
Perhaps we can get the .ZIP from the latest commit where requirements.txt was changed
And use it with ‘pip install’ on home assistant? Not sure if this is possible, is there a CLI somewhere to do this?
I’m running from a RPI
|
I SSHed into RPI home assistant, and tried to install Python module from my last commit but seems this won't work unfortunately. Is there a way to install Python modules/packages on home assistant? |
that's what i've been looking at but haven't seen a way to do a manual upload yet, only through repositories that requires specific structures |
Perhaps have @joleys publish his fork as a new PyPI package and we can use that one? |
@anvarit I see you configured a workaround by installing Remote Home Assistant from HACS. It's a good idea. Just a small question before i try it. What is happening with existing devices in primary HA ? Do you need to reconfigure them ? Thanks |
A workaround: The fork https://github.com/boced66/hass-nhc2 has the nhc2 with the coco combined, removing the dependency. Currently this works for me with the new version of HA |
Thanks, i will have a look |
|
And how can I install this one ? I have the previous one (via HACS), but even when I delete it, from the integrations. And even if I delete the info from the YAML, it stays So How can I make sure the working version is inside ? Erwin |
Fiy, i just remove content of custom_components\nhc2 and copy content of nhc2 into the folder. Reboot HA and enjoy 👍 |
It works! Thanks a lot! |
Glad to have been able to help |
Hi, |
Hello @ddeconin-gh
|
do you keep the (historical) data if u install the 2nd version or is it gone? |
Good question, |
I needed to delete everything, and adding the new version from @boced66 |
Thanks, @boced66 |
For those of you who are interested in my spin-off of Filip's hard work, check my repo niko-home-control-II. I've tried to reach Filip as well, without response so far. |
same in my case. Working back with workaround |
Hello, |
You copy & paste it into the 'password:' part of the nhc2 part of your configurations.yaml file, replacing the existing one. |
Thanks for your response. I'm missing something ... If someone has an idea ... |
Finally, i modified this line in coco.py Not sure it's the best method ... but it's workning :) |
You can always go and hard change it into the /config/.storage/core.config_entries :-) But be carefull... |
I'm having this issue when using the @boced66 repo:
|
Ah yes, better place indeed :) Thanks |
I have added the configuration manually to configuration.yaml and this seems to add the nhc2 to the integrations page, but it doesn't add any entities... But when using MQTT to connect to the Niko hub, it seems to work, so user, pwd and IP/port are quite correct. in the custom_components it is well the one from @boced66 , I checked the source codes So I don't really understand why it doesn't pop up devices/entities |
SOLVED IT :-) |
Hi,
Both Niko and HA pushed an update today, with the latest version of both installed the integration throws the following error:
Unable to install package nhc2-coco==1.4.1: ERROR: Cannot install nhc2-coco==1.4.1 because these package versions have conflicting dependencies
The text was updated successfully, but these errors were encountered: