-
Notifications
You must be signed in to change notification settings - Fork 10
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
Discovery issue with iZoneV2 #3
Comments
Thanks for your report. I should be able to fix it this weekend. |
That's awesome. Let me know how I can help :) |
OK, I've pushed up a new version of the file. I'm not entirely sure it will work though, if the API version number has changed then it's very possible the API itself will be different. In any case here's the file that replaces the existing If you're using hass.io, login to wherever it's running then execute this: > docker exec -it homeassistant bash -l
> cd /usr/local/lib/python3.7/site-packages/pizone
> cat > discovery.py
**paste in the new file contents**
^C
> exit
> docker restart homeassistant Then see how you go. If you need help getting it onto you system, ping me in the #homeassistant support channel on discord, @Penny |
@Swamp-Ig thanks - some progress, but seems to still have an issue in discovery. Followed your instructions to update hassio Let me know what else i can do to test, and what other info you need. Thanks heaps for your efforts! Nick |
I suspect like I was concerned about, the API has changed. It's going to be very hard for me to fix since I don't have a V2 unit at home. |
@Swamp-Ig understood. I've forked this and am working through it atm. Hope to report back soon with some feedback |
Awesome! Feel free to contact me on the discord. |
@Swamp-Ig i have no idea what i did wrong, but its all working now. I literally just added more debug logging to understand the flow, used your method above to overwrite the release version files, and the discovery worked a charm! I can only assume i stuffed up somehow. Awesome work on this library - appreciate your efforts :) |
Oh great, I will update the HA version of the library and push up the new version.
|
Hey, So I've contacted the iZone people, it looks like the API has really just been extended for V2, The only exception would be for iSave if you have that option. I will continue to discuss with them and see how we go. |
Just pushed up a PR to home assistant to fix this issue. |
Awesome :) cheers @Swamp-Ig |
This comment has been minimized.
This comment has been minimized.
Hey @Swamp-Ig Currently I am on 0.107.5, but my HA refuse to discover the iZone at all. When I go back to my previous version 0.106.6, I can still see the HA detecting iZone and all my iZone automatons works fine. Could you kindly check whether any changes on the component for 0.107.x has a negative impact on the pre-existing iZone devices please? Thanks in advance. |
Hey @Swamp-Ig same here, after 0.107.x all iZone devices are orphaned, if I remove and re-add the integration nothing is found on the network. Any advice would me much appreciated. Cheers, |
Hey, Sorry I'm definitely not going to have time to look at this for some time given the COVID situation. Once things have settled down I might get a chance. It works for 106.5 for me. |
@aarooren As a temporary solution, if you map the 0.106.6 iZone component folder to your HA installation it does fix the issue and everything works. I've tested it up to HA 0.109 dev |
@ufu- Do you use Docker? If so, check if this fixes your issue: |
@ufu- |
Is there documentation on the v2 API? |
Yeh there is, it's just extra stuff that isn't that useful for HA purposes though and isn't a radical change. Have picked this issue up again, I have the fixes ready to go and will be pushing out soon. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
OK well it's not a priority for me I'm afraid. Also please keep this on-topic. This question isn't anything to do with the issue. |
This is now PRed in HA for the next release. |
Hi @Swamp-Ig late to this thread, but I am running HA 2022.7.3 and have just tried to install the iZone integration. I get the following: 2022-07-18 17:05:35 INFO (MainThread) [pizone.discovery] Starting discovery protocol From the above thread, I assumed this was working. i did note that my iZone hub was on another subnet (I have another subnet for all edge and iot devices), but not sure if that would pose a problem, as my other devices get found with other integrations. Any help would be awesome. |
I'm pretty sure that discovery will only work on the same subnet has they discovery packets are broadcast so won't be seen on another subnet. |
@Nick-Adams-AU thanks nic. Interestingly however, the sonoff devices i use are on a different subnet to the HA server and it still finds them. |
I don't think Sonoff use broadcast packets for discovery which would explain the difference in behaviour. |
Hi there.
Have just had iZone-enabled aircon installed, so haven't had any operating iZone integrations in homeassistant as yet. When i attempt to discover the iZone instance i get a response of "No iZone devices found on the network". The logs show that the iZone controller has responded, but the pizone detection hasn't picked it up.
Issue seems to be in the iZone descriptor sent back from the controller being "iZoneV2" instead of the expected "iZone". Code at line 379 in discovery.py is not expecting a V2:
pizone/pizone/discovery.py
Line 379 in 06735e0
Logs below show the sending and receiving of discovery packets:
Looking first of all to make sure that i've interpretted this correctly, then to see if we can provide a solution. If i can spin up a dev instance i'll create a pull request.
Thanks,
Nick
The text was updated successfully, but these errors were encountered: