Skip to content
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

Zigate ne répond plus #397

Open
max5962 opened this issue Apr 14, 2022 · 2 comments
Open

Zigate ne répond plus #397

max5962 opened this issue Apr 14, 2022 · 2 comments

Comments

@max5962
Copy link

max5962 commented Apr 14, 2022

Hello,

Depuis quelques jours, sans raison apparente, la zigate s'est mis à ne plus répondre.
Contexte : home assistant + VM + zigate V1

J'ai unplug/plug la zigate , relancer la VM et c'est reparti.
Or depuis quelques jours, j'ai l'impression de devoir faire ça plusieurs fois par semaine .....

Lors d'un reload, j'ai le droit à :

2022-04-14 15:50:07 WARNING (MainThread) [zigpy_zigate.api] No response to command 0x0002
2022-04-14 15:50:07 WARNING (MainThread) [zigpy_zigate.api] Retry command 0x0002
2022-04-14 15:50:08 WARNING (MainThread) [zigpy_zigate.api] No response to command 0x0002
2022-04-14 15:50:08 WARNING (MainThread) [zigpy_zigate.api] Retry command 0x0002
2022-04-14 15:50:08 WARNING (SyncWorker_5) [custom_components.miio2.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.1.128
2022-04-14 15:50:10 WARNING (MainThread) [zigpy_zigate.api] No response to command 0x0002
2022-04-14 15:50:10 ERROR (MainThread) [zigpy.application] Couldn't start application
2022-04-14 15:50:10 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry zigate for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
    fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/api.py", line 212, in command
    result = await asyncio.wait_for(status_fut, timeout=timeout)
  File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 102, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 182, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/zigbee/application.py", line 39, in startup
    await self._api.set_raw_mode()
  File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/api.py", line 260, in set_raw_mode
    await self.command(0x0002, data)
  File "/usr/local/lib/python3.9/site-packages/zigpy_zigate/api.py", line 226, in command
    raise NoStatusError
zigpy_zigate.api.NoStatusError

J'ai tenté un unplug, plug façon VM => IDEM.
je dois absulement plug/unplug physiquement la zigate, parfois le reboot la VM est nécessaire.
Point important, quand ça arrive la led bleu est éteinte et se rallume après l'opération.

Je sais pas si c'est important mais j'ai beaucoup de :

2022-04-14 15:56:27 WARNING (MainThread) [zigpy_zigate.zigbee.application] Extended error code 131

ou
2022-04-14 15:58:19 WARNING (MainThread) [zigpy_zigate.zigbee.application] Extended error code 128

Une idée ? merci

@edgd1er
Copy link

edgd1er commented Apr 14, 2022

sur la machine hote as tu des messages a propos du pl2303 ?

[407410.983772] usb 1-1.5: pl2303 converter now attached to ttyUSB0
[407460.939724] pl2303 1-1.5:1.0: pl2303_vendor_write - failed to write [0008]: -32
[407460.939899] pl2303 1-1.5:1.0: pl2303_vendor_write - failed to write [0009]: -32
[407460.940212] pl2303 ttyUSB0: pl2303_get_line_request - failed: -32
[407460.940410] pl2303 ttyUSB0: pl2303_set_line_request - failed: -32
.....

cela pourrait être le convertisseur a changer: #41 ?

il y a 4 ans quand j'avais eu le pb, j'avais mis en place un script pour arreter le conteneur, forcer le reset sur le port usb et relancer le conteneur. Après avoir changer le convertisseur, plus de problème.

@JeroLajHub
Copy link

JeroLajHub commented Apr 20, 2022

Je viens de rencontrer le même problème. Je ne sais pas si la mise à jour il y a quelques jours du firmware de 3.1e à 3.21 rend plus sensible la clé. Les plantages de ma Zigate ont été rares en plusieurs années.

Comme je viens de recevoir un CP2102 de Zigate que j'avais commandé pour la mise à jour du firmware du ZLinky, je vais tenter le remplacement du vieux TTL Prolific (PL2303) par celui-ci. Je vous raconterai.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants