Page 1 sur 2

[Fermé] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 04 janv. 2023, 02:18
par getget
Bonjour, et merci pour l'incroyable travail fourni :)

Je passe d'une gateway Xiaomi à une clé Sonoff, sans souci majeur pour aucun de mes devices.

J'ai acheté récemment ces équipements (détecteurs de présence et luminoisité): https://fr.aliexpress.com/item/10050043 ... pt=glo2fra

Réference sur la boite Model ZG-204Z

Malheureusement, ils sont reconnus comme des têtes de robinets thermostatiques TS0601.

J'ai testé en stable6 et en dev, même résultat.
Je tourne avec une clé Sonoff sur une VM debian dans un nas Synology DS218+.

Domoticz v2022.2
Plugin version 6.4.119

Log domoticz :

Code : Tout sélectionner

2023-01-04 02:12:48.314 ZigbeeSonoff: --> New device: 8395
2023-01-04 02:12:48.314 ZigbeeSonoff: --> inDB , removed 8395 from List
2023-01-04 02:12:48.314 ZigbeeSonoff: ------> New Cluster: {'ClusterId': '0000', 'ClusterDesc': 'Basic'}
2023-01-04 02:12:48.314 ZigbeeSonoff: ------> New Cluster: {'ClusterId': '0004', 'ClusterDesc': 'Groups'}
2023-01-04 02:12:48.314 ZigbeeSonoff: ------> New Cluster: {'ClusterId': 'ef00', 'ClusterDesc': 'Unknown'}
2023-01-04 02:12:48.314 ZigbeeSonoff: ------> New Cluster: {'ClusterId': '000a', 'ClusterDesc': 'Time'}
2023-01-04 02:12:48.314 ZigbeeSonoff: ------> New Cluster: {'ClusterId': '0019', 'ClusterDesc': 'Over-the-Air Upgrade'}
2023-01-04 02:12:48.314 ZigbeeSonoff: ----> New Ep: {'Ep': '01', 'Clusters': [{'ClusterId': '0000', 'ClusterDesc': 'Basic'}, {'ClusterId': '0004', 'ClusterDesc': 'Groups'}, {'ClusterId': 'ef00', 'ClusterDesc': 'Unknown'}, {'ClusterId': '000a', 'ClusterDesc': 'Time'}, {'ClusterId': '0019', 'ClusterDesc': 'Over-the-Air Upgrade'}]}
2023-01-04 02:12:48.314 ZigbeeSonoff: --> New Device: {'NwkId': '8395', 'ProvisionStatus': 'inDB', 'ProvisionStatusDesc': 'inDB', 'IEEE': 'a4c138dc616590e6', 'ProfileId': '0104', 'ProfileIdDesc': 'ZHA', 'ZDeviceID': '0402', 'ZDeviceIDDesc': 'IAS Zone', 'Model': 'TS0601', 'PluginCertified': 'yes', 'Ep': [{'Ep': '01', 'Clusters': [{'ClusterId': '0000', 'ClusterDesc': 'Basic'}, {'ClusterId': '0004', 'ClusterDesc': 'Groups'}, {'ClusterId': 'ef00', 'ClusterDesc': 'Unknown'}, {'ClusterId': '000a', 'ClusterDesc': 'Time'}, {'ClusterId': '0019', 'ClusterDesc': 'Over-the-Air Upgrade'}]}]}
2023-01-04 02:12:48.110 Status: ZigbeeSonoff: [0] NEW OBJECT: 8395 Model Name: TS0601
2023-01-04 02:12:48.112 Status: ZigbeeSonoff: [0] NEW OBJECT: 8395 Manufacturer Name: _TZE200_bh3n6gk8
2023-01-04 02:12:48.113 Status: ZigbeeSonoff: [None] NEW OBJECT: 8395 Request Node Descriptor
2023-01-04 02:12:48.276 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Simple Descriptor Response EP: 0x01 LQI: 0
2023-01-04 02:12:48.277 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 ProfileID 0104
2023-01-04 02:12:48.277 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 ZDeviceID 0402
2023-01-04 02:12:48.278 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Application Version 0001
2023-01-04 02:12:48.278 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Cluster IN Count: 03
2023-01-04 02:12:48.279 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Cluster In 1: 0001 (Power Configuration)
2023-01-04 02:12:48.279 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Cluster In 2: 0500 (IAS Zone)
2023-01-04 02:12:48.279 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Cluster In 3: 0000 (Basic)
2023-01-04 02:12:48.280 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Cluster OUT Count: 02
2023-01-04 02:12:48.280 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Cluster Out 1: 0019 (Over-the-Air Upgrade)
2023-01-04 02:12:48.281 Status: ZigbeeSonoff: [-] NEW OBJECT: 8395 Cluster Out 2: 000a (Time)
Log du plugin :

Code : Tout sélectionner

2023-01-04 02:12:38,294 INFO    : [MainThread 2770295] Request Accepting new Hardware for 240 seconds
2023-01-04 02:12:38,326 INFO    : [ZigpyCom_13 2770367] PERMIT-TO-JOIN: {'cmd': 'PERMIT-TO-JOIN', 'datas': {'Duration': 240, 'targetRouter': 'FFFC'}, 'NwkId': None, 'TimeStamp': 1672794758.292947, 'ACKIsDisable': False, 'Sqn': None}
2023-01-04 02:12:38,328 INFO    : [ZigpyCom_13 2770367] PERMIT-TO-JOIN: duration: 240 for Radio: znp for node: None
2023-01-04 02:12:38,335 INFO    : [ZigpyCom_13 2770367] Calling self.app.permit(time_s=240, node=None )
2023-01-04 02:12:38,341 INFO    : [ZigpyForwarder_13 2770368] Accepting new Hardware: Enable (On)
2023-01-04 02:12:38,348 INFO    : [ZigpyCom_13 2770367] returning from the self.app.permit(time_s=240, node=None )
2023-01-04 02:12:47,416 INFO    : [ZigpyForwarder_13 2770368] --> Adding device 8395 in self.DevicesInPairingMode
2023-01-04 02:12:47,416 INFO    : [ZigpyForwarder_13 2770368] --> ['8395']
2023-01-04 02:12:47,419 INFO    : [ZigpyForwarder_13 2770368] [None] NEW OBJECT: 8395 None
2023-01-04 02:12:47,703 INFO    : [ZigpyForwarder_13 2770368] [-] NEW OBJECT: 8395 Active Endpoint Response Ep: 01 LQI: 0
2023-01-04 02:12:47,704 INFO    : [ZigpyForwarder_13 2770368] --> Not full scope
2023-01-04 02:12:47,705 INFO    : [ZigpyForwarder_13 2770368] --> Build list of Attributes
2023-01-04 02:12:47,705 INFO    : [ZigpyForwarder_13 2770368] --> ListOfEp with 0x0000: []
2023-01-04 02:12:47,705 INFO    : [ZigpyForwarder_13 2770368] --> Build list Eps for Cluster Basic ['01']
2023-01-04 02:12:47,706 INFO    : [ZigpyForwarder_13 2770368] Request Basic  Manufacturer via Read Attribute request: 0004
2023-01-04 02:12:47,706 INFO    : [ZigpyForwarder_13 2770368] Request Basic  Model Name via Read Attribute request: 0005
2023-01-04 02:12:47,707 INFO    : [ZigpyForwarder_13 2770368] EP: {'01': {}}
2023-01-04 02:12:47,708 INFO    : [ZigpyForwarder_13 2770368] [-] NEW OBJECT: 8395 Request Simple Descriptor for Ep: 01
2023-01-04 02:12:48,047 INFO    : [ZigpyForwarder_13 2770368] ReadCluster - 0000 / 0005 - Updated Model: >TS0601<
2023-01-04 02:12:48,102 INFO    : [MainThread 2770295] [0] NEW OBJECT: 8395 Model Name: TS0601
2023-01-04 02:12:48,110 INFO    : [MainThread 2770295] [0] NEW OBJECT: 8395 Manufacturer Name: _TZE200_bh3n6gk8
2023-01-04 02:12:48,113 INFO    : [MainThread 2770295] [None] NEW OBJECT: 8395 Request Node Descriptor
2023-01-04 02:12:48,276 INFO    : [ZigpyForwarder_13 2770368] [-] NEW OBJECT: 8395 Simple Descriptor Response EP: 0x01 LQI: 0
2023-01-04 02:12:48,277 INFO    : [ZigpyForwarder_13 2770368] [-]    NEW OBJECT: 8395 ProfileID 0104
2023-01-04 02:12:48,277 INFO    : [ZigpyForwarder_13 2770368] [-]    NEW OBJECT: 8395 ZDeviceID 0402
2023-01-04 02:12:48,278 INFO    : [ZigpyForwarder_13 2770368] [-]    NEW OBJECT: 8395 Application Version 0001
2023-01-04 02:12:48,278 INFO    : [ZigpyForwarder_13 2770368] [-]    NEW OBJECT: 8395 Cluster IN Count: 03
2023-01-04 02:12:48,278 INFO    : [ZigpyForwarder_13 2770368] [-]       NEW OBJECT: 8395 Cluster In 1: 0001 (Power Configuration)
2023-01-04 02:12:48,279 INFO    : [ZigpyForwarder_13 2770368] [-]       NEW OBJECT: 8395 Cluster In 2: 0500 (IAS Zone)
2023-01-04 02:12:48,279 INFO    : [ZigpyForwarder_13 2770368] [-]       NEW OBJECT: 8395 Cluster In 3: 0000 (Basic)
2023-01-04 02:12:48,279 INFO    : [ZigpyForwarder_13 2770368] [-]    NEW OBJECT: 8395 Cluster OUT Count: 02
2023-01-04 02:12:48,280 INFO    : [ZigpyForwarder_13 2770368] [-]       NEW OBJECT: 8395 Cluster Out 1: 0019 (Over-the-Air Upgrade)
2023-01-04 02:12:48,281 INFO    : [ZigpyForwarder_13 2770368] [-]       NEW OBJECT: 8395 Cluster Out 2: 000a (Time)
2023-01-04 02:12:55,656 INFO    : [ZigpyForwarder_13 2770368] ReadCluster - 0000 / 0005 - Updated Model: >TS0601<
2023-01-04 02:12:55,723 INFO    : [ZigpyForwarder_13 2770368] ReadCluster - 0000 / 0005 - Updated Model: >TS0601<
2023-01-04 02:12:55,749 INFO    : [ZigpyForwarder_13 2770368] ReadCluster - 0000 / 0005 - Updated Model: >TS0601<
2023-01-04 02:12:57,557 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00620402000400000064 Payload: 09b30200620402000400000064 not processed !!!
2023-01-04 02:12:59,268 INFO    : [ZigpyForwarder_13 2770368] ReadCluster - 0000 / 0005 - Updated Model: >TS0601<
2023-01-04 02:13:02,103 INFO    : [MainThread 2770295] Request Disabling Accepting new Hardware
2023-01-04 02:13:02,178 INFO    : [ZigpyCom_13 2770367] PERMIT-TO-JOIN: {'cmd': 'PERMIT-TO-JOIN', 'datas': {'Duration': 0, 'targetRouter': 'FFFC'}, 'NwkId': None, 'TimeStamp': 1672794782.101533, 'ACKIsDisable': False, 'Sqn': None}
2023-01-04 02:13:02,179 INFO    : [ZigpyCom_13 2770367] PERMIT-TO-JOIN: duration: 0 for Radio: znp for node: None
2023-01-04 02:13:02,185 INFO    : [ZigpyCom_13 2770367] Calling self.app.permit(time_s=0, node=None )
2023-01-04 02:13:02,194 INFO    : [ZigpyForwarder_13 2770368] Accepting new Hardware: Disable (Off)
2023-01-04 02:13:02,216 INFO    : [ZigpyCom_13 2770367] returning from the self.app.permit(time_s=0, node=None )
2023-01-04 02:13:04,191 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00620402000400000064 Payload: 09b40200620402000400000064 not processed !!!
2023-01-04 02:13:04,416 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00630104000100 Payload: 09b50200630104000100 not processed !!!
2023-01-04 02:13:04,643 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00640402000400000064 Payload: 09b60200640402000400000064 not processed !!!
2023-01-04 02:13:04,971 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00650904000102 Payload: 09b70200650904000102 not processed !!!
2023-01-04 02:13:05,197 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00660a04000100 Payload: 09b80200660a04000100 not processed !!!
2023-01-04 02:13:07,609 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00670104000100 Payload: 09b90200670104000100 not processed !!!
2023-01-04 02:13:07,839 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00680402000400000064 Payload: 09ba0200680402000400000064 not processed !!!
2023-01-04 02:13:08,059 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 00690904000102 Payload: 09bb0200690904000102 not processed !!!
2023-01-04 02:13:08,288 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 006a0a04000100 Payload: 09bc02006a0a04000100 not processed !!!
2023-01-04 02:13:14,590 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 006b0104000101 Payload: 09bd02006b0104000101 not processed !!!
2023-01-04 02:13:17,631 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 006c0402000400000064 Payload: 09be02006c0402000400000064 not processed !!!
2023-01-04 02:13:27,640 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 006d0402000400000064 Payload: 09bf02006d0402000400000064 not processed !!!
2023-01-04 02:13:37,637 INFO    : [ZigpyForwarder_13 2770368] inRawAps 8395/01 Cluster ef00 Manuf: 1141/_TZE200_bh3n6gk8 Command: 02 Data: 006e0402000400000064 Payload: 09c002006e0402000400000064 not processed !!!

Qu'est il possible de faire pour les faire fonctionner correctement ? (après appairage, ils ne réagissent même plus ?)

Merci d'avance :)

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 04 janv. 2023, 09:10
par pipiche
peux-tu basculer sur la branche dev

Code : Tout sélectionner

git checkout dev
git pull
Supprimer le device dejà appairé ( tu supprimes tous les widgets de domoticz)

relancer le plugin pour prise en compte de la branche dev

vérifier que le device n'est plus dans le plugin

puis refaire l'appairage

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 04 janv. 2023, 09:26
par getget
Bonjour, j'ai déjà testé avec la branche dev (hier, 6.4.119), je reteste ?

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 04 janv. 2023, 10:00
par pipiche
oui, re-teste

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 04 janv. 2023, 21:59
par getget
Bonjour, c'est testé, merci pour le service rapide :)

Ils se sont appairés correctement mais ensuite ils ne donnent pas signe de vie et j'ai ces erreurs en log :

Code : Tout sélectionner

2023-01-04 21:55:15,853 INFO    : [ZigpyForwarder_13 3117939] tuya_motion_response - 8395 01 1 4 01
2023-01-04 21:55:15,854 ERROR   : [ZigpyForwarder_13] forwarder_thread - Error while receiving a Coordinator command
2023-01-04 21:55:15,857 ERROR   : [ZigpyForwarder_13] Issue in request 018002002eff000104ef00010102839502000009ff02009401040001015703, dumping stack: Traceback (most recent call last):
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 41, in forwarder_thread
    forward_message(self, message)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/instrumentation.py", line 30, in f_out
    result = f_in(self, message)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 57, in forward_message
    self.F_out(message)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 810, in processFrame
    ZigateRead(self, Devices, Data)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 184, in ZigateRead
    _decoding(self, Devices, MsgData, MsgLQI)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 904, in Decode8002
    inRawAps(
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/inRawAps.py", line 246, in inRawAps
    func(self, Devices, srcnwkid, srcep, cluster, dstnwkid, dstep, payload)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 407, in tuyaReadRawAPS
    tuya_response(self, Devices, _ModelName, NwkId, srcEp, ClusterID, dstNWKID, dstEP, dp, datatype, data)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 510, in tuya_response
    tuya_motion_response(self, Devices, _ModelName, NwkId, srcEp, ClusterID, dstNWKID, dstEP, dp, datatype, data)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 1473, in tuya_motion_response
    MajDomoDevice(self, Devices, NwkId, srcEp, "0406", (int(data, 16) ))
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/domoMaj.py", line 814, in MajDomoDevice
    nValue = int(value, 16)
TypeError: int() can't convert non-string with explicit base

2023-01-04 21:56:38,210 INFO    : [ZigpyForwarder_13 3117939] tuya_motion_response - 8395 01 1 4 00
2023-01-04 21:56:38,211 ERROR   : [ZigpyForwarder_13] forwarder_thread - Error while receiving a Coordinator command
2023-01-04 21:56:38,225 ERROR   : [ZigpyForwarder_13] Issue in request 018002002eff000104ef000101028395020000090002009501040001004803, dumping stack: Traceback (most recent call last):
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 41, in forwarder_thread
    forward_message(self, message)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/instrumentation.py", line 30, in f_out
    result = f_in(self, message)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 57, in forward_message
    self.F_out(message)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 810, in processFrame
    ZigateRead(self, Devices, Data)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 184, in ZigateRead
    _decoding(self, Devices, MsgData, MsgLQI)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 904, in Decode8002
    inRawAps(
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/inRawAps.py", line 246, in inRawAps
    func(self, Devices, srcnwkid, srcep, cluster, dstnwkid, dstep, payload)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 407, in tuyaReadRawAPS
    tuya_response(self, Devices, _ModelName, NwkId, srcEp, ClusterID, dstNWKID, dstEP, dp, datatype, data)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 510, in tuya_response
    tuya_motion_response(self, Devices, _ModelName, NwkId, srcEp, ClusterID, dstNWKID, dstEP, dp, datatype, data)
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/tuya.py", line 1473, in tuya_motion_response
    MajDomoDevice(self, Devices, NwkId, srcEp, "0406", (int(data, 16) ))
  File "/home/getget/domoticz/plugins/Domoticz-Zigbee/Modules/domoMaj.py", line 814, in MajDomoDevice
    nValue = int(value, 16)
TypeError: int() can't convert non-string with explicit base
(Si il faut un log plus long ou autre chose ne pas hésiter :) )

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 04 janv. 2023, 22:04
par pipiche
peux-tu récupérer la derniere version

Code : Tout sélectionner

git pull
git checkout dev
git pull

et tu relances

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 04 janv. 2023, 23:53
par getget
L'appairage fonctionne, le switch fonctionne mais pas le lux sensor

Je vois passer des

2023-01-04 23:51:14,409 INFO : [ZigpyForwarder_13 3165970] tuya_motion_response - f593 01 1 4 00
2023-01-04 23:51:14,646 INFO : [ZigpyForwarder_13 3165970] tuya_motion_response - f593 01 1 4 01

Dans le log pendant l'appariage :

Code : Tout sélectionner

2023-01-04 23:41:43,634 INFO    : [ZigpyCom_13 3165969] PERMIT-TO-JOIN: duration: 240 for Radio: znp for node: None
2023-01-04 23:41:43,635 INFO    : [ZigpyCom_13 3165969] Calling self.app.permit(time_s=240, node=None )
2023-01-04 23:41:43,650 INFO    : [ZigpyForwarder_13 3165970] Accepting new Hardware: Enable (On)
2023-01-04 23:41:43,656 INFO    : [ZigpyCom_13 3165969] returning from the self.app.permit(time_s=240, node=None )
2023-01-04 23:41:53,773 INFO    : [ZigpyForwarder_13 3165970] --> Adding device f593 in self.DevicesInPairingMode
2023-01-04 23:41:53,774 INFO    : [ZigpyForwarder_13 3165970] --> ['f593']
2023-01-04 23:41:53,775 INFO    : [ZigpyForwarder_13 3165970] [None] NEW OBJECT: f593 None
2023-01-04 23:41:54,090 INFO    : [ZigpyForwarder_13 3165970] [-] NEW OBJECT: f593 Active Endpoint Response Ep: 01 LQI: 0
2023-01-04 23:41:54,091 INFO    : [ZigpyForwarder_13 3165970] --> Not full scope
2023-01-04 23:41:54,092 INFO    : [ZigpyForwarder_13 3165970] --> Build list of Attributes
2023-01-04 23:41:54,092 INFO    : [ZigpyForwarder_13 3165970] --> ListOfEp with 0x0000: []
2023-01-04 23:41:54,093 INFO    : [ZigpyForwarder_13 3165970] --> Build list Eps for Cluster Basic ['01']
2023-01-04 23:41:54,094 INFO    : [ZigpyForwarder_13 3165970] Request Basic  Manufacturer via Read Attribute request: 0004
2023-01-04 23:41:54,094 INFO    : [ZigpyForwarder_13 3165970] Request Basic  Model Name via Read Attribute request: 0005
2023-01-04 23:41:54,095 INFO    : [ZigpyForwarder_13 3165970] EP: {'01': {}}
2023-01-04 23:41:54,096 INFO    : [ZigpyForwarder_13 3165970] [-] NEW OBJECT: f593 Request Simple Descriptor for Ep: 01
2023-01-04 23:41:54,777 INFO    : [ZigpyForwarder_13 3165970] ReadCluster - 0000 / 0005 - Updated Model: >TS0601-motion<
2023-01-04 23:41:55,098 INFO    : [MainThread 3165937] [0] NEW OBJECT: f593 Model Name: TS0601-motion
2023-01-04 23:41:55,103 INFO    : [MainThread 3165937] [0] NEW OBJECT: f593 Manufacturer Name: _TZE200_bh3n6gk8
2023-01-04 23:41:55,104 INFO    : [MainThread 3165937] [None] NEW OBJECT: f593 Request Node Descriptor
2023-01-04 23:41:55,284 INFO    : [ZigpyForwarder_13 3165970] [-] NEW OBJECT: f593 Simple Descriptor Response EP: 0x01 LQI: 0
2023-01-04 23:41:55,284 INFO    : [ZigpyForwarder_13 3165970] [-]    NEW OBJECT: f593 ProfileID 0104
2023-01-04 23:41:55,285 INFO    : [ZigpyForwarder_13 3165970] [-]    NEW OBJECT: f593 ZDeviceID 0402
2023-01-04 23:41:55,285 INFO    : [ZigpyForwarder_13 3165970] [-]    NEW OBJECT: f593 Application Version 0001
2023-01-04 23:41:55,286 INFO    : [ZigpyForwarder_13 3165970] [-]    NEW OBJECT: f593 Cluster IN Count: 03
2023-01-04 23:41:55,286 INFO    : [ZigpyForwarder_13 3165970] [-]       NEW OBJECT: f593 Cluster In 1: 0001 (Power Configuration)
2023-01-04 23:41:55,287 INFO    : [ZigpyForwarder_13 3165970] [-]       NEW OBJECT: f593 Cluster In 2: 0500 (IAS Zone)
2023-01-04 23:41:55,287 INFO    : [ZigpyForwarder_13 3165970] [-]       NEW OBJECT: f593 Cluster In 3: 0000 (Basic)
2023-01-04 23:41:55,288 INFO    : [ZigpyForwarder_13 3165970] [-]    NEW OBJECT: f593 Cluster OUT Count: 02
2023-01-04 23:41:55,288 INFO    : [ZigpyForwarder_13 3165970] [-]       NEW OBJECT: f593 Cluster Out 1: 0019 (Over-the-Air Upgrade)
2023-01-04 23:41:55,289 INFO    : [ZigpyForwarder_13 3165970] [-]       NEW OBJECT: f593 Cluster Out 2: 000a (Time)
2023-01-04 23:41:55,387 INFO    : [ZigpyForwarder_13 3165970] tuya_motion_response - f593 01 4 2 00000064
2023-01-04 23:41:55,777 INFO    : [ZigpyForwarder_13 3165970] ReadCluster - 0000 / 0005 - Updated Model: >TS0601-motion<
2023-01-04 23:41:58,648 INFO    : [ZigpyForwarder_13 3165970] ReadCluster - 0000 / 0005 - Updated Model: >TS0601-motion<
2023-01-04 23:42:02,223 INFO    : [ZigpyForwarder_13 3165970] ReadCluster - 0000 / 0005 - Updated Model: >TS0601-motion<
2023-01-04 23:42:02,228 INFO    : [ZigpyForwarder_13 3165970] tuya_motion_response - f593 01 9 4 02
2023-01-04 23:42:05,338 INFO    : [ZigpyForwarder_13 3165970] ReadCluster - 0000 / 0005 - Updated Model: >TS0601-motion<
Et la lumière ne s'allume pas dessus à la détection (celui non appairé), mais à la limite ça je m'en fiche :)

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 05 janv. 2023, 08:44
par pipiche
Peux-tu me donner Le fichier d'export de la liste des objets non-optimisés ?
Car peut-etre ne fait-il pas mesure de Luminosité ? en tout les cas sur le descriptif ca ne semble pas etre le cas

https://easydomoticz.com/forum/viewtopi ... 403#p91403

Ensuite il y a la sensibilité qui peut etre reglé pour l'instant j'ai rien fait, je voulais attendre déjà d'avoir un truc fonctionnel

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 05 janv. 2023, 09:12
par getget
J'ai acheté des "with lux" donc normalement il doit le faire (d'ailleurs le capteur remonte bien dans domoticz mais à 0lux)

Pour l'instant il apparait comme optimisé (vert).

Code : Tout sélectionner

{"Version":"3","ZDeviceName":"","Status":"inDB","SQN":"f5","Heartbeat":"6829","RIA":"0","LQI":40,"Battery":100,"Model":"TS0601-motion","ForceAckCommands":[],"MacCapa":"80","IEEE":"a4c138dc616590e6","Type":"Motion/Lux","ProfileID":"0104","ZDeviceID":"0402","App Version":"67","Attributes List":{},"DeviceType":"RFD","HW Version":"","Last Cmds":[],"LogicalType":"End Device","Manufacturer":"1141","Manufacturer Name":"_TZE200_bh3n6gk8","NbEp":"1","PowerSource":"Battery","ReadAttributes":{"Ep":{"01":{"0000":{"TimeStamp":1672872125,"iSQN":{"0004":"01","0005":"01","0000":"01","0001":"01","0007":"01","ffe2":"02","ffe4":"02","ffdf":"02","fffe":"02"},"Attributes":{"0004":"00","0005":"00","0000":"00","0001":"00","0007":"00","ffe2":"00","ffe4":"86","ffdf":"86","fffe":"00"},"ZigateRequest":{}}}}},"ReceiveOnIdle":"","Stack Version":"","Stamp":{"time":1672900719.4864867,"Time":"2023-01-05 07:38:39","MsgType":"8002","LastSeen":1672900719},"ZCL Version":"3","Health":"Live","Capability":["Reduced-Function Device","Standard security","NwkAddr should be allocated"],"ZDPSQN":"04","Epv2":{"01":{"ClusterIn":{"0001":{},"0500":{},"0000":{}},"ClusterOut":{"0019":{},"000a":{}},"ProfileID":"0104","ZDeviceID":"0402"}},"ZCLSQN":"02","RollingLQI":[51,54,54,58,58,58,47,47,47,47,40],"Param":{},"ConfigSource":"DeviceConf","Ep":{"01":{"0000":{"0004":"_TZE200_bh3n6gk8","0005":"TS0601","0000":"3","0001":"67","0007":"3","ffe2":"34","fffe":"0"},"0004":{},"0005":{},"0019":{},"Type":"Motion/Lux","ClusterType":{"383":"Motion","384":"Lux"},"0001":{"0000":100},"0406":{"0000":"00"}}},"WriteAttributes":{"Ep":{"01":{"0000":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0004":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0005":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0019":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0001":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0406":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}}}}},"PairingInProgress":false,"PairingTime":1672872115.0997906,"BindingTable":{"SQN":0,"Status":"Success","TimeStamp":1672872125.3134062,"BindingTableSize":0,"Devices":[]},"CheckParam":false,"CertifiedDevice":true,"ZDeviceVersion":"0001","ZCL-IN-SQN":{"ef00":"f5","000a":"f1"},"Tuya":{"Battery":"00000064","BatteryStatus":"00000064","Sensitivity":"02","Occupancy":"00"},"_rawNodeDescriptor":"1141004200422a000080424002","Max Buffer Size":"42","Max Rx":"0042","Max Tx":"0042","macapa":"80","bitfield":"4002","server_mask":"2a00","descriptor_capability":"00","SQN_000a":"f1"}

Re: [stable6 / dev - Sonoff] Module TUYA PIR ZG-204Z identifié comme TS0601

Publié : 05 janv. 2023, 19:41
par pipiche
a ce stade, il n'y aucune information envoyée par l'objet au sujet de la luminosité.
Peux-tu récupérer la dernière dev et refaire un appairage from scratch.

Si toujours pas de luminosité/lux, je ne pourrais pas faire grand chose a ce stade (je viens d'en commander un, je pourrais vérifier avec ma passerelle Tuya)

[EDIT] ce qui me perturbe c'est que la detection semble etre remontée immédiatement

[EDIT] utilises la 6.4.144