Comments (5)
To integrate new device and new class of devices, next information is needed:
- category, product_id, product_name. These values could be found in /config/.storage/core.config_entries file or in output of https://github.com/redphx/tuya-local-key-extractor
- Names and descriptions of datapoints. It could be obtained on "Device Debugging" page of your "Tuya Cloud Project". Please provide it in format like this:
work_mode | Enum | {"range": ["white","colour","scene","music"]}
- IDs of all datapoints. Here is an instruction how to obtain it https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html . Retrive please IDs of all datapoints, even if it is not listed in previous item of the list.
- Part of log produced by your device, like this:
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 2, type: DT_BOOL: value: True
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 8, type: DT_ENUM: value: 0
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 9, type: DT_VALUE: value: 75
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 10, type: DT_VALUE: value: 0
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 11, type: DT_ENUM: value: 1
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 15, type: DT_VALUE: value: 0
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 12, type: DT_VALUE: value: 70
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 101, type: DT_BOOL: value: False
2023-05-11 20:09:28.568 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:71:AE: Received datapoint update, id: 17, type: DT_BOOL: value: True
It's a way to obtain information about datapoints types
Sorry for so many items :)
from ha_tuya_ble.
"category": "dd",
"product_id": "y5sbw7ma",
"product_name": "HCP20514 ",
switch_led | Boolean | "{true,false}"
work_mode | Enum | {"range": ["music"]}
bright_value | Integer | {"min": 10,"max": 1000,"scale": 0,"step": 1}
colour_data | Json | {"h": {"min": 0,"scale": 0,"unit": "","max": 360,"step": 1},"s": {"min": 0,"scale": 0,"unit": "","max": 1000,"step": 1},"v": {"min": 0,"scale": 0,"unit": "","max": 1000,"step": 1}}
countdown | Integer | {"min": 0,"max": 86400,"scale": 0,"step": 1}
control_data | Json | {"change_mode": {"range": ["direct","gradient"]},"bright": {"min": 0,"scale": 0,"unit": "","max": 1000,"step": 1},"temperature": {"min": 0,"scale": 0,"unit": "","max": 1000,"step": 1},"h": {"min": 0,"scale": 0,"unit": "","max": 360,"step": 1},"s": {"min": 0,"scale": 0,"unit": "","max": 255,"step": 1},"v": {"min": 0,"scale": 0,"unit": "", "max": 255,"step": 1}}
Time Device Event DP ID Event Details Source Source Details
2023-05-12 16:41:26 publish by cloud api publish by cloud api failed open api cloud2cloud
2023-05-12 16:41:14 Report On/Off ON device itself
2023-05-12 16:41:14 Report 音乐模式 132 device itself
2023-05-12 16:41:14 Report 线序调整 0.30 device itself
2023-05-12 16:41:14 Report 灯带点数 3.00 device itself
2023-05-12 16:41:14 Report 灯带模式 053264 device itself
2023-05-12 16:41:14 Report 场景模式 CJ_YD device itself
2023-05-12 16:41:14 Report Mode color device itself
2023-05-12 16:41:14 Report Colour 012c03e803e8 device itself
2023-05-12 16:41:14 Report Timer 0 device itself
2023-05-12 08:47:28.410 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:F2:88:EC: device not found, not in range, or poor RSSI: None
2023-05-12 08:48:49.470 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:F2:88:EC: device not found, not in range, or poor RSSI: None
2023-05-12 08:50:10.523 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:F2:88:EC: device not found, not in range, or poor RSSI: None
2023-05-12 08:52:23.587 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:B4:56: Device unexpectedly disconnected; RSSI: -82
2023-05-12 08:53:28.982 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:F2:88:EC: device not found, not in range, or poor RSSI: None
2023-05-12 08:58:32.176 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:B4:56: Device unexpectedly disconnected; RSSI: -82
2023-05-12 09:03:52.979 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:B4:56: Device unexpectedly disconnected; RSSI: -82
2023-05-12 09:10:34.992 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:B4:56: Device unexpectedly disconnected; RSSI: -84
from ha_tuya_ble.
Hi, I have a bit of time to make some improvements.
In point 3 there are no IDs itself. ID is an integer value.
For point 4 you need to place the device closer to the Bluetooth adapter.
from ha_tuya_ble.
Hello.
For 3:
ON/OFF: 1
Mode: 2
Brightness: 3
Colour: 5
Debugger: 101
音乐模式: 102
Timer: 7
线序调整: 103
from ha_tuya_ble.
For 4:
2023-06-02 15:29:39.793 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:F2:88:EC: Device unexpectedly disconnected; RSSI: -60
2023-06-02 15:29:41.017 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:F2:88:EC: Device unexpectedly disconnected; RSSI: -61
2023-06-02 15:29:42.609 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4D:AC:B4:56: Device unexpectedly disconnected; RSSI: -87
home-assistant_2023-06-02T15-57-08.963Z.log
I can't get nothing else
Teh device is 1.5m away from my bluetooth proxy
from ha_tuya_ble.
Related Issues (20)
- [New Device] Parkside X20V Team 4Ah and 8Ah battery Lidl HOT 13
- [New Device] revolt Radiator thermostat
- MOES Fingerbot Plus product id 6jcvqwh0 not working HOT 2
- Error when adding integration HOT 7
- Error on install: {"message":"Invalid handler specified"} HOT 9
- Integration missing after installation
- Support for Plantation Shutter motor requested
- Ceiling lights RGB +CCT smart bluetooth lights HOT 1
- Enable Smart grow light (zwd)
- 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
- Tuya BLE integration import error after HA update 2024.1.0 HOT 1
- Error after HA update to: 2024.1.0 HOT 3
- [New Device] BLE Tuya e27 "Beacon RGBCW bulb" HOT 3
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.