-
Notifications
You must be signed in to change notification settings - Fork 7
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
missing release for niko-home-control==0.2.1 #10
Comments
Did it ever work on HA? Nikov1 ? |
Hi @onkelbeh , I've added the tag per your request, not sure why it was not present... |
@pergolafabio I can confirm it does work with the v1 version on HA. If you are able to help me solve some issues others are having that would be great. It's still unclear if anyone that is having issues has this with the HA integration or with the lib itself. Here is a snippet that should at least verify the working of the library. https://github.com/NoUseFreak/niko-home-control.git
cd niko-home-control
pip3 install -r requirements.py from nikohomecontrol import (
NikoHomeControl
)
niko = NikoHomeControl({
'ip': '<IP>',
'port': 8000,
'timeout': 20000,
'events': True
})
print(niko.system_info())
for a in niko.list_actions():
print(vars(a)) |
It was not for me, but for someone I know, but he runs hassos, so not sure if I can do a pip install, do I need to change the requirements maybe? I can load a custom for him... Or should it work out of the box |
The test script is not required to run on HA. From what I gather, it's a json parse error between the lib and the niko API. So feel free to run it on any device. |
ok, gonna let him test again, but i think we still receive this error as before : home-assistant/core#19283 , first post |
Thanks, At least I can confirm it compiles fine, and runs all test. I can't do more tests because I do not have the hardware. |
hi @NoUseFreak , we tried the platform again, but upon restart HA, still the error below any idea?
|
@pergolafabio Do you have
I would be expecting something that is a valid json.
|
hi @NoUseFreak , i asked him, here is output from @vincentvanneer
|
hey @NoUseFreak already got a chance to look at the issue? |
Hi @pergolafabio I've not found the time to investigate the issue. If I would guess what the issue could be, it might be related to the size of the json being cut off at some point. @legovaer Do you believe this might/can be the cause? I know you did some improvements on the tcp connection implementation. |
can i try shorter names for the lights to decrease the output of the json? is the culprit maybe the 255 max characters in HA? |
You can give it a try, although I'm also noticing in my implementation, I only have actions of |
its not my house :-) , but could type 0 some kind of mood and type 2 a dimmer? |
Hi Dries It's my installation that Fabio is referring to. I noticed that the types are following the actual type of action in NHC. Type: 0 is an action with one option. On or Off. Not both. I used that to configure my ALL OFF I just removed the Type: 0 but the error remains. I just downloaded the python project on your Github. I'll debug the code and see where the issue comes from. Regards Vincent. |
Hi Vincent, It looks like my installation only has type 1 in the API. Although I have dimmers, I guess I've always assumed dimmers are not in the API, guess I will need to upgrade my installation at some point. Let me know your findings and if I can be of any assistance. |
so the culprit is maybe the dimmer? |
I don't expect it to be, although I've never tested the dimmer functionality. The |
Does it help to turn on debug? |
I’ll debug the code tonight. I assume it’s something in the parsing of the json reply. Will keep you posted! Regards Vincent |
Hi Dries,
hope you don't mind I am using your component in Home Assistant Gentoo Overlay, ebuilds: https://git.edevau.net/onkelbeh/HomeAssistantRepository/src/branch/master/dev-python/niko-home-control.
Home Assistant currently relies on
niko-home-control==0.2.1
You do not publish SDIST on Pypi, and you did not add a tag for 0.2.1 here.
To get a valid source, I forked it, and created the missing tag for 4b9ff57
Could you please snap a release or add a tag for 0.2.1, so I could get rid of the fork?
Thanks a lot.
Greeting from sunny bavaria!
The text was updated successfully, but these errors were encountered: