PlusPlus-ua / ha_tuya_ble

Home Assistant support for Tuya BLE devices
MIT License
147 stars 97 forks source link

MOES Fingerbot Plus product id 6jcvqwh0 not working #103

Open mjoed opened 4 months ago

mjoed commented 4 months ago

hi, i have a "MOES Fingerbot Plus" ( as seen here https://www.amazon.de/dp/B0C49JJNP9 ), i only get a Signal strength entity that is unavailable:

image

i am guessing all that is missing is the product id 6jcvqwh0 in the code, and i tried to add the product id to the # Fingerbot Plus parts in devices.py/button.py/number.py/sensor.py/switch.py/text.py, similar to this

image

but it still doesn't work and only shows the signal strength entitiy (after several tries to delete it completely in HA and the smart life app, resetting it, adding it new, restarting HA, adding it to HA)

the 1 weird thing is - previously it registered with product id mknd4lci, so i added both.. not sure why that was the case.

i have enables debugging and this all looks good i think:

2024-01-09 21:22:42.589 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Initializing
2024-01-09 21:22:42.589 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: kg, product_id: 6jcvqwh0, device_name: xxx, product_model: , product_name: Fingerbot Plus
2024-01-09 21:22:42.625 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Updating
2024-01-09 21:22:42.636 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Connecting; RSSI: -64
2024-01-09 21:22:45.822 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Connected; RSSI: -64
2024-01-09 21:22:45.855 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Sending device info request
2024-01-09 21:22:45.855 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Sending packet: #1 FUN_SENDER_DEVICE_INFO
2024-01-09 21:22:46.040 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 0081013004c15861cb958b45824c76c191b0d9a9
2024-01-09 21:22:46.043 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 01b8ce000afcf37f550805bda425d145a78a6766
2024-01-09 21:22:46.050 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 02f7ad758c1749330443a18439c8e14acc06e329
2024-01-09 21:22:46.053 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 03372d9fdc7780193989389257fbd49e10c3c804
2024-01-09 21:22:46.135 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 045465aa5b38a57d04adaf26918b8ea976a842de
2024-01-09 21:22:46.136 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 0582f0656be9f31acb9eb7f8c6efd9ebae7428cf
2024-01-09 21:22:46.136 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 06810f5d88d47f8031c748cb1f115e8ef56911
2024-01-09 21:22:46.138 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received: #1 FUN_SENDER_DEVICE_INFO, response to #1
2024-01-09 21:22:46.139 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received expected response to #1, result: 0
2024-01-09 21:22:46.140 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Sending pairing request
2024-01-09 21:22:46.140 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Sending packet: #2 FUN_SENDER_PAIR
2024-01-09 21:22:46.383 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 002130056b7457b733071b4e7c522a3daa151044
2024-01-09 21:22:46.385 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 01bd3881b22fcc1126322c412ef0ee2c39
2024-01-09 21:22:46.388 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received: #2 FUN_SENDER_PAIR, response to #2
2024-01-09 21:22:46.388 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Device is already paired
2024-01-09 21:22:46.389 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received expected response to #2, result: 0
2024-01-09 21:22:46.393 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Successfully connected
2024-01-09 21:22:46.394 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Sending packet: #3 FUN_SENDER_DEVICE_STATUS
2024-01-09 21:22:46.433 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 00213005bd109f2384035e9a4bae7c690ed13c50
2024-01-09 21:22:46.434 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 01f4bc70175859dbef9954778e811871e4
2024-01-09 21:22:46.435 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received: #3 FUN_RECEIVE_TIME1_REQ
2024-01-09 21:22:46.438 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Sending packet: #4 FUN_RECEIVE_TIME1_REQ in response to #3
2024-01-09 21:22:46.553 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 00213005262ce80f787f3f662a8a6815cf0d5ddc
2024-01-09 21:22:46.555 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 01ba899175cf7ec833d10548cf917a4ced
2024-01-09 21:22:46.556 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received: #4 FUN_SENDER_DEVICE_STATUS, response to #3
2024-01-09 21:22:46.556 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received expected response to #3, result: 0
2024-01-09 21:22:46.561 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 009101300516c8e27b007bedb288e69d41dac9a4
2024-01-09 21:22:46.641 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 01e8c23229bef4349a72661ef0425b13200dd701
2024-01-09 21:22:46.642 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 021e99e8b768eba94c84ba7a347af871cd6c80d0
2024-01-09 21:22:46.645 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 03bd670b5897e82cf72fde461d3d42eef3498f4e
2024-01-09 21:22:46.648 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 045d46cb15973a9cb5aeced95b31c29bc9dbd76e
2024-01-09 21:22:46.651 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 05ea604b960ee66c9b6f1d90aca2a88130553843
2024-01-09 21:22:46.657 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 0657ae77f259aec813536e8fc57ce416db52fde5
2024-01-09 21:22:46.663 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Packet received: 071be63bd3b8f391cc3b2693d37ed96f
2024-01-09 21:22:46.664 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received: #5 FUN_RECEIVE_DP
2024-01-09 21:22:46.664 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 1, type: DT_BOOL: value: False
2024-01-09 21:22:46.665 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 101, type: DT_ENUM: value: 0
2024-01-09 21:22:46.665 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 102, type: DT_VALUE: value: 85
2024-01-09 21:22:46.665 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 103, type: DT_VALUE: value: 0
2024-01-09 21:22:46.666 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 104, type: DT_ENUM: value: 1
2024-01-09 21:22:46.666 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 106, type: DT_VALUE: value: 0
2024-01-09 21:22:46.666 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 105, type: DT_VALUE: value: 100
2024-01-09 21:22:46.667 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 108, type: DT_BOOL: value: False
2024-01-09 21:22:46.668 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 112, type: DT_RAW: value: b'\x00\x00\x00\x00\x00'
2024-01-09 21:22:46.668 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 113, type: DT_RAW: value: b'\x00\x00\x00\x00\x00'
2024-01-09 21:22:46.668 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 114, type: DT_RAW: value: b'\x00\x00\x00\x00\x00'
2024-01-09 21:22:46.668 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 115, type: DT_RAW: value: b'\x00\x00\x00\x00\x00'
2024-01-09 21:22:46.669 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 116, type: DT_RAW: value: b'\x00\x00\x00\x00\x00'
2024-01-09 21:22:46.672 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 111, type: DT_VALUE: value: 36
2024-01-09 21:22:46.673 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 117, type: DT_BOOL: value: False
2024-01-09 21:22:46.673 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 119, type: DT_VALUE: value: 0
2024-01-09 21:22:46.673 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 121, type: DT_BOOL: value: True
2024-01-09 21:22:46.674 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 122, type: DT_VALUE: value: 100
2024-01-09 21:22:46.674 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Received datapoint update, id: 107, type: DT_BOOL: value: True
2024-01-09 21:22:46.675 DEBUG (MainThread) [custom_components.tuya_ble.devices] Manually updated tuya_ble data
2024-01-09 21:22:46.677 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AD:03:E1: Sending packet: #5 FUN_RECEIVE_DP in response to #5
mjoed commented 4 months ago

i think i already solved it myself - the category is also different (and all the datapoint id's too sadly). i have now ugly-hacked the button press into my local installation successfully (just switched the category id of fingerbots and the dp_id of the button press from 2 to 1), if there is interest to implement this properly i am happy to provide any tests/information needed

highresjpeg commented 3 months ago

i think i already solved it myself - the category is also different (and all the datapoint id's too sadly). i have now ugly-hacked the button press into my local installation successfully (just switched the category id of fingerbots and the dp_id of the button press from 2 to 1), if there is interest to implement this properly i am happy to provide any tests/information needed

Hey! Can you provide specifics on what the category ID needs to be, and what file/line needs to be changed? I have this fingerbot as well as the rechargeable USB-C version and have tried all of the possible solutions found in recent issues threads.