GithubHelp home page GithubHelp logo

Comments (5)

PlusPlus-ua avatar PlusPlus-ua commented on July 4, 2024 1

To integrate new device and new class of devices, next information is needed:

  1. 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
  2. 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"]}
  3. 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.
  4. 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.

ncosta24 avatar ncosta24 commented on July 4, 2024
"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.

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

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.

ncosta24 avatar ncosta24 commented on July 4, 2024

Hello.

For 3:

ON/OFF: 1
Mode: 2
Brightness: 3
Colour: 5
Debugger: 101
音乐模式: 102
Timer: 7
线序调整: 103

from ha_tuya_ble.

ncosta24 avatar ncosta24 commented on July 4, 2024

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)

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.