JohanBendz / com.tuya.zigbee

MIT License
66 stars 126 forks source link

Device Request - [Fingerbot Plus] - [_TZ3210_j4pdtz9v] / [TS0001] #869

Open AntondK88 opened 5 months ago

AntondK88 commented 5 months ago

Device Information

Device Interview

{
    [
  "ids": {
    "modelId": "TS0001",
    "manufacturerName": "_TZ3210_j4pdtz9v"
  },
  "endpoints": {
    "ieeeAddress": "a4:c1:38:75:70:cc:f1:cd",
    "networkAddress": 4554,
    "modelId": "TS0001",
    "manufacturerName": "_TZ3210_j4pdtz9v",
    "endpointDescriptors": [
      {
        "status": "SUCCESS",
        "nwkAddrOfInterest": 4554,
        "_reserved": 18,
        "endpointId": 1,
        "applicationProfileId": 260,
        "applicationDeviceId": 0,
        "applicationDeviceVersion": 0,
        "_reserved1": 1,
        "inputClusters": [
          6,
          61184,
          0
        ],
        "outputClusters": [
          25,
          10
        ]
      }
    ],
    "deviceType": "enddevice",
    "receiveWhenIdle": false,
    "capabilities": {
      "alternatePANCoordinator": false,
      "deviceType": false,
      "powerSourceMains": false,
      "receiveWhenIdle": false,
      "security": false,
      "allocateAddress": true
    },
    "extendedEndpointDescriptors": {
      "1": {
        "clusters": {
          "onOff": {
            "attributes": [
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 0,
                "name": "onOff",
                "value": false,
                "reportingConfiguration": {
                  "direction": "reported",
                  "attributeDataType": 16,
                  "minInterval": 60,
                  "maxInterval": 600,
                  "status": "SUCCESS"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65533,
                "name": "clusterRevision",
                "value": 2,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              }
            ]
          },
          "basic": {
            "attributes": [
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 0,
                "name": "zclVersion",
                "value": 3
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 1,
                "name": "appVersion",
                "value": 82
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 2,
                "name": "stackVersion",
                "value": 0
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 3,
                "name": "hwVersion",
                "value": 1
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 4,
                "name": "manufacturerName",
                "value": "_TZ3210_j4pdtz9v"
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 5,
                "name": "modelId",
                "value": "TS0001"
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 6,
                "name": "dateCode",
                "value": ""
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 7,
                "name": "powerSource",
                "value": "battery"
              },
              {
                "acl": [
                  "readable",
                  "writable",
                  "reportable"
                ],
                "id": 65502
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65533,
                "name": "clusterRevision",
                "value": 2
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65534,
                "name": "attributeReportingStatus",
                "value": "PENDING"
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65506
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65507
              }
            ]
          }
        },
        "bindings": {
          "ota": {},
          "time": {
            "attributes": [
              {
                "acl": [
                  "readable"
                ],
                "id": 65533,
                "name": "clusterRevision",
                "value": 1
              }
            ]
          }
        }
      }
    }
  }]
}

Additional Comments:

AliExpress: https://nl.aliexpress.com/item/1005005715461824.html?dp=85bfd394d4c86b62be5ddf98c6ac75c2&af=1711154&cv=47843&afref=https%3A%2F%2Finfica.com&mall_affr=pr3&utm_source=admitad&utm_medium=cpa&utm_campaign=1711154&utm_content=47843&dp=85bfd394d4c86b62be5ddf98c6ac75c2&af=1711154&cv=47843&afref=https%3A%2F%2Finfica.com&mall_affr=pr3&utm_source=admitad&utm_medium=cpa&utm_campaign=1711154&utm_content=47843&aff_fcid=c3133567e78542e4b09e8f155714aada-1716398692656-03106-_ePNSNV&aff_fsk=_ePNSNV&aff_platform=portals-tool&sk=_ePNSNV&aff_trace_key=c3133567e78542e4b09e8f155714aada-1716398692656-03106-_ePNSNV&terminal_id=f627bc0a62f74842b20e7624b923b989&afSmartRedirect=y

dalobalo commented 1 month ago

Is the device added to the list and working with Homey?

JohanBendz commented 1 month ago

Support is added to next update. please report how it works @dalobalo @AntondK88 as I don't have it myself.

JohanBendz commented 4 weeks ago

Ping @AntondK88 @dalobalo

dalobalo commented 4 weeks ago

Thanks for the update. Still waiting for the device. Should arrive within a week or two. I will let you know how it goes

dalobalo commented 3 weeks ago

@JohanBendz So I am able to find and add both devices in homey, but no flows will work with ether of them. Also the battery status is unknown with a question mark. The device works if I press the button on the fingerbot itself. I have eliminated distance as an error source.

edit: Link to the unit https://a.aliexpress.com/_EzFgCml

martinj commented 2 weeks ago

Got the same device and have the same issue (running version v0.2.73). It pairs but i can't trigger the finger and battery status is not showing.

Anything I can provide or help with to fix this?

officekeys-nl commented 1 week ago

I am testing it. But it is not working. I have VSC and will download the driver to see if I can alter the code

officekeys-nl commented 1 week ago

I needed to remove "finger_bot_mode" from capabilities in driver.compose.json because of the validation error: App did not validate against level debug: × Error: drivers.fingerbot invalid capability: finger_bot_mode at App._validate (C:\Users\kees\AppData\Roaming\npm\node_modules\homey\lib\App.js:132:13) at async App.runDocker (C:\Users\kees\AppData\Roaming\npm\node_modules\homey\lib\App.js:254:19) at async exports.handler (C:\Users\kees\AppData\Roaming\npm\node_modules\homey\bin\cmds\app\run.js:43:5)

After removing the following log was produced: 2024-11-03T08:22:43.416Z [log] [myZigBeeTest] myZigBeeTest has been initialized 2024-11-03T08:22:43.997Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] ZigBeeDevice has been initialized { firstInit: false, isSubDevice: false } 2024-11-03T08:22:43.998Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] ------------------------------------------ 2024-11-03T08:22:43.998Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] Node: 5b812264-966f-4e23-a824-437b0d2aafab 2024-11-03T08:22:43.999Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] - Receive when idle: false 2024-11-03T08:22:43.999Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] - Endpoints: 1 2024-11-03T08:22:43.999Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] -- Clusters:
2024-11-03T08:22:43.999Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] --- basic
2024-11-03T08:22:43.999Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] --- onOff
2024-11-03T08:22:43.999Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] --- tuya
2024-11-03T08:22:44.000Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] ------------------------------------------ zigbee-clusters:cluster ep: 1, cl: basic (0) read attributes [ 4, 0, 1, 5, 7, 65534 ] +0ms zigbee-clusters:cluster ep: 1, cl: basic (0) send frame ZCLStandardHeader { frameControl: [], data: basic.readAttributes { attributes: [ 4, 0, 1, 5, 7, 65534 ] }, cmdId: 0, trxSequenceNumber: 1 } +1ms zigbee-clusters:cluster ep: 1, cl: basic (0) received frame readAttributesStructured.response basic.readAttributesStructured.response { attributes: <Buffer 04 00 00 42 10 5f 54 5a 33 32 31 30 5f 6a 34 70 64 74 7a 39 76 00 00 00 20 03 01 00 00 20 48 05 00 00 42 06 54 53 30 30 30 31 07 00 00 30 03 fe ff 00 ... 2 more bytes> } +556ms zigbee-clusters:cluster ep: 1, cl: basic (0) read attributes result { attributes: <Buffer 04 00 00 42 10 5f 54 5a 33 32 31 30 5f 6a 34 70 64 74 7a 39 76 00 00 00 20 03 01 00 00 20 48 05 00 00 42 06 54 53 30 30 30 31 07 00 00 30 03 fe ff 00 ... 2 more bytes> } +1ms 2024-11-03T08:22:44.559Z [err] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] Error: 'onNodeInit()' failed, reason: Error: Invalid Flow Card ID: finger_bot_mode at new FlowCard (/node_modules/@athombv/homey-apps-sdk-v3/lib/FlowCard.js:69:13) at new FlowCardAction (/node_modules/@athombv/homey-apps-sdk-v3/lib/FlowCardAction.js:20:5) at ManagerFlow.getActionCard (/node_modules/@athombv/homey-apps-sdk-v3/manager/flow.js:48:18) at FingerBotTuya.onNodeInit (/app/drivers/fingerbot/device.js:54:21) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /app/node_modules/homey-zigbeedriver/lib/ZigBeeDevice.js:949:11 2024-11-03T08:22:44.559Z [err] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] Error: could not initialize node Error: Invalid Flow Card ID: finger_bot_mode at new FlowCard (/node_modules/@athombv/homey-apps-sdk-v3/lib/FlowCard.js:69:13) at new FlowCardAction (/node_modules/@athombv/homey-apps-sdk-v3/lib/FlowCardAction.js:20:5) at ManagerFlow.getActionCard (/node_modules/@athombv/homey-apps-sdk-v3/manager/flow.js:48:18) at FingerBotTuya.onNodeInit (/app/drivers/fingerbot/device.js:54:21) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /app/node_modules/homey-zigbeedriver/lib/ZigBeeDevice.js:949:11

After on/off command I get the following log: zigbee-clusters:cluster ep: 1, cl: tuya (61184) send frame ZCLStandardHeader { frameControl: [ 'clusterSpecific' ], data: tuya.datapoint { status: 0, transid: 0, dp: 1, datatype: 1, length: 1, data: <Buffer 00> }, cmdId: 0, trxSequenceNumber: 1 } +2m zigbee-clusters:cluster ep: 1, cl: tuya (61184) received frame defaultResponse tuya.defaultResponse { cmdId: 0, status: 'SUCCESS' } +630ms 2024-11-03T08:24:53.906Z [log] [ManagerDrivers] [Driver:fingerbot] [Device:d0d6470f-d455-47eb-b91a-de3b506522b9] Finger Bot on/off set to false

JohanBendz commented 5 days ago

Ah, sorry about that. I released a driver to catch diagnostic reports for the unit, did not really expect it to work without adjustment. A new version is on its way.