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

Sadly localtuya will not work with IoT devices what are without internet connection #574

Open
zeminator opened this issue Sep 28, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@zeminator
Copy link

zeminator commented Sep 28, 2021

Environment

  • Localtuya version: v3.2.2
  • Last working localtuya version (if known and relevant): n/a
  • Home Assistant Core version: core-2021.9.6
  • [] Are you using the Home Assistant Tuya Cloud component ?
  • [] Are you using the Tuya App in parallel ?

Steps to reproduce

  1. No internet for IoT devices
  2. Power lost or unplug IoT device (what doesn't have last state or forced power on)
  3. Device will stay unavailable

Configuration configuration.yaml or config_flow

N/A

Additional information

Environment: firewalled tuya devices. No connections to internet at all.
What is working (example): In case smartplug has been started with internet connection, everything is working. Also in case if smartplug powered on with power button, everything will work.

What is not working: Incase there is no internet connection and smartplug has not been started first time from physical button, device will stay unavailable.

So, currently without internet connection. there is two options. start smartplug devices from button. But currently at least with some other machine/device we can use: "tuya-cli set --ip <IP_Address> --key <LOCAL_KEY> --id <DEVICE_ID> --protocol-version 3.3 --dps 1 --set true". That will start and initialize device so that localtuya will see the device and after that device can be managed by it.

Note! HA is in different VLAN than IoT devices. And IoT devices don't have internet connection.

@zeminator zeminator added the bug Something isn't working label Sep 28, 2021
@zeminator zeminator changed the title Sadly localtuya will not work without internet connection Sadly localtuya will not work IoT devices what are without internet connection Sep 28, 2021
@zeminator zeminator changed the title Sadly localtuya will not work IoT devices what are without internet connection Sadly localtuya will not work with IoT devices what are without internet connection Sep 28, 2021
@zeminator
Copy link
Author

zeminator commented Sep 28, 2021

also extra comment. While localtuya says that devices are unavailable. I can do query of the device with "tuya-cli get --ip <IP_Address> --key <LOCAL_KEY> --id <DEVICE_ID> --protocol-version 3.3", and it is working just fine.

@Elendilon
Copy link

This is due to a missing initialization packet required by newer (2019/2020+ ish) devices. I put a PR up at #491 that may fix this - however because the way devices handle this packet, the lack of it, and the way they respond to it varies per manufacturer/firmware it may not cover all device cases.

@shtrom
Copy link

shtrom commented Nov 20, 2021

Dupe of #501 and #445?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants