hass-nhc2
hass-nhc2 copied to clipboard
not being able to install after update to HA 2021.6
Hello, I have been using the nhc2 integration for a few months now and everything worked very good. After updating to 2021.6 the niko integration did not load, and I deleted the old integrations, updated the package to the latest version that contains the fix and tried reinstalling. However the installation takes forever and doesn't seem to do anything. All I can do is eventually refresh the page and nothing is installed.
what errors do you have in HA log?
If this is not resolved by next week, I might find the time to test with the latest HA. I hope someone can help you earlier that that :(
Hi, Thanks for the replies! I do not see any errors in the log regarding nhc2. When trying to add the integration, nothing happens and I only see a spinning circle. Other integrations do install. I tried several browsers, rebooting, clear cache etc
Steps i did: Upgraded to latest version of HA 2021.6.5 deleted old nhc2 installation, as it was not loading Installed new nhc2 version through HACS rebooted the machine Tried installing new nhc2 version and nothing happens.
Hope this helps a bit.
Same problem here, new install no errors in log.
when adding the integration in keeps showing with turning wheel “please wait while installing”
I upgraded today, without issue. First hacs and hass-nhc2, then HA. I haven't installed a new 'nhc2' integration, so I'll try to setup a 2nd setup to test this.
Btw, to see something is the logs, you might want to enable logging on custom components or hass-nhc2 specific. see https://www.home-assistant.io/integrations/logger/ for details I've got mine setup like this:
logger:
default: warning
logs:
custom_components: debug
Hi Filip,
Thanks for trying to replicate the problem. I enabled logging of custom_components, as suggested. However, still nothing in the logs. It looks like it doesn't even try to install. It does show the spinning blue circle, but that keeps spinning indefinitely.
@kodbeeck I assume you restarted HA after that config change 😄 I hope I get more lucky in finding the issue. You do have the latest HA I hope? So we have similar results. I'm on HA core-2021.6.6 In a previous post you mention core-2021.6.5
i'm having the same problems i'm trying to rebuild the custom component from scratch to see where the problem is
installing version 1.3.1 through HACS and adding "version":"1.3.1" to the manifest has succeeded updatding directly to version 1.6.0 has also succeeded
~~installing version 1.4.0 has the same issues as direct install of 1.6.0~~ ~~so i think the differences between 1.3.1 and 1.4.0 are causing the issues~~
removing 1.3.1 and installing 1.4.0 gives no issues, upgrading does
I have the same problem. Might this be related? https://community.home-assistant.io/t/hacs-installing-problem-via-integration-error-config-flow-could-not-be-loaded/314501
There is a request that seem to time out: Request URL: https://${PATH}/api/config/config_entries/flow Request Method: POST Status Code: 504 Data: {"handler":"nhc2","show_advanced_options":false}
Same here
installed version 1.0.0 update to 1.6.0 Reboot server installation succeeded
I cannot get this to work. I even purchased an Odroid N2+ thinking it would be better but no luck. If I add:
nhc2:
host: '192.168.0.196'
port: 8884
username: hobby
password: password
Then it's visible in the integrations page but nothing is happening. There is nothing in the logs as far as I can find.
have you tried a restart of the host? not just home assistant?
At least 10 times already ;-) ha core rebuild full system reboot reinstall install 1.0.0 (but then you cannot add the integration and it doesn't recognize nhc2 in the configuration file?) is there a way to show more logging I currently have the advised
logger:
default: info
logs:
custom_components.hacs: debug
hacs: debug
queueman: debug
AIOGitHubAPI: debug
first install v1.0.0, reboot, upgrade to v1.6.0, reboot then it should work
I installed 1.0.0 logs show
ERROR (SyncWorker_1) [homeassistant.loader] The custom integration 'nhc2' does not have a valid version key (None) in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details
then I did full system reboot (same error is shown in the logs which is normal I guess) then I updated to 1.6.0 then I did full system reboot then the logs show:
2021-07-14 17:29:52 DEBUG (MainThread) [custom_components.nhc2] Connecting to 192.168.0.198 with hobby
nothing else is happening no entities are registered nothing in the logs trying to add the integration via the GUI results in the long running "Installation of the integration" resulting in the "config flow" error with nothing in the logs.
Same problem here... Tried with all the versions via hacs or manually, puting de folder inside custom_components. Update is done but it is impossible to add the integration. The never ending spinning wheel stays there.
I hope a fix will be found for this issue. Anyways, I want to thank the developer because its a great addon. I use it since several months and I hope it will be available again pretty soon
I think other add-ons have the same problem https://community.home-assistant.io/t/hacs-installing-problem-via-integration-error-config-flow-could-not-be-loaded/
It might be related to the 'external_url'. Please read https://github.com/home-assistant/core/issues/47449.
No changes with the last HA update. Still stuck in the spinning wheel and I see that other users have the same issue. I have reviewed for the external url and in my case it doesn't change. Have you tested to do a fresh install of NHC2 in the new version of HA? I wonder if all systems are affected with the new version or there are personal config elements conditioning this situation.
in the logs i see next entry
2021-07-25 13:43:50 DEBUG (MainThread) [custom_components.hacs] <Integration filipvh/hass-nhc2> Running checks against 1.6.0
but not "checks passed"
maybe the initialization isn't complete?
there seems to be an issue with getting the profiles
this function takes a long time
self._all_cocos = await disc.get_all_profiles()
has something changed here at Niko perhaps?
found the issue inside repository nhc2-coco the "done" function is never called because the function "_done_discovering_profiles_callback" is called too soon. adding a while loop with a sleep fixed it on my installation
i'll try to make a pull request in the other repo soon
Hi all, I've retested a fresh install with the new Ha update 2021.08 without luck.. I wonder if there are some news about the possible fix to the installation problem.
Thank you very much,
I'm on holiday at the moment. I'll create pull requests when home. Verzonden vanaf mijn Galaxy -------- Oorspronkelijk bericht --------Van: Murray112 @.> Datum: 5/08/2021 14:20 (GMT+01:00) Aan: filipvh/hass-nhc2 @.> Cc: nielsvissers @.>, Comment @.> Onderwerp: Re: [filipvh/hass-nhc2] not being able to install after update to HA 2021.6 (#22) Hi all, I've retested a fresh install with the new Ha update 2021.08 without luck.. I wonder if there are some news about the possible fix to the installation problem. Thank you very much,
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
How is it going with the pull request?
Created yesterday. For now only in nhc2-coco. Probably have to wait for other release of hass-nhc2Verzonden vanaf mijn Galaxy -------- Oorspronkelijk bericht --------Van: 86hakan @.> Datum: 26/08/2021 09:54 (GMT+01:00) Aan: filipvh/hass-nhc2 @.> Cc: nielsvissers @.>, Comment @.> Onderwerp: Re: [filipvh/hass-nhc2] not being able to install after update to HA 2021.6 (#22) How is it going with the pull request?
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
Similar issue. NHC2 worked flawlessly for several months (awesome integration, thanks!), but when I upgraded to Home Assistant 2021.8.8 (from 2021.4.3, I believe), the integration won't load anymore. Updated HACS, NHC2 itself, with no effect. There go my sixteen light morning and evening scenes :-( Hope you can fix it!
The log gives me this:
Logger: homeassistant.util.package Source: util/package.py:99 First occurred: 1:49:11 (1 occurrences) Last logged: 1:49:11
Unable to install package nhc2-coco==1.3.3: ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qqsw4avw/netifaces/setup.py'"'"'; file='"'"'/tmp/pip-install-qqsw4avw/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-kzms5yb7 cwd: /tmp/pip-install-qqsw4avw/netifaces/ Complete output (15 lines): running bdist_wheel running build running build_ext checking for getifaddrs...not found. checking for getnameinfo...not found. checking for socket IOCTLs...not found. checking for optional header files...none found. checking whether struct sockaddr has a length field...no. checking which sockaddr_xxx structs are defined...none! checking for routing socket support...no. checking for sysctl(CTL_NET...) support...no. checking for netlink support...no. building 'netifaces' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNETIFACES_VERSION=0.10.9 -I/usr/local/include/python3.9 -c netifaces.c -o build/temp.linux-x86_64-3.9/netifaces.o error: command 'gcc' failed: No such file or directory ---------------------------------------- ERROR: Failed building wheel for netifaces ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qqsw4avw/netifaces/setup.py'"'"'; file='"'"'/tmp/pip-install-qqsw4avw/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-9csyrady/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/netifaces cwd: /tmp/pip-install-qqsw4avw/netifaces/ Complete output (15 lines): running install running build running build_ext checking for getifaddrs...not found. checking for getnameinfo...not found. checking for socket IOCTLs...not found. checking for optional header files...none found. checking whether struct sockaddr has a length field...no. checking which sockaddr_xxx structs are defined...none! checking for routing socket support...no. checking for sysctl(CTL_NET...) support...no. checking for netlink support...no. building 'netifaces' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNETIFACES_VERSION=0.10.9 -I/usr/local/include/python3.9 -c netifaces.c -o build/temp.linux-x86_64-3.9/netifaces.o error: command 'gcc' failed: No such file or directory ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qqsw4avw/netifaces/setup.py'"'"'; file='"'"'/tmp/pip-install-qqsw4avw/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-9csyrady/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/netifaces Check the logs for full command output. WARNING: You are using pip version 20.2.4; however, version 21.2.4 is available. You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
Any news on this? My Niko lights still don't work in HA... Thanks.
Hello,
I am running HA on my NAS and it would be nice if I could integrate NHC2 with it. I tried everything so far but the intigration keeps on spinning. Is there already an update when this will be working again?
Thank you in advanced.