Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to convert some datapoints. #16

Closed
hackintoshlover opened this issue Dec 28, 2023 · 4 comments
Closed

Unable to convert some datapoints. #16

hackintoshlover opened this issue Dec 28, 2023 · 4 comments

Comments

@hackintoshlover
Copy link

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.
Screenshot (326)

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.

  1. How do i make above three work.
  2. 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.

@kuba2k2
Copy link
Member

kuba2k2 commented Dec 28, 2023

  1. 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).
  2. 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.

@hackintoshlover
Copy link
Author

  1. Ok, I'll try that and get back to you.
  2. Is there a manual way of pointing out schema. example from my tuya developer account?

@kuba2k2
Copy link
Member

kuba2k2 commented Dec 28, 2023

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.

@hackintoshlover
Copy link
Author

Will keep that in mind.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants