Code Monkey home page Code Monkey logo

Comments (10)

home-assistant avatar home-assistant commented on September 13, 2024

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation
tuya source
(message by IssueLinks)

from core.

leirn avatar leirn commented on September 13, 2024

Hi there,

Starting to use the Tuya extension yesterday, I confirm that I observe the exact same behavior.

My device is recognized as :

"product_id": "cjrm04np59ut4pwb",
"product_name": "PetFeeder",

The integration creates 8 entities, one sensor and 7 configurations, all related to camera but nothing for the feeding part of the device.

from core.

leirn avatar leirn commented on September 13, 2024

If I read ha code well (but I am not familiar with it), the codes for feeding as shown in the first message are not present in tuya.const.DPCode enumeration.

It could explain why they are not recognized.

from core.

pergolafabio avatar pergolafabio commented on September 13, 2024

Yeah the product ID is unknown, we need to add this ID en consts to the code... It should work with some extra basic code...

from core.

pergolafabio avatar pergolafabio commented on September 13, 2024

Here is an example, should be easy to add other product ID's rol...

#61359

from core.

pergolafabio avatar pergolafabio commented on September 13, 2024

I can see the DP in tuya iot , in this example, they are called "meal_plan" , but I have the variable named as "feed" ....

#61359 (comment)

from core.

leirn avatar leirn commented on September 13, 2024

I investigated the issue on my side down to the http requests in tuya_sharing. Apparently the feeding elements are not provided in Tuya API, all if offers are the 8 items displayed in HA
I opened a ticket at Tuya to try to understand better why I don't see the feeding items.

@pergolafabio : If you want to make an equivalent check on your system, you need to go to consumerapi.py in tuya_sharing module and dump the received data right after _aex_gcm_decrypt.

/v1.1/m/life/{device_id}/spécifications seems to be the endpoint that provides the list of provided items.

from core.

pergolafabio avatar pergolafabio commented on September 13, 2024

Yeah, I noticed that too, but if you change the DP instruction set to RAW instead of default, they are all.listed on the IOT website... Maybe that's mandatory?

from core.

leirn avatar leirn commented on September 13, 2024

I opened a ticket at tuya to try to get an explanation from their side.

I am not familiar with Tuya API and have no clue how raw should be set. Is this something that can be add in tuya_sharing directly ?

from core.

pergolafabio avatar pergolafabio commented on September 13, 2024

i mean here, where you can switch the DP instruction set, then in my case the "feed_num" is visible....

image

from core.

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.