-
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
not being able to install after update to HA 2021.6 #22
Comments
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. |
Hi, Steps i did: Hope this helps a bit. |
I upgraded today, without issue. First hacs and hass-nhc2, then HA. |
Btw, to see something is the logs, you might want to enable logging on custom components or hass-nhc2 specific. 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'm having the same problems installing version 1.3.1 through HACS and adding "version":"1.3.1" to the manifest has succeeded
removing 1.3.1 and installing 1.4.0 gives no issues, upgrading does |
I have the same problem. There is a request that seem to time out: |
Same here installed version 1.0.0 update to 1.6.0 |
I cannot get this to work.
Then it's visible in the integrations page but nothing is happening. |
have you tried a restart of the host? |
At least 10 times already ;-)
|
first install v1.0.0, reboot, upgrade to v1.6.0, reboot |
I installed 1.0.0
then I did full system reboot (same error is shown in the logs which is normal I guess)
nothing else is happening no entities are registered nothing in the logs |
Same problem here... I hope a fix will be found for this issue. |
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 home-assistant/core#47449. |
No changes with the last HA update. Still stuck in the spinning wheel and I see that other users have the same issue. |
in the logs i see next entry |
there seems to be an issue with getting the profiles has something changed here at Niko perhaps? |
found the issue 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 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. |
@p8ulus |
Hi, I'm having the same issue. However I'm not able to solve this. Thanks for all the suggestions already. |
Hass-nhc2 is the main integration for Home Assistant, which relies on nhc2-coco as dependency to provide communication with the NHCII controller. In other words: nhc2-coco knows how to communicate with your Niko installation and hass-nhc2 translates this knowledge into HA compatible entities, functions and variables. If you install hass-nhc2 it will (or at least: should) install nhc2-coco in the background. From other replies in this discussion it seems this sometimes goes wrong. |
@joleys thanks for your reply, that clears it all up to me! The problem I'm still having right now is that I'm unable to install hass-nhc2 on Home Assistant again (always used it in the past, but due to issues thought reinstalling it was the best idea to solve it). Does anyone still has any suggestions on how to solve this? Add this to your configuration.yaml But was also not able to get the integration installed then, and my Home Assistant system was very slow afterwards as well so had to restore it to the backup I took before. |
homeassistant reinstalled updated to latest version, above description performed. Add this to your configuration.yaml I still get the same message "Unable to load config flow" |
any progress here ? |
For me, the solution of David Kinders (29 Oct) combined with Geert Meersman (31 Oct) on installing the headers, got it to work, which it does until today. However, I do not want to install a new version of HA because this will mess up the integration again. Niels, any view on a permanent fix? |
Hello, I had a worked NHC2 with above steps. I added some rest_commands in my configuration.yaml Kind regards, Logger: root Uncaught thread exception |
FYI I have installed the new HA 7.2 and reinstalled NHC2 and now everything works fine again. |
I've finally succeded to have the integration installed but I would like to know how to resolve the Niko problem to get the api token. {"answer"=<the answer to Life, The Universe and Everything Else>} I know the answer but no the correct JSOn syntax. Can you help me to solve it? thanks again. Lot of brainstorming to controle our lights from home assistant... I will give a feedback if it works when pasted it. ;) |
{answer:42} should work
Outlook voor iOS<https://aka.ms/o0ukef> downloaden
…________________________________
Van: Murray112 ***@***.***>
Verzonden: Saturday, January 29, 2022 9:29:48 PM
Aan: filipvh/hass-nhc2 ***@***.***>
CC: pdemeyer ***@***.***>; Mention ***@***.***>
Onderwerp: Re: [filipvh/hass-nhc2] not being able to install after update to HA 2021.6 (#22)
I've finally succeded to have the integration installed but I would like to know how to resolve the Niko problem to get the api token.
{"answer"=<the answer to Life, The Universe and Everything Else>}
I know the answer but no the correct JSOn syntax.
Can you help me to solve it? thanks again.
Lot of brainstorming to controle our lights from home assistant...
I will give a feedback if it works when pasted it. ;)
—
Reply to this email directly, view it on GitHub<#22 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA6N6FQWHBWOPLJFB53WXV3UYRE3ZANCNFSM46XKA3IA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Tried but it doesn't work. It asks to correct the syntax of the whole phrase. I've tried also replacing answer by 42 but it doesn't work. |
Did you notice the small difference of ‘:’ versus ‘=‘? |
JSON syntax
{"answer":42}
Cheers,
Geert
Op ma 31 jan. 2022 06:57 schreef Murray112 ***@***.***>:
… [image: image]
<https://user-images.githubusercontent.com/76228877/151745685-eb5c55c8-3ff3-48eb-9e07-c72fccf9da16.png>
I've tried several combinations .
{answer:42} too.
But it seems to be still wrong in my case. I miss something..
—
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOCG65ATNPIAS5FKHT6V2TUYYQGFANCNFSM46XKA3IA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The correct answer to get your API token is actually:
*{"answer"='The answer to Life, The Universe and Everything Else'}*
Always worked for me, every time.
Fred
…On Mon, 31 Jan 2022 at 07:59, Geert Meersman ***@***.***> wrote:
JSON syntax
{"answer":42}
Cheers,
Geert
Op ma 31 jan. 2022 06:57 schreef Murray112 ***@***.***>:
> [image: image]
> <
https://user-images.githubusercontent.com/76228877/151745685-eb5c55c8-3ff3-48eb-9e07-c72fccf9da16.png
>
> I've tried several combinations .
> {answer:42} too.
> But it seems to be still wrong in my case. I miss something..
>
> —
> Reply to this email directly, view it on GitHub
> <#22 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAOCG65ATNPIAS5FKHT6V2TUYYQGFANCNFSM46XKA3IA
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVZ2MJ6NGKU3FA7LYQMUXLUYYXLZANCNFSM46XKA3IA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I've tried... {"answer"='The answer to Life, The Universe and Everything Else'} But it still saying that my JSON is wrong... Can you retry to see if it works for you? Thanks again for your help, Fernando |
@Murray112 enter exactly what geert posted above. What you posted isn't valid json. |
Thank you all!!
I've tried putting "" to the username and pass also but nothing. It's probably a silly thing but I can' get it finally working... Thanks for your patience again ;) Murray |
Little up! After succesfully added the integration and the Holy API Token, I can't see any of my Niko ligths or sensors... Thanks a lot. Murray_ |
Hi All, I've successfully installed the NHC2 integration via HACS, solved the Hobby API question to get access to my password, added the nhc2: lines in the configuration.yaml, rebooted HA, all this in various combinations but I still don't get any entities from the nhc2 integration. I wonder, is this working for anyone out there or should I give up trying? Thanks, |
Hi spaceman569, what does the log say when you start up? This worked for a while, but then stopped as well because you there was a dependencies issue. People solved it here: #38. I myself managed to solve it by forcing the installation of the right version. |
Hi minosrex, massive thanks for pointing me in the right direction. I thought this thread would not help me since I couldn’t see a clear working conclusion. However, tonight I got it to work by executing #22 and then #38. But since I have a fresh HA installation on a RPi I believe I could have merged the two instead of doing them in sequence (?). I still have one question; I see only switches and lights, not virtual devices/outputs, mini pirs nor scenarios that I have in Niko. Do you know how to add them manually? |
Hi spaceman569, I never implemented anything within Niko beyond the electrician defining the lights when he did the installation. I had it installed with HA in mind -which is why I hope it keeps working! |
Hi, I have seen in the hobby api documentation that quite some features are possible to extract/interact with. Also the PIR (@spaceman569) : My proposal would be to add them to the addon, you could already play with it using an MQTT client, this is how I debugged things. |
Hi geertmeersman, this looks interesting, thanks! I am aware of the documentation but haven't dug into it yet... it will probably take some time (family first :) ) before I see the Niko PIRs in HA. Maybe I go for the simpler solution and install parallel HW (PIRs or door switches) directly to HA. Not a sexy solution, but very fast. I'll post here if I go the long way through nhc2. |
As far as i have seen, there is a difference between the json data for pir Action and normal button Actions. A pir is more a scene than a button. If the scenes are integrated so wil pir or vice versaVerzonden vanaf mijn Galaxy
-------- Oorspronkelijk bericht --------Van: spaceman569 ***@***.***> Datum: 4/06/2022 09:29 (GMT+01:00) Aan: filipvh/hass-nhc2 ***@***.***> Cc: nielsvissers ***@***.***>, Mention ***@***.***> Onderwerp: Re: [filipvh/hass-nhc2] not being able to install after update to HA 2021.6 (#22)
Hi geertmeersman, this looks interesting, thanks! I am aware of the documentation but haven't dug into it yet... it will probably take some time (family first :) ) before I see the Niko PIRs in HA. Maybe I go for the simpler solution and install parallel HW (PIRs or door switches) directly to HA. Not a sexy solution, but very fast. I'll post here if I go the long way through nhc2.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
OK, that is also an interesting piece in the puzzle. I am missing the scenes as well so maybe I should focus on those and hopefully the PIRs will come automatically. I plan to spend some time on this in July, during my vacation on rainy days :). |
a default pir scene apparently doesn't send out a MQTT event when triggerd. |
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.
The text was updated successfully, but these errors were encountered: