-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Adapter Neustart nach Datenpunkt-Änderung Tuya Präsenzsensor ZG-204ZM #2211
Comments
please test:
|
In the stable adapter it worked. There were 2 data points less. No adjustments for sensitivity and distance of the movement sensor. It's the presence sensor from the Tuya ZG-204ZM. https://www.zigbee2mqtt.io/devices/ZG-204ZM.html#tuya-zg-204zm |
A. |
I did the clean up. Log shows no deletions. Error remains. |
Please test by installing from my test branch at
and test again. Please also post any error messages received in case the adapter no longer dies. A. |
Dear asgothian, thanks for this try- but no success- did also a state cleanup:
|
Please repeat the test. I made another change trying to figure out where it fails. |
So sorry to say- but no success:
|
Please install again and try again. You can drop the state cleanup - I am not changing anything there. With the new version, you should be seeing a warning message in the log before the adapter crashes. The crash is not addressed yet as I need to figure out what causes it before I can get there. A. |
The adapter won't crash anymore. This is the output, after changing 3 DPs.
|
did you get warning messages before that ? If so, please post A. |
No- nothing:
|
what happens if you try to edit a state on another device ? |
the state will be written- no log entry... |
can you please check and post the lines 629 to 644 from the file /opt/iobroker/node-modules/iobroker.zigbee/main.js ? |
|
please change the code
to
and then restart the adapter. A. |
|
ok.. now we are getting somewhere. but that has to wait til tomorrow A. |
No worries- thank you so much for your incredible effort! :) |
And on we go. Another test is set up. Please note:
Important is to see a line which sets the converter to something, possibly another line which overrides it. It is my hope that the adapter no longer dies either. A. |
Indeed there is a lot going on :)
|
any crashes or other odd things like devices not working ? |
It works like a charm.... THANK YOU SO MUCH :) |
Ok. I’ll PR this into the main tree tomorrow you can „get rid“ of the messages by changing the relevant this.log.error to this.log.debug around line 650 in main.js A. |
change of plan. Would you be willing to test one more thing ? I pushed the required libraries for the Zigbee-herdsman and zigbee-herdsman-converters to the latest versions. As such there is a risk that it won't run on all versions of nodeJS. I tested it on node 18.18, but don't currently have test systems for lower or higher nodeJS versions. If so, you can install again from the same link. It should give you the 1.10.10 version |
At start is is all OK:
Later when I do e.g. a firmware scan:
|
All other versions 1.10.9 and lower won't start anymore:
|
Firmware scan ? as to your question, there are two possible options: in those folders may be folders Zigbee-herdsman and Zigbee-herdsman-converters. In those you find a file called package.json which contains the version number. It is important to find out if the version number is downgraded when you install the 1.10.9 version |
When I do a "firmware ota scan". It's in opt/iobroker/node_modules. zigbee_herdsman: V2.1.1 |
ok.. when you downgrade to the current stable version, which herdsman / converters versions do you get ? |
|
that's not the current stable version, but the one from the main GitHub. What do you get when installing the current stable version ? (1.10.3) |
Installed 1.10.3 this is the log after start:
herdsman: Version 0.41.2 |
ok.. do you still have a nvbackup.json from lets say 3 days ago ? I assume that data in that file has been changed to cause this |
The only thing that I have is "backitup"- How can I restore it out of this? |
you should be able to restore just the zigbee adapter from within backitup. alternatively, the file is a tgz, so you can unpack it manually and find the file |
once your system is up and running again with the stable version, I'd ask that you install the current GitHub version (1.10.9) from the standard GitHub via the admin interface. If that also works, I can roll back the changes with regards to the library requirements and update the 1.10 for a final test. thank you for doing all these tests - I don't currently have access to a system to test this on. A |
one additional question - what hardware do you use for the coordinator, and with which firmware ? I just asked another tester to run the firmware update scan, and it worked like a charm on their system (with the 1.10.10) A. |
I did the restore of the nvbackup.json backup, installed 1.10.3- works, after that installed 1.10.9 - works :) |
Sonoff 3.0 Dongle-P -> Newest firmware 20240710 Firmware scan now works without a crash |
adapter runs too ? which version currently ? |
1.10.9 works and 1.10.10 finally as well :) |
with no issue with regards to firmware scan ? |
Firmware scan works as well. I'm even doing a firmare update of a IKEA device now. |
While updating this error occured:
|
Did the adapter crash or keep running ? |
It kept running. No errors until now |
Hi @asgothian, your branch work very well :) thanks for the support. Best Mirko |
Lieber Dev,
ich habe die 1.10.9 heruntergeladen.
Sobald ich nun einen der Datenpunkte (Sensitivität etc.) des Tuya Präsenzsensors ZG-204ZM ändere, stürzt der ganze Zigbee Adapter ab:
Danke im Voraus für die Lösung.
Gruß
Michi
Mod Edit - multiline code tags
The text was updated successfully, but these errors were encountered: