Unable to convert some datapoints.
hackintoshlover opened this issue · comments
Hi,
Thanks for the amazing software.
I have a 2 channel tuya device with built-in rf module. https://www.primezen.in/products/zen-2c5w/
I successfully extracted the firmware from the device.
While analyzing using ltchiptool, it says tuyamcu found and needs to download schema.
It downloads a schema which is unable to convert few datapoints.
Attached is an image for better understanding.
3 datapoints viz,
102 - sends a pairing command to internal mcu which puts rf device in pairing mode to pair a rf switch.
103 - sends a clear pairing command to internal mcu which clears pairing information from rf device.
116 - switches on both relays at once.
I have two questions.
- How do i make above three work.
- How to get new schema since the schema used by ltchiptool to poll data differs from the schema available in my device as stated in the image.
Attached below is the firmware binary for your reference.
ltchiptool_dump_2023-12-20_23-13-00.zip
Kindly help.
Thanks.
- You need to implement these manually into your YAML. Not all datapoint types are supported, among those are write-only enum types (as in your example).
- ltchiptool pulls whatever schema is returned for the device by Tuya servers. The mismatching ID likely only means that it pulled an updated version of the schema.
- Ok, I'll try that and get back to you.
- Is there a manual way of pointing out schema. example from my tuya developer account?
No, there isn't. Usually the schemas aren't any different anyway, so it would most likely produce the same output.
Keep in mind that UPK2ESPHome is only meant to be a starting point - you should always review the generated output and adjust to your needs.
Will keep that in mind.
Thanks.