I have several TUYA presence sensors (model ZG-205Z/A). I have updated to Zigbee2MQTT 2.0.0-2. Recently, with the updates, the sensors do not work correctly. Upon startup, it detects them and they work fine, as well as the automations. But after around 10-15 minutes, they are no longer recognized.
I have added the port and the adapter to the configuration, although it was not there before but they were recognized without problem and it worked (it is a Sonoff Dongle_Plus ITead). But the same thing keeps happening after add the adaptor: after a few minutes the sensor is no longer available.
Would you know how it would be possible to solve them?
Current configuration:
Add-on ((he presence sensors are, in Spanish: “sensor presencia dos cocina” y “sensor presencia tres salón”)):
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
serial:
adapter: zstack
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_*******-if00-port0
Configuration yaml:
homeassistant:
enabled: true
frontend:
enabled: true
port: 8099
mqtt:
server: mqtt://core-mosquitto:1883
user: addons
password: leeCaetoo*****
serial:
adapter: zstack
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_********-if00-port0
advanced:
homeassistant_legacy_entity_attributes: false
homeassistant_legacy_triggers: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false
devices:
'0x001788010c2dd333':
friendly_name: bombilla dormitorio
'0xa46dd4fffe1cb106':
friendly_name: '0xa46dd4fffe1cb106'
'0xa4c1385229c784ef':
friendly_name: Sensor presencia uno estudio
'0x54ef441000034b15':
friendly_name: sensor movimiento tira luz cocina
'0x54ef441000a133df':
friendly_name: sensor movimiento aqara
'0xa4c13833e15de735':
friendly_name: sensor presencia dos cocina
'0x90fd9ffffef06f1d':
friendly_name: '0x90fd9ffffef06f1d'
'0x0017880106010d1f':
friendly_name: '0x0017880106010d1f'
'0x001788010d3ecfcf':
friendly_name: '0x001788010d3ecfcf'
'0xd0cf5efffe234e5d':
friendly_name: '0xd0cf5efffe234e5d'
'0x001788010c2d26a9':
friendly_name: '0x001788010c2d26a9'
'0xf4b3b1fffed6489e':
friendly_name: '0xf4b3b1fffed6489e'
'0xa4c1388de940dfc7':
friendly_name: sensor presencia tres salón
'0x881a14fffe8a19e9':
friendly_name: '0x881a14fffe8a19e9'
'0xb43522fffe7c0d5e':
friendly_name: '0xb43522fffe7c0d5e'
'0x54ef441000c83145':
friendly_name: '0x54ef441000c83145'
'0x00124b002512d166':
friendly_name: '0x00124b002512d166'
'0xa4c1383356045664':
(((others devices))
availability:
enabled: true
version: 4
The log:
[15:51:53] INFO: Preparing to start...
[15:51:54] INFO: Socat not enabled
[15:51:54] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-13 15:51:55] info: z2m: Logging to console, file (filename: log.log)
[2025-01-13 15:51:55] info: z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-13 15:51:55] info: z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-13 15:51:55] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_968c33b79f45ed11bf3ac58f0a86e0b4-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-01-13 15:51:55] info: zh:zstack:znp: Serialport opened
[2025-01-13 15:51:56] info: z2m: zigbee-herdsman started (resumed)
[2025-01-13 15:51:56] info: z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210708,"transportrev":2},"type":"zStack3x0"}'
[2025-01-13 15:51:56] info: z2m: sensor presencia tres salón (0xa4c13850a7623d40): ZG-205Z/A - Tuya 5.8Ghz/24Ghz Human presence sensor (Router)
[2025-01-13 15:51:56] info: z2m: bombilla dormitorio (0x001788010c2dd333): 929002469202 - Philips Hue white A60 bulb E27 1050lm with Bluetooth (Router)
[2025-01-13 15:51:56] info: z2m: sensor movimiento tira luz cocina (0xa4c1381c7b95961e): ZMS-102 - Tuya Motion sensor (EndDevice)
[2025-01-13 15:51:56] info: z2m: Sensor de luminosidad (0x54ef441000034b15): GZCGQ01LM - Xiaomi Mi light sensor (EndDevice)
[2025-01-13 15:51:56] info: z2m: sensor movimiento aqara (0x54ef441000a133df): RTCGQ14LM - Aqara Motion sensor P1 (EndDevice)
[2025-01-13 15:51:56] info: z2m: 0xf4b3b1fffed6489e (0xf4b3b1fffed6489e): SIN-4-RS-20_LEX - ADEO Roller shutter controller (Leroy Merlin version) (Router)
[2025-01-13 15:51:56] info: z2m: Sensor movimiento armario uno vestidor (0xa4c1388de940dfc7): ZG-204ZL - Tuya Luminance motion sensor (EndDevice)
[2025-01-13 15:51:56] info: z2m: 0xd0cf5efffe234e5d (0xd0cf5efffe234e5d): Not supported (Unknown)
[2025-01-13 15:51:56] info: z2m: Sensor raro humedad (0xa4c1383356045664): SNZB-03 - eWeLink Motion sensor (EndDevice)
[2025-01-13 15:51:56] info: z2m: sensor presencia dos cocina (0xa4c13833e15de735): ZG-205Z/A - Tuya 5.8Ghz/24Ghz Human presence sensor (Router)
[2025-01-13 15:51:56] info: z2m: Currently 10 devices are joined.
[2025-01-13 15:51:56] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2025-01-13 15:51:56] info: z2m: Connected to MQTT server
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor presencia tres salón/availability', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bombilla dormitorio/availability', payload '{"state":"offline"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor movimiento tira luz cocina/availability', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Sensor de luminosidad/availability', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor movimiento aqara/availability', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xf4b3b1fffed6489e/availability', payload '{"state":"offline"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Sensor movimiento armario uno vestidor/availability', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xd0cf5efffe234e5d/availability', payload '{"state":"offline"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Sensor raro humedad/availability', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor presencia dos cocina/availability', payload '{"state":"online"}'
[2025-01-13 15:51:56] info: z2m: Started frontend on port 8099
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor presencia tres salón', payload '{"fading_time":0,"illuminance":1305,"indicator":"ON","large_motion_detection_distance":10,"large_motion_detection_sensitivity":7,"linkquality":78,"medium_motion_detection_distance":6,"medium_motion_detection_sensitivity":6,"motion_state":"none","presence":false,"small_detection_distance":6,"small_detection_sensitivity":9}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bombilla dormitorio', payload '{"brightness":254,"effect":null,"linkquality":96,"power_on_behavior":null,"state":"ON","update":{"installed_version":16785162,"latest_version":16786690,"state":"available"},"update_available":true}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor movimiento tira luz cocina', payload '{"battery":60,"battery_low":false,"keep_time":60,"linkquality":39,"occupancy":false,"sensitivity":"high","tamper":false,"voltage":2800}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Sensor de luminosidad', payload '{"battery":0,"illuminance":56,"linkquality":81,"voltage":0}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor movimiento aqara', payload '{"battery":67,"detection_interval":2,"device_temperature":24,"illuminance":57,"linkquality":51,"motion_sensitivity":"high","occupancy":false,"power_outage_count":0,"trigger_indicator":false,"update":{"installed_version":-1,"latest_version":-1,"state":null},"voltage":2951}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xf4b3b1fffed6489e', payload '{"linkquality":18,"position":100,"state":"OPEN","tilt":0}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Sensor movimiento armario uno vestidor', payload '{"battery":100,"illuminance":0,"illuminance_interval":60,"keep_time":"10","linkquality":81,"occupancy":false,"sensitivity":"high"}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Sensor raro humedad', payload '{"battery":44,"battery_low":false,"linkquality":30,"occupancy":false,"tamper":false,"voltage":2500,"water_leak":false}'
[2025-01-13 15:51:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor presencia dos cocina', payload '{"fading_time":0,"illuminance":1015,"indicator":"ON","large_motion_detection_distance":6,"large_motion_detection_sensitivity":7,"linkquality":45,"medium_motion_detection_distance":5.56,"medium_motion_detection_sensitivity":7,"motion_state":"none","presence":false,"small_detection_distance":6,"small_detection_sensitivity":7}'
[2025-01-13 15:51:56] info: z2m: Zigbee2MQTT started!
[2025-01-13 15:52:00] warning: z2m: Failed to ping '0xf4b3b1fffed6489e' (attempt 1/1, ZCL command 0xf4b3b1fffed6489e/1 genBasic.read(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'No network route' (205)))
[2025-01-13 15:52:01] info: z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b002a9915ae/connection_state/config', payload '{"device":{"hw_version":"zStack3x0 20210708","identifiers":["zigbee2mqtt_bridge_0x00124b002a9915ae"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"2.0.0"},"device_class":"connectivity","entity_category":"diagnostic","name":"Connection state","object_id":"zigbee2mqtt_bridge_connection_state","origin":{"name":"Zigbee2MQTT","sw":"2.0.0","url":"https://www.zigbee2mqtt.io"},"payload_off":"offline","payload_on":"online","state_topic":"zigbee2mqtt/bridge/state","unique_id":"bridge_0x00124b002a9915ae_connection_state_zigbee2mqtt","value_template":"{{ value_json.state }}"}'
[2025-01-13 15:53:08] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor presencia tres salón', payload '{"fading_time":0,"illuminance":1305,"indicator":"ON","large_motion_detection_distance":10,"large_motion_detection_sensitivity":7,"linkquality":81,"medium_motion_detection_distance":6,"medium_motion_detection_sensitivity":6,"motion_state":"none","presence":false,"small_detection_distance":6,"small_detection_sensitivity":9}'
[2025-01-13 15:53:08] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/sensor presencia tres salón', payload '{"fading_time":0,"illuminance":1305,"indicator":"ON","large_motion_detection_distance":10,"large_motion_detection_sensitivity":7,"linkquality":81,"medium_motion_detection_distance":6,"medium_motion_detection_sensitivity":6,"motion_state":"none","presence":false,"small_detection_distance":6,"small_detection_sensitivity":9}'