zigbee2mqtt / hassio-zigbee2mqtt

Official Zigbee2MQTT Home Assistant add-on
https://www.zigbee2mqtt.io
Apache License 2.0
1.12k stars 390 forks source link

Sensors unavailable #202

Closed thommycgn closed 2 years ago

thommycgn commented 3 years ago

Description of problem: I'm using the CC2531 Stick (on a USB extension cable) with Z-Stack_Home_1.2 (source_routing) on Home Assistant. I have several Xiaomi MiJia temperature & humidity sensor (WSDCGQ01LM) in use. After some time, the sensors are displayed as unavailable in Home Assistant. Various Zigbee lamps and switches I use still work. Only the temperature sensors are unavailable. Only restarting Zigbee2mqtt in Supervisor can fix the problem for a while.

Zigbee2mqtt add-on version (if edge, please report commit hash):

Current version: 1.21.2-1 

Your entire configuration from the frontend (with sensitive fields redacted):

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
serial:
  port: /dev/ttyACM0
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
  availability_timeout: 60
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false

Running platform (details from Suypervisor > System)

Core: core-2021.9.6
Supervisor: supervisor-2021.09.6
Operating System: HassOS 6.3
thommycgn commented 3 years ago

It is possible that the temperature sensors are not the only problem. Now my kitchen lamp is no longer accessible, which is operated at a TUYA Conroller TS0502A. In the user interface of Zigbee2mqtt it is shown as switched on, but it does not respond when I switch it.

The log file says the following:

Error Publish 'get' 'state' to 'Esstisch' failed: 'Error: Read 0x588e81fffec8bd3c/1 genOnOff(["onOff"], {"sendWhenActive":false,"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205))'`

and about my kitchen lamp: Debug Failed to ping 'Esstisch'

and about my temp sensors:

Debug Non-pingable device 'Terrasse' was last seen '407523.653' seconds ago.
Debug Non-pingable device 'Küche' was last seen '403051.202' seconds ago.

I can rule out an error on the hardware of the stick, since I have several here and the same error occurs on all of them. All of them have the same firmware.

Restarting the Zigbee2mqtt module shows the lamp, as well as the temperature sensors, for a few minutes. Then they disappear again. If I delete them and do a new pairing, they work again for a few days until the problem reappears.

In the meantime I have updated my system. Core: core-2021.10.0 Supervisor: supervisor-2021.09.6 Operating System: HassOS 6.4

Any Ideas how to fix this problem? Is it the Stick and his Firmware maybe?

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days