PlusPlus-ua / ha_tuya_ble

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

Add new Fingerbot Plus Category: kg and Product ID: mknd4lci #89

Open Snuffy2 opened 5 months ago

Snuffy2 commented 5 months ago

I just got a Fingerbot Plus and was excited to use this integration. Unfortunately it didn't work and looking closer I found that my device had a different category and product id than what was listed in the readme.

Getting the dp IDs from these 2 approaches, I was able to add support: https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html https://github.com/blakadder/tuya-uncover

Tuya BLE Debug Log:

DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: kg, product_id: mknd4lci, device_name: Family Room Fireplace, product_model: BS-FB-V3.1, product_name: Finger Robot

IDs from the Tuya API:

{
    "1":"Switch",
    "101":"Mode",
    "102":"Down Movement",
    "103":"Sustain Time",
    "104":"Reverse",
    "105":"battery_percentage",
    "106":"Up Movement",
    "107":"Touch Control",
    "108":"Click",
    "109":"custom_prog",
    "110":"factory_data",
    "111":"total_movement",
    "112":"custom_timer",
    "113":"custom_week_prog_1",
    "114":"custom_week_prog_2",
    "115":"custom_week_prog_3",
    "116":"custom_week_prog_4",
    "117":"Calibrate",
    "119":"Resistance",
    "121":"Adaptive Movement",
    "122":"上升增益补偿"
}

IDs from tuya-uncover:

"Family Room Fireplace": {
  "id": "eb16d6uh1tlxavy9",
  "local_key": "DkdHf5YT(VCmT.de",
  "category": "kg",
  "uuid": "tuya51a785e0e13f",
  "product_id": "mknd4lci",
  "dps": {
      "1": false,
      "101": "switch",
      "102": 86,
      "103": 0,
      "104": "up_off",
      "105": 100,
      "106": 41,
      "107": true,
      "108": false,
      "109": "////AA==",
      "111": 20,
      "112": "AAAAAAA=",
      "113": "AAAAAAA=",
      "114": "AAAAAAA=",
      "115": "AAAAAAA=",
      "116": "AAAAAAA=",
      "117": true,
      "119": 10,
      "121": false,
      "122": 100
  }
},
ppcsite commented 4 months ago

Another ID can be added to the same "kg" category: "riecov42" It has the same IDs in Tuya API and it works well.