rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.82k stars 544 forks source link

Non working with core2021-6.0 and later #500

Open robi59italy opened 3 years ago

robi59italy commented 3 years ago

after switching from 5.5 to 6.0 or 6.3 version, localtuya stopped to work.

Tamsy commented 3 years ago

Coming from 5.5 --> 6.0 --> 6.2: No problems at all with any of those core2021-versions here. LocalTuya works just fine.

robi59italy commented 3 years ago

Coming from 5.5 --> 6.0 --> 6.2: No problems at all with any of those core2021-versions here. LocalTuya works just fine.

Sorry I didn't explain properly I have same smartplugs Teckin SP22 and they were working perfectly through localtuya until 5.5 core version. (I can switch on-off and getting energy consumption).

Now with 6.0 or later version no way to get connected... this is the message I'm getting trying to install core 6.3

Setup failed for localtuya: Integration not found.

robi59italy commented 3 years ago

tryed to reinstall core 6.3 not working - delete localtuya and reinstall through HACS. impossible to find it on configuration->integration-> + (button on bottom right).. no trace of localtuya

Tamsy commented 3 years ago

Just updated to core-2021.6.3 here and Local Tuya is still working flawlessly.

"delete localtuya and reinstall through HACS": How did you delete localtuya? Open HA --> HACS --> Integrations. Scroll down to the bottom: Is Local Tuya listed as installed?

Regarding those Teckin SP22: Do the plugs show up as "connected" with valid local ip-addresses at your Routers/Access Points WiFi-connected-devices page?

However, it seems that this is not a bug with Local Tuya but more likely some problems or a misconfiguration on the user's side.

Therefore I advise you to ask for help/support at the Home Assistant forum. There are quite a few threads covering Local Tuya (but please don't cross post) like i.e.:

Furthermore mind some guidlines when posting problems. Just throwing-in chunks like "after switching from 5.5 to 6.0 or 6.3 version, localtuya stopped to work." is simply not enough for people to help you. Maybe you should read https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371 before you post.

As for posting bug reports here there are guidlines too which you didn't follow at all:

The problem

Environment

Steps to reproduce

1.

Configuration configuration.yaml or config_flow

DP dump

Provide Home Assistant taceback/logs

Additional information

robi59italy commented 3 years ago

Just updated to core-2021.6.3 here and Local Tuya is still working flawlessly.

"delete localtuya and reinstall through HACS": How did you delete localtuya? Open HA --> HACS --> Integrations. Scroll down to the bottom: Is Local Tuya listed as installed?

taking out from integration

Regarding those Teckin SP22: Do the plugs show up as "connected" with valid local ip-addresses at your Routers/Access Points WiFi-connected-devices page?

yes running perfectly and i can see on the network

However, it seems that this is not a bug with Local Tuya but more likely some problems or a misconfiguration on the user's side.

with 5.5 they are working, if I am updating to 6.3 no. I don't understand why it should be a misconfiguration as it is working previously.

Therefore I advise you to ask for help/support at the Home Assistant forum. There are quite a few threads covering Local Tuya (but please don't cross post) like i.e.:

i will do thank

Tamsy commented 3 years ago

Just updated to core-2021.6.3 here and Local Tuya is still working flawlessly. "delete localtuya and reinstall through HACS": How did you delete localtuya? Open HA --> HACS --> Integrations. Scroll down to the bottom: Is Local Tuya listed as installed?

taking out from integration

Doesn't answer the question. What do you mean with "taking out from integration"

However, it seems that this is not a bug with Local Tuya but more likely some problems or a misconfiguration on the user's side.

with 5.5 they are working, if I am updating to 6.3 no. I don't understand why it should be a misconfiguration as it is working previously.

The forum at HA and the issue tracker here would be overflowing with dozens of support requests and bug reports from other users if the culprit is at Local Tuya's side. Obviously your installation is the only one having these kind of problems. You do the math...

Therefore I advise you to ask for help/support at the Home Assistant forum. There are quite a few threads covering Local Tuya (but please don't cross post) like i.e.:

i will do thank

Mind the guidelines for posting and I am sure you'll get plenty of helpful support from the user base.

robi59italy commented 3 years ago

Doesn't answer the question. What do you mean with "taking out from integration"

I means going to configuration->integration-> localtuya card and delete the 4 smartplugs -> restart HA

The forum at HA and the issue tracker here would be overflowing with dozens of support requests and bug reports from other users if the culprit is at Local Tuya's side. Obviously your installation is the only one having these kind of problems. You do the math...

or I'm the only one going to 6.0 or later and complaining... :-)

Tamsy commented 3 years ago

Doesn't answer the question. What do you mean with "taking out from integration"

I means going to configuration->integration-> localtuya card and delete the 4 smartplugs -> restart HA

My original question was:

Is Local Tuya still listed as installed with HACS? (because you wrote: "[...] deleted localtuya and reinstalled through HACS. impossible to find it on configuration->integration-> + [...]")

To check login into HA --> Goto HACS --> Integrations and scroll down to the bottom: Is Local Tuya listed as installed? Have you restarted HA after you reintalled Local Tuya?

Since you know the ip-addresses of the SP22' you can also try to add the devices manually with their ip's through Config Flow.

The forum at HA and the issue tracker here would be overflowing with dozens of support requests and bug reports from other users if the culprit is at Local Tuya's side. Obviously your installation is the only one having these kind of problems. You do the math...

or I'm the only one going to 6.0 or later and complaining... :-)

Unlikely (besides Local Tuya is doing its job just fine on 6.0 up to 6.3 here on 3 different devices).

jeff-h commented 3 years ago

I believe HA 2021.06 introduced a breaking change, which requires all custom integrations' manifest.json to contain a "version" key. See https://community.home-assistant.io/t/2021-6-a-little-bit-of-everything/312796/241

When I checked mine at homeassistant/custom_components/localtuya/manifest.json, it was different to (the current version in this repository) — it was missing the version key.

As soon as I copied this latest manifest.json from this repo into my install and restarted Home Assistant, all my Kogan plugs worked again.

robi59italy commented 3 years ago

I believe HA 2021.06 introduced a breaking change, which requires all custom integrations' manifest.json to contain a "version" key. See https://community.home-assistant.io/t/2021-6-a-little-bit-of-everything/312796/241

When I checked mine at homeassistant/custom_components/localtuya/manifest.json, it was different to (the current version in this repository) — it was missing the version key.

As soon as I copied this latest manifest.json from this repo into my install and restarted Home Assistant, all my Kogan plugs worked again.

Many thanks for this info... very appreciated

robi59italy commented 3 years ago

As soon as I copied this latest manifest.json from this repo into my install and restarted Home Assistant, all my Kogan plugs worked again.

Replacing the only manifest.json didn't solve it.. but I got it when I replaced the full localtuya folder with the latest version from this github

thanks for yr help !