GithubHelp home page GithubHelp logo

Comments (6)

make-all avatar make-all commented on June 18, 2024

Not in the libraries currently available for python, which Home Assistant integrations use. Currently only the nodejs library and tuyacli app connect to iot.tuya.com

from tuya-local.

make-all avatar make-all commented on June 18, 2024

There does appear to be provision for this in tinytuya, but currently it is implemented as a command-line wizard, and I think will require refactoring of the library itself to make work entirely within HA.

from tuya-local.

ssorgatem avatar ssorgatem commented on June 18, 2024

localtuya manages to do this, somehow?

from tuya-local.

make-all avatar make-all commented on June 18, 2024

localtuya maintains its own fork of pytuya. I don't have the bandwidth to do that, so I rely on tinytuya, which is the most maintained fork of pytuya. tinytuya does support discovery now, but as they do not support asyncio, it is a bit more complex to integrate than I would like, probably it is below #682 on the priority list for major changes.

from tuya-local.

make-all avatar make-all commented on June 18, 2024

Also, if this integration does discovery, it will make it mutually exclusive with localtuya - currently it is possible to use some devices with this, and some with localtuya, provided you do not try to use auto IP address detection. For standard discovery protocols, Home Assistant works around this mutual exclusivity by making the discovery an HA provided service, but since tuya does not use standard protocols, we have to implement it at the integration level which will block all other integrations trying to use the same discovery ports.

from tuya-local.

Saentist avatar Saentist commented on June 18, 2024

Also, if this integration does discovery, it will make it mutually exclusive with localtuya - currently it is possible to use some devices with this, and some with localtuya, provided you do not try to use auto IP address detection. For standard discovery protocols, Home Assistant works around this mutual exclusivity by making the discovery an HA provided service, but since tuya does not use standard protocols, we have to implement it at the integration level which will block all other integrations trying to use the same discovery ports.

Isn't more simple to bind MAC address of devices from ARP table.
Each device have unique MAC address in difference of IP.
If router restart start to give random IP's if not set to bind them to specific one.

from tuya-local.

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.