-
Notifications
You must be signed in to change notification settings - Fork 18
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
Home assistant error Received unhandled response 0x8012 tradfri IKEA #104
Comments
I just add this line : |
I'm having the same issue on Home Assistant with the ZHA integration:
My Zigbee controller is a Zigate v1 with firmware 3.1e |
See issues 104 for more details
It seems that this issue has been treated in #107 |
@baimard You might want to consider reopening issue and @nlhomme might want to create a new pull request based on #107 See the last comment by pipiche38 in #107
Forking a project/library means that the library has been copied and some or any code patches (like new fixes or features) to forks might or might not be actively contributed back to the original upstream project by the developers that are working on that forked version. In this case, it means that there is at least one patch in the fork https://github.com/zigbeefordomoticz/zigpy-zigate that is not available in upstream https://github.com/zigpy/zigpy-zigate but those patches in that fork are not currently being actively tested to check for any breakage in the ZHA integration component in Home Assistant by the developers working on that fork of zigpy-zigate as they are testing the library with another software application and do not have time or interest in regression testing with other applications using the same library, like ZHA. As in, if you want those patches to be in upstream now rather than hoping that they might be added later then regression testing of that fork (or just specific patches) is needed by other volunteers and then once confirmed not broken anything, someone, either the tester or some other volunteer will need to backport that and any other acceptable fixes from that fork back here to the upstream zigpy-zigate. Terminology for reference:
If you have the ability to test that fork with your setup then please do so and report your result here and also to #107 and #106 There is some more information about testing here that would need to be adapted when working with a forked library version:
PS: As I understand it, the main reason why they choose to fork to https://github.com/zigbeefordomoticz/zigpy-zigate rather than just keep submitting pull requests to upstream https://github.com/zigpy/zigpy-zigate is that no zigpy developers who own any ZiGate hardware and have a personal interest in maintaining support for are currently actively working on maintaining upstream https://github.com/zigpy/zigpy-zigate thus new volunteering developers with a personal interest in maintaining support is needed. |
done |
I don't understand all of this communication from @Hedda, if you are against what we are currently doing, tell us frankly , but so far the zigpy-zigate library is stuck and not maintained. So it is unbelievable to read such messages ! |
I agree with @pipiche38 but if hi and some more like forking some part (or all) of the Zigpy libs and patching it like more devs have doing in other system its more than OK. In the end if more support for different hardware /system then better for all parts and our community. Also having more devs working with different parts is also one win win situation then getting more devices supported in the upstream (pipiche38 have helping getting more device added and some other system have doing the same). I hope all is working well and getting all part in place and the system working with Zigpy libs as underlying radio lib. Witch one great 2022 to all that is helping all working well in our system and many hours or nice "dream coeding" for getting more function in place !! |
@MattWestb this is exactly my point, we are currently trying to enhance the zigpy-zigate layer, because we benefits from all good work done on zigpy and especially zigpy-znp. |
@pipiche38 I am not against what you are doing at all. I am not against it in any way. I am very much a fan of what you are trying to achieve and think all that you guys are doing is a good thing. I think that it is great that more projects are trying to use zigpy. I was just trying to inform others what it means by a fork as do not think that was made clear when the pull requests were closed. Personally, I understand why you forked and understand that it will hopefully not be your long term goal but something that has to be done in order to speed up the development process and part of the normal everyday development process. So, me being frank; I really LOVE what you have been doing with your project and I do wish that you will continue using zigpy in it. I also do hope that you at some point get to having a stable version of zigpy-zigate in it too, no matter if it is a fork of it or not. @pipiche38 Again I am sorry for the misunderstanding. I am not a native English speaker and I believe that neither are you(?).. PS: I think if you would re-read my posts and remember they were not posted as something bad then they read very differently. As again, my posts was not aimed towards or against you but instead aimed towards other people reporting about zigpy-zigate issues.
+1 The more projects using zigpy and the more developers/users using hardware with different Zigbee stack the better for us all. |
@Hedda I have been contacted by several HA users willing to test the current fork that we have. Is there any one from HA whom can give a short procedure on how to shift from the current zigpy-zigate package to the one available here https://github.com/zigbeefordomoticz/zigpy-zigate Currently we have made changes to:
|
Maybe a quick procedure can be to replace the package by this one in :
/usr/local/lib/python3.9/site-packages/zigpy_zigate
Cordialement,
Benjamin AIMARD
Le 10/01/2022 à 16:27, Pipiche a écrit :
…
@Hedda <https://github.com/Hedda> I have been contacted by several HA
users willing to test the current fork that we have. Is there any one
from HA whom can give a short procedure on how to shift from the
current zigpy-zigate package to the one available here
https://github.com/zigbeefordomoticz/zigpy-zigate
Currently we have made changes to:
* Support Zigbee group and broadcast
* Support Zigate firmware 321 (which is the minimum)
* Support and handle the message flow ( 8011/8012/8702 )
—
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ5OENPOLGA4T2RZ3ZZHITUVL3F3ANCNFSM5HQ2GH7Q>.
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:
***@***.***>
|
Don't know if that will be enought to overwrite the standard package pip3 install git+https://github.com/zigbeefordomoticz/zigpy-zigate.git |
It maybe better to directly replace the package, because of docker user.
With this command I don't know if you replace existing package ...
Cordialement,
Benjamin AIMARD
Le 10/01/2022 à 17:55, Pipiche a écrit :
…
Don't know if that will be enought to overwrite the standard package
pip3 install git+https://github.com/zigbeefordomoticz/zigpy-zigate.git
—
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ5OEKQTHD7DPH7TFPB2RDUVMFRRANCNFSM5HQ2GH7Q>.
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:
***@***.***>
|
So this is out of my knowledge |
git clone https://github.com/zigbeefordomoticz/zigpy-zigate.git
mv /usr/local/lib/python3.9/site-packages/zigpy_zigate
/usr/local/lib/python3.9/site-packages/zigpy_zigate.back
cp -r ./zigpy-zigate /usr/local/lib/python3.9/site-packages
C'est tout :)
Cordialement,
Benjamin AIMARD
Le 10/01/2022 à 18:54, Pipiche a écrit :
…
So this is out of my knowledge
—
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ5OEKBVSK65PD5HTIPD2LUVMMMRANCNFSM5HQ2GH7Q>.
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:
***@***.***>
|
Benjamin, Thanks a lot for you're small tutorial on how to update the zigpy-zigate library. Thanks alot? |
Sorry I'm not good with either Linux or Python packages myself, and especially not when the use of Docker containers is involved. I believe you need to make sure you are in the Docker virtual environment. Home Assistant has this official documentation on adding new dependencies inside a test environment for Home Assistant: I'm not sure how it works if want to test alternative Python packages from alternative sources when a users is using "Home Assistant Container" "Home Assistant Operating System" (a.k.a. "HAOS" Home Assistant OS embedded Linux distribution) installations which both uses/depends on Docker containers? That is, installing a new Python module from the PyPI within your virtual environment to overwrite the existing package. https://github.com/zigpy/zigpy-zigate/blob/dev/README.md#testing-new-releases Probably easy for testers using Home Assistant without Docker, as is when have only installed "Home Assistant Core" directly under any other Linux distribution. The differences between the different installation methods of Home Assistant are described here: https://www.home-assistant.io/installation/
Again, I believe you need to make sure you are within your virtualenv (Docker virtual environment). Then probably first want to start by uninstalling whichever existing zigpy-zigate package before installing the new package or? (venv) $ python -m pip uninstall zigpy-zigate If you do not first do Think it should then be to just install the new Python module via git using pip install from PyPI Git within your virtualenv: pip install git+https://github.com/zigbeefordomoticz/zigpy-zigate/ Alternativly pip install of "branch" (where replace "branch.zip" with branch) that want ZHA users with ZiGate to test, with either: pip install https://github.com/zigbeefordomoticz/zigpy-zigate/archive/branch.zip Example: (venv) $ pip install https://github.com/zigbeefordomoticz/zigpy-zigate/archive/dev.zip or to download each file individually via git as you wrote which takes longer but might be simpler (again replace "branch"): pip install git+https://github.com/zigbeefordomoticz/zigpy-zigate.git@branch Example: pip install git+https://github.com/zigbeefordomoticz/zigpy-zigate.git@dev PS: Many used to use a this "zha-custom-radios" custom component to test zigpy-znp and other custom radio modules in Home Assistant via HACS (Home Assistant Community Store) before zigpy-znp was merged into the mainline which made testing simple: https://github.com/zha-ng/zha-custom-radios Today that is not maintained and guess would have to be updated and maybe even rebased on this to make updating tests easier: https://github.com/MatthewFlamm/pytest-homeassistant-custom-component Think then updating hassio-addons-development is the generally prefered way when using a "Home Assistant Supervised" install: https://github.com/home-assistant/addons-development PPS: Maybe start new issue or discussion with the subject topic "Testing fork of zigpy-zigate"? -> https://github.com/zigpy/zigpy-zigate/issues/ or https://github.com/zigpy/zigpy/discussions |
When got a working guide for easy way to test specific branches from other forks it might be good idea to add it to README.md? https://github.com/zigpy/zigpy-zigate/blob/dev/README.md#testing-new-releases |
@Gemies I think the best is for you to use this Issue to report any problem/issue. I'm sure you'll find some help |
FYI, also now posted a general plea for help with testing with ZHA in Home Assistant community forum here:
Update: Also posted a copy of that for generic zigpy development discussion here -> zigpy/zigpy#880 |
@Gemies are you on Linux Windows Docker ? |
It should also be noted that Home Assistant is not officially supported directly under Microsoft Windows OS or Mac OS, only Linux. Nor is it supported to install Home Assistant core directly under MS Windows or Mac OS via Python releases for Windows/macOS. Microsoft Windows OS or Mac OS is really only options if installing Home Assistant in Linux running inside a virtual machine (VM). https://www.home-assistant.io/installation/ If you are running Windows or Mac OS then you need to install HA inside Linux OS running in a VM on a virtualization hypervisor. So could install in a virtual machine under hypervisor. like; VirtualBox, Proxmox VE, KVM, Hyper-V, or VMware Workstation/Fusion. |
Even with WSL on windows with a docker container ? ... |
@baimard I run HA on Synology Nas with a VM. |
I'm sorry I don't know where you can find the package ... try with |
Which exact Linux distribution? Running inside that VM? Are you running "Home Assistant Operating System" or .... other distro? https://www.home-assistant.io/installation/ At least assume by "run HA on Synology Nas with a VM" you mean run HA in Linux under a virtual machine via Synology VMM? https://www.synology.com/en-global/dsm/feature/virtual_machine_manager It is really not recommended to run Home Assistant directly within Synology's DSM OS even though can install Docker within DSM. The same would go if have a QNAP NAS. It is OK to install in a VM under its hypervisor but not OK to install in the NAS's own OS. https://www.qnap.com/en/software/virtualization-station
Yes as I understand it, believe Home Assistant is officially not supported under WSL. You might be able to get different results today as later versions of Windows Subsystem for Linux in Microsoft Windows operating systems are getting more compatible with native Linux with each newer version of WSL such as "WSL 2" in Microsoft Windows 11. (And yes I know that you can today install Ubuntu subset for Linux from the Windows Store to get Ubuntu's Docker image for WSL2). The fact remains that Home Assistant core is officially not supported under WSL even if you could practically get it to work for you. You need to understand and remember that WSL (Windows Subsystem for Linux) is still not a full Linux distribution. WSL only a compatibility layer for running Linux binary executables (in ELF format) natively on Microsoft Windows 10. WSL it only meant to include a subset of the most common Linux command-line tools and applications. https://docs.microsoft.com/en-us/windows/wsl/about So I think it would be a very bad idea to use WSL on Windows as a testing environment platform when it is not officially supported. At least I know that if you would submit a ZHA bug-report to Home Assistant core then they will close it if you are not running it under either Home Assistant OS or any other proper Linux distribution. Thus it is really a moot point to spend time testing in WSL. |
I use the vm manager from Synology. Installed the official HA OS image which provided by home assistant on the website. https://www.home-assistant.io/installation/alternative/#install-home-assistant-operating-system |
Hello, The purpose of zigpy is to be cross plateform ? (domoticz/ha/jeedom/ect ?) On HaOS VM, : any idea ? |
@max5962 What are you asking? FYI, see back-story on Zigbee for Domoticz in zigpy general discussion here -> zigpy/zigpy#865 |
These are ZiGate errors reported by the firmware via 0x9999 . For the stack trace, it would be important to have more debug to understand what was the context. So better to enable debug for zigpy-zigate |
everythings work well now ! |
New error
|
@baimard I have sniffing all types of IKEA controllers for one year ago and they is needing one "Reconfigure device" from device card for reporting OK in ZHA. Try it and not forgetting waking the device up by pressing one button then sending things to it (they is sleeper). |
``
zigpy-zigate/zigpy_zigate/api.py
Line 22 in 818c3a1
My IKEA light send me a 0x8012 answer.
Is it possible to had this response ?
The text was updated successfully, but these errors were encountered: