Comments (9)
+1
having the same request. would be great if the device support can be added.
from ha_tuya_ble.
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.
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.
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.
@PlusPlus-ua Tried to move closer both of my devices to the adapter but nothing changed (
from ha_tuya_ble.
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.
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.
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.
@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)
- Support for BLE Temperature and Humidity Sensor PT216 & PT19DB-2
- Error after updating to Home Assistant 2024.2.0 update HOT 40
- Is there anybody who can merge the Pull requests?? HOT 5
- Will This work with a ESPHome Bluetooth Proxy, or does it need to connect to the Bluetooth radio on my device running home assistant? HOT 1
- How to setup this integration? HOT 3
- installation issue HOT 1
- Possible error in _handle_command_or_response()
- Device is not registered in Tuya cloud HOT 9
- Not working after update to 2024.4.0 HOT 6
- Not working: "requirements": ["tuya-iot-py-sdk==0.6.6", "pycountry>23.0.0"], HOT 11
- Error Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble HOT 11
- Question: Determine if a Fingerbot action actually completed HOT 2
- Update to tuya_sharing SDK HOT 1
- Can you please add the smart curtain robots HOT 3
- Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble HOT 3
- Error integration HOT 1
- Setup Account and Password HOT 1
- Tuya Protocol 3.4 for TH05 Support
- SGS01 (gvygg3m8) exposes soil moisture as humidity HOT 1
- Support for Divoo WT-03W
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha_tuya_ble.