Bonjour,
J’ai un interrupteur Tuya avec 4 boutons. Ça marchait très bien jusqu’à la dernière mise à jour.
Lien vers le site officiel https://expo.tuya.com/product/686076
Image
Voici les informations brutes :
{
"ieee": "5c:02:72:ff:fe:a1:69:e7",
"nwk": 1495,
"status": 2,
"lqi": "255",
"rssi": "-48",
"last_seen": "None",
"node_descriptor": "02:40:80:02:10:52:52:00:00:2c:52:00:00",
"endpoints": [
{
"id": 1,
"status": 1,
"device_type": 6,
"profile_id": 260,
"manufacturer": "_TZ3000_vp6clf9d",
"model": "TS0044",
"output_clusters": [
{
"id": 25,
"name": "Ota",
"attributes": []
}
],
"input_clusters": [
{
"id": 0,
"name": "Basic",
"attributes": [
{
"id": 4,
"name": "manufacturer",
"value": "_TZ3000_vp6clf9d"
},
{
"id": 5,
"name": "model",
"value": "TS0044"
}
]
},
{
"id": 1,
"name": "Power Configuration",
"attributes": []
},
{
"id": 6,
"name": "TS004X_cluster",
"attributes": []
},
{
"id": 10,
"name": "Time",
"attributes": []
}
]
},
{
"id": 2,
"status": 1,
"device_type": 6,
"profile_id": 260,
"manufacturer": null,
"model": null,
"output_clusters": [],
"input_clusters": [
{
"id": 1,
"name": "Power Configuration",
"attributes": []
},
{
"id": 6,
"name": "TS004X_cluster",
"attributes": []
}
]
},
{
"id": 3,
"status": 1,
"device_type": 6,
"profile_id": 260,
"manufacturer": null,
"model": null,
"output_clusters": [],
"input_clusters": [
{
"id": 1,
"name": "Power Configuration",
"attributes": []
},
{
"id": 6,
"name": "TS004X_cluster",
"attributes": []
}
]
},
{
"id": 4,
"status": 1,
"device_type": 6,
"profile_id": 260,
"manufacturer": null,
"model": null,
"output_clusters": [],
"input_clusters": [
{
"id": 1,
"name": "Power Configuration",
"attributes": []
},
{
"id": 6,
"name": "TS004X_cluster",
"attributes": []
}
]
}
],
"signature": {
"manufacturer": "_TZ3000_vp6clf9d",
"model": "TS0044",
"node_desc": {
"byte1": 2,
"byte2": 64,
"mac_capability_flags": 128,
"manufacturer_code": 4098,
"maximum_buffer_size": 82,
"maximum_incoming_transfer_size": 82,
"server_mask": 11264,
"maximum_outgoing_transfer_size": 82,
"descriptor_capability_field": 0
},
"endpoints": {
"1": {
"profile_id": 260,
"device_type": 6,
"input_clusters": [
0,
1,
6,
10
],
"output_clusters": [
25
]
},
"2": {
"profile_id": 260,
"device_type": 6,
"input_clusters": [
1,
6
],
"output_clusters": []
},
"3": {
"profile_id": 260,
"device_type": 6,
"input_clusters": [
1,
6
],
"output_clusters": []
},
"4": {
"profile_id": 260,
"device_type": 6,
"input_clusters": [
1,
6
],
"output_clusters": []
}
}
},
"class": "zhaquirks.tuya.ts0044"
}
Et ma configuration actuelle :
{
"name": "Interrupteur 4 boutons",
"ref": "TS0044",
"configuration": {
"battery_type": "1x3V CR2430"
},
"commands": [
{
"name": "Bouton 1",
"type": "info",
"subtype": "numeric",
"isVisible": 1,
"isHistorized": 0,
"logicalId": "1::6::cmd::0",
"configuration": {
"repeatEventManagement": "always"
}
},
{
"name": "Bouton 2",
"type": "info",
"subtype": "numeric",
"isVisible": 1,
"isHistorized": 0,
"logicalId": "2::6::cmd::0",
"configuration": {
"repeatEventManagement": "always"
}
},
{
"name": "Bouton 3",
"type": "info",
"subtype": "numeric",
"isVisible": 1,
"isHistorized": 0,
"logicalId": "3::6::cmd::0",
"configuration": {
"repeatEventManagement": "always"
}
},
{
"name": "Bouton 1",
"type": "info",
"subtype": "numeric",
"isVisible": 1,
"isHistorized": 0,
"logicalId": "4::6::cmd::0",
"configuration": {
"repeatEventManagement": "always"
}
}
]
}
Depuis la dernière mise à jour, plus aucun bouton fonctionne. J’ai tenté une exclusion/inclusion mais ça n’a rien changé. J’ai aussi relancé l’installation des dépendances. Voici les messages que j’ai dans le log :
[2021-01-04 12:03:51][DEBUG] : Frame received: 0x0e24000700aa00
[2021-01-04 12:03:51][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
[2021-01-04 12:03:51][DEBUG] : Command Command.aps_data_indication (1, 1)
[2021-01-04 12:03:51][DEBUG] : Send: 0x1724000800010001
[2021-01-04 12:03:51][DEBUG] : Frame received: 0x17240022001b00220200000102d705040401060004000112fd0000afff47a40700c9
[2021-01-04 12:03:51][DEBUG] : APS data indication response: [27, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x05d7>, 4, 260, 6, b'\x01\x12\xfd\x00', 0, 175, 255, 71, 164, 7, 0, -55]
[2021-01-04 12:03:51][ERROR] : Exception in callback SerialTransport._read_ready()
handle: <Handle SerialTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/serial_asyncio/__init__.py", line 106, in _read_ready
self._protocol.data_received(data)
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/uart.py", line 91, in data_received
self._api.data_received(frame)
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/api.py", line 360, in data_received
getattr(self, "_handle_%s" % (command.name,))(data)
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/api.py", line 493, in _handle_aps_data_indication
data[16],
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/zigbee/application.py", line 324, in handle_rx
self.handle_message(device, profile_id, cluster_id, src_ep, dst_ep, data)
File "/usr/local/lib/python3.7/dist-packages/zigpy/application.py", line 229, in handle_message
dst_addressing=dst_addressing,
TypeError: handle_message() got an unexpected keyword argument 'dst_addressing'
[2021-01-04 12:03:51][DEBUG] : 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x05d7>, ep: 4, profile: 0x0104, cluster_id: 0x0006, data: b'0112fd00'
[2021-01-04 12:03:51][DEBUG] : Frame received: 0x1c25000c00050002d705ffc9
[2021-01-04 12:03:51][DEBUG] : Frame received: 0x1c26000c00050002d705ffc8
[2021-01-04 12:03:51][DEBUG] : Frame received: 0x1c27000c00050002d705ffc8
[2021-01-04 12:03:52][DEBUG] : Frame received: 0x0e28000700aa00
[2021-01-04 12:03:52][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
[2021-01-04 12:03:52][DEBUG] : Command Command.aps_data_indication (1, 1)
[2021-01-04 12:03:52][DEBUG] : Send: 0x1725000800010001
[2021-01-04 12:03:52][DEBUG] : Frame received: 0x17250022001b00220200000102d705040401060004000112fd0000afff47a40700c8
[2021-01-04 12:03:52][DEBUG] : APS data indication response: [27, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x05d7>, 4, 260, 6, b'\x01\x12\xfd\x00', 0, 175, 255, 71, 164, 7, 0, -56]
[2021-01-04 12:03:52][ERROR] : Exception in callback SerialTransport._read_ready()
handle: <Handle SerialTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/serial_asyncio/__init__.py", line 106, in _read_ready
self._protocol.data_received(data)
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/uart.py", line 91, in data_received
self._api.data_received(frame)
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/api.py", line 360, in data_received
getattr(self, "_handle_%s" % (command.name,))(data)
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/api.py", line 493, in _handle_aps_data_indication
data[16],
File "/usr/local/lib/python3.7/dist-packages/zigpy_deconz/zigbee/application.py", line 324, in handle_rx
self.handle_message(device, profile_id, cluster_id, src_ep, dst_ep, data)
File "/usr/local/lib/python3.7/dist-packages/zigpy/application.py", line 229, in handle_message
dst_addressing=dst_addressing,
TypeError: handle_message() got an unexpected keyword argument 'dst_addressing'
[2021-01-04 12:03:52][DEBUG] : 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x05d7>, ep: 4, profile: 0x0104, cluster_id: 0x0006, data: b'0112fd00'
[2021-01-04 12:03:52][DEBUG] : Frame received: 0x1c26000c00050002d705ffc8
[2021-01-04 12:03:52][DEBUG] : Frame received: 0x1c27000c00050002d705ffc8
[2021-01-04 12:03:52][DEBUG] : Frame received: 0x1c28000c00050002d705ffc8
[2021-01-04 12:03:53][DEBUG] : Frame received: 0x1c29000c00050002d705ffc2
[2021-01-04 12:04:01][DEBUG] : Frame received: 0x0e2a000700aa00
[2021-01-04 12:04:01][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
[2021-01-04 12:04:01][DEBUG] : Command Command.aps_data_indication (1, 1)
[2021-01-04 12:04:01][DEBUG] : Send: 0x1726000800010001
[2021-01-04 12:04:01][DEBUG] : Frame received: 0x17260026001f0022020000010247eb0104010004080018220a000021842b00afff48a40700cc
[2021-01-04 12:04:01][DEBUG] : APS data indication response: [31, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xeb47>, 1, 260, 1024, b'\x18"\n\x00\x00!\x84+', 0, 175, 255, 72, 164, 7, 0, -52]
[2021-01-04 12:04:01][DEBUG] : [0xeb47:1:0x0400] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=34 command_id=Command.Report_Attributes>
[2021-01-04 12:04:01][DEBUG] : [0xeb47:1:0x0400] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=uint16_t, value=11140>)]]
[2021-01-04 12:04:01][INFO] : [04:cf:8c:df:3c:78:ad:eb][listener.general_command] Cluster: <zigpy.zcl.clusters.measurement.IlluminanceMeasurement object at 0xb4679190> ClusterId: 0x0400 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=34 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=0, value=<TypeValue type=uint16_t, value=11140>)]],)
[2021-01-04 12:04:01][DEBUG] : [0xeb47:1:0x0400] Attribute report received: measured_value=11140
[2021-01-04 12:04:01][INFO] : [04:cf:8c:df:3c:78:ad:eb][listener.attribute_updated] Received an attribute update 0=11140 on cluster 1024
[2021-01-04 12:04:01][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0xb4f37220>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (04:cf:8c:df:3c:78:ad:eb, 1, 1024, 0, 11140))
[2021-01-04 12:04:01][DEBUG] : returning <sqlite3.Cursor object at 0xb46a4c60>
[2021-01-04 12:04:01][DEBUG] : 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xeb47>, ep: 1, profile: 0x0104, cluster_id: 0x0400, data: b'18220a000021842b'
[2021-01-04 12:04:01][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0xb4f37220>)
[2021-01-04 12:04:01][DEBUG] : returning None
[2021-01-04 12:04:01][DEBUG] : Send to jeedom : {'devices': {'04:cf:8c:df:3c:78:ad:eb': {'1': {'1024': {'0': {'value': '11140', 'cluster_name': 'Illuminance Measurement'}}}}}}
[2021-01-04 12:04:01][DEBUG] : Starting new HTTPS connection (1): 127.0.0.1:443
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
[2021-01-04 12:04:01][DEBUG] : https://127.0.0.1:443 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=puuMqWe8ciNP62wVJrMt3uTXYEq13bxH HTTP/1.1" 200 0
[2021-01-04 12:04:09][DEBUG] : Frame received: 0x0e27000700aa00
[2021-01-04 12:04:09][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
[2021-01-04 12:04:09][DEBUG] : Command Command.aps_data_indication (1, 1)
[2021-01-04 12:04:09][DEBUG] : Send: 0x1727000800010001
[2021-01-04 12:04:09][DEBUG] : Frame received: 0x17270026001f002202000001028f200104010004080018140a000021842b00afff48a40700cf
[2021-01-04 12:04:09][DEBUG] : APS data indication response: [31, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x208f>, 1, 260, 1024, b'\x18\x14\n\x00\x00!\x84+', 0, 175, 255, 72, 164, 7, 0, -49]
[2021-01-04 12:04:09][DEBUG] : [0x208f:1:0x0400] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=20 command_id=Command.Report_Attributes>
[2021-01-04 12:04:09][DEBUG] : [0x208f:1:0x0400] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=uint16_t, value=11140>)]]
[2021-01-04 12:04:09][INFO] : [04:cf:8c:df:3c:78:a2:42][listener.general_command] Cluster: <zigpy.zcl.clusters.measurement.IlluminanceMeasurement object at 0xb466dfb0> ClusterId: 0x0400 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=20 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=0, value=<TypeValue type=uint16_t, value=11140>)]],)
[2021-01-04 12:04:09][DEBUG] : [0x208f:1:0x0400] Attribute report received: measured_value=11140
[2021-01-04 12:04:09][INFO] : [04:cf:8c:df:3c:78:a2:42][listener.attribute_updated] Received an attribute update 0=11140 on cluster 1024
[2021-01-04 12:04:09][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0xb4f37220>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (04:cf:8c:df:3c:78:a2:42, 1, 1024, 0, 11140))
[2021-01-04 12:04:09][DEBUG] : returning <sqlite3.Cursor object at 0xb46a4d60>
[2021-01-04 12:04:09][DEBUG] : 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x208f>, ep: 1, profile: 0x0104, cluster_id: 0x0400, data: b'18140a000021842b'
[2021-01-04 12:04:09][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0xb4f37220>)
[2021-01-04 12:04:09][DEBUG] : returning None
[2021-01-04 12:04:10][DEBUG] : Send to jeedom : {'devices': {'04:cf:8c:df:3c:78:a2:42': {'1': {'1024': {'0': {'value': '11140', 'cluster_name': 'Illuminance Measurement'}}}}}}
[2021-01-04 12:04:10][DEBUG] : Starting new HTTPS connection (1): 127.0.0.1:443
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:849: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
[2021-01-04 12:04:10][DEBUG] : https://127.0.0.1:443 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=puuMqWe8ciNP62wVJrMt3uTXYEq13bxH HTTP/1.1" 200 0
Une idée du problème ?
Merci de votre aide.