GithubHelp home page GithubHelp logo

New device request about ha_tuya_ble HOT 9 CLOSED

ibocharov avatar ibocharov commented on July 24, 2024 2
New device request

from ha_tuya_ble.

Comments (9)

soeren-a avatar soeren-a commented on July 24, 2024

+1
having the same request. would be great if the device support can be added.

from ha_tuya_ble.

Mepherotus avatar Mepherotus commented on July 24, 2024

I've also tried to update the files, went down the rabbit hole of the tuya docs and ended up with your same update but the device just doesn't show up. Unfortunately I don't have a rooted phone, sniffing the communication could solve the mystery (or we both commuted the same error and @PlusPlus-ua will just solve it in a matter of seconds XD).

from ha_tuya_ble.

qmegas avatar qmegas commented on July 24, 2024

Same for me. Tried to add a "Drawer Smart Lock":

devices.py

   "jtmspro": TuyaBLECategoryInfo(
        products={
            "akwn32dw":  # device product_id
            TuyaBLEProductInfo(
                name="Drawer Smart Lock",
            ),
        },
    ),

sensor.py (decided to start only from a single entity)

   "jtmspro": TuyaBLECategorySensorMapping(
        products={
            "akwn32dw":  # Drawer Smart Lock
            [
                TuyaBLESensorMapping(
                    dp_id=1,
                    description=SensorEntityDescription(
                        key="residual_electricity",
                        device_class=SensorDeviceClass.BATTERY,
            		native_unit_of_measurement=PERCENTAGE,
            		entity_category=EntityCategory.DIAGNOSTIC,
            		state_class=SensorStateClass.MEASUREMENT,
                    ),
                ),
            ]
        }
    ),

Diagnostic JSON

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.5.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.11",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Vienna",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.04.1",
    "host_os": "Home Assistant OS 10.2",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "codeowners": [
      "@Tuya",
      "@zlinoliver",
      "@frenck"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg"
    ],
    "dhcp": [
      {
        "macaddress": "105A17*"
      },
      {
        "macaddress": "10D561*"
      },
      {
        "macaddress": "1869D8*"
      },
      {
        "macaddress": "381F8D*"
      },
      {
        "macaddress": "508A06*"
      },
      {
        "macaddress": "68572D*"
      },
      {
        "macaddress": "708976*"
      },
      {
        "macaddress": "7CF666*"
      },
      {
        "macaddress": "84E342*"
      },
      {
        "macaddress": "D4A651*"
      },
      {
        "macaddress": "D81F12*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-iot-py-sdk==0.6.6"
    ],
    "is_built_in": true
  },
  "data": {
    "endpoint": "https://openapi.tuyaeu.com",
    "auth_type": 0,
    "country_code": "386",
    "app_type": "tuyaSmart",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "name": "Drawer lock",
    "model": "A01",
    "category": "jtmspro",
    "product_id": "akwn32dw",
    "product_name": "\u62bd\u5c49\u9501",
    "online": false,
    "sub": false,
    "time_zone": "+02:00",
    "active_time": "2023-06-05T18:32:30+00:00",
    "create_time": "2023-06-05T18:32:30+00:00",
    "update_time": "2023-06-05T18:33:39+00:00",
    "function": {
      "remote_no_dp_key": {
        "type": "Raw",
        "value": {}
      },
      "check_code_set": {
        "type": "Raw",
        "value": {}
      },
      "ble_unlock_check": {
        "type": "Raw",
        "value": {}
      },
      "remote_pd_setkey_check": {
        "type": "Raw",
        "value": {}
      }
    },
    "status_range": {
      "residual_electricity": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 1
        }
      },
      "closed_opened": {
        "type": "Enum",
        "value": {
          "range": [
            "unknown",
            "open",
            "closed"
          ]
        }
      },
      "remote_no_dp_key": {
        "type": "Raw",
        "value": {}
      },
      "unlock_phone_remote": {
        "type": "Integer",
        "value": {
          "min": 0,
          "max": 999,
          "scale": 0,
          "step": 1
        }
      },
      "check_code_set": {
        "type": "Raw",
        "value": {}
      },
      "ble_unlock_check": {
        "type": "Raw",
        "value": {}
      },
      "unlock_record_check": {
        "type": "Raw",
        "value": {}
      },
      "remote_pd_setkey_check": {
        "type": "Raw",
        "value": {}
      }
    },
    "status": {
      "residual_electricity": 100,
      "closed_opened": "closed",
      "remote_no_dp_key": "",
      "unlock_phone_remote": 0,
      "check_code_set": "",
      "ble_unlock_check": "",
      "unlock_record_check": "",
      "remote_pd_setkey_check": ""
    },
    "home_assistant": {
      "name": "Draw lock",
      "name_by_user": "Drawer Lock",
      "disabled": false,
      "disabled_by": null,
      "entities": []
    }
  }
}

from ha_tuya_ble.

PlusPlus-ua avatar PlusPlus-ua commented on July 24, 2024

Hi,

If you have "No unconfigured devices found", it's possible that your device uses Bluetooth Mesh instead of BLE. Could you please try to move the device as close as possible to your Bluetooth adapter and connect it, despite there will be only signal strength entity.

from ha_tuya_ble.

ibocharov avatar ibocharov commented on July 24, 2024

@PlusPlus-ua Tried to move closer both of my devices to the adapter but nothing changed (

from ha_tuya_ble.

PlusPlus-ua avatar PlusPlus-ua commented on July 24, 2024

Sorry, 99% that your device is Bluetooth Mesh one, this protocol hasn't yet supported in HA. 1% that the problem in your BT adapter. Do you have connected to HA any other BLE devices that require connection? If no, try to take somewhere another adapter and try with it.

from ha_tuya_ble.

ibocharov avatar ibocharov commented on July 24, 2024

yep, I can connect a bunch of other ble devices to my adapter, probably it can be a bluetooth mesh, thanks for the explanation

from ha_tuya_ble.

bernardovalente avatar bernardovalente commented on July 24, 2024

sorry to revive this but @qmegas were you able to add that device? I have one also and it would be great to not use that awful app

from ha_tuya_ble.

qmegas avatar qmegas commented on July 24, 2024

@bernardovalente No, I was unable to add this device. There was a PR home-assistant/core#75251 which supposed to add many other tuya locks to HA. But for some reason it wasn't approved by maintainers.

from ha_tuya_ble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.