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

After upgrade to the version not work selectors and switch #112

Closed
userosos opened this issue Jan 15, 2024 · 22 comments
Closed

After upgrade to the version not work selectors and switch #112

userosos opened this issue Jan 15, 2024 · 22 comments
Labels
bug Something isn't working

Comments

@userosos
Copy link

userosos commented Jan 15, 2024

Hi! After upgrade to last version.
Failed to call for service switch/turn_off. Task cannot await on itself: <Task pending name='Task-2752' coro=<TuyaDevice._make_connection() running at /config/custom_components/localtuya/common.py:307> cb=[set.remove(), Task.task_wakeup()]>

Failed to call for service select/select_option. Task cannot await on itself: <Task pending name='Task-2752' coro=<TuyaDevice._make_connection() running at /config/custom_components/localtuya/common.py:307> cb=[set.remove(), Task.task_wakeup()]>

home-assistant_localtuya_2024-01-15T17-37-01.286Z.log

localtuya-730e9e9e1a0f1b29f9fd4e07c4239a9e-Air Pulifier XJ-3900A-823c3e6b3c690278157f59e374998ffe.json(1).txt

home-assistant_localtuya_2024-01-15T17-54-48.787Z.log

Clearly define how to reproduce the issue.
-->

  1. Upgrade to last version
  2. Use switches or selectors
    3.Can see the error in the web browser (pop up window) and all the switch and all selectors not work
@userosos userosos added the bug Something isn't working label Jan 15, 2024
@xZetsubou
Copy link
Owner

xZetsubou commented Jan 15, 2024

Can you try to re-configure your device and disable uncheck "restore the last value" for the switch id "1"

image

@userosos
Copy link
Author

userosos commented Jan 16, 2024

I re-configure all devices and unchecked "restore the last value". Not helped i think.
home-assistant_localtuya_2024-01-16T05-02-16.475Z.log
Sometimes it was work ok but now it broken again.

@xZetsubou
Copy link
Owner

Can you install "master" branch go HACS -> Local Tuya -> re-download -> choose "master" version.

@userosos
Copy link
Author

It helped me.

@xZetsubou
Copy link
Owner

Glad it works.
If new release comes out update to it it's not ideal to stay on "master" version :)

@userosos
Copy link
Author

Glad it works.
If new release comes out update to it it's not ideal to stay on "master" version :)

The problem was back.

@xZetsubou
Copy link
Owner

can you post the logs maybe it's different issue now

@userosos
Copy link
Author

userosos commented Jan 19, 2024

can you post the logs maybe it's different issue now

Now it works. I don't understend what happend. I continue to observe

@lluisd
Copy link

lluisd commented Jan 20, 2024

I have the same problem, my socket with protocol 3.5 doesn't work anymore

@xZetsubou
Copy link
Owner

I have the same problem, my socket with protocol 3.5 doesn't work anymore

Have you tried this solution #112 (comment) ? Because this issue has been resolved in master unless you have different one.

@userosos
Copy link
Author

I have the same problem, my socket with protocol 3.5 doesn't work anymore

Try this, for a while it helps for a while. Everything is still working for me for now.

Can you install "master" branch go HACS -> Local Tuya -> re-download -> choose "master" version.

@yabdali
Copy link

yabdali commented Jan 23, 2024

Same here, when I choose the master it reverts back to the latest version.
image

@phrak
Copy link

phrak commented Jan 29, 2024

Same here, when I choose the master it reverts back to the latest version.

You need to select the 'Master', then wait a few seconds for the UI to catch up before you click download.

@yabdali
Copy link

yabdali commented Jan 30, 2024

Same here, when I choose the master it reverts back to the latest version.

You need to select the 'Master', then wait a few seconds for the UI to catch up before you click download.
Still doesn't work, video of the issue below.

Recording.2024-01-30.091033.mp4

@yabdali
Copy link

yabdali commented Jan 30, 2024

Same here, when I choose the master it reverts back to the latest version.

You need to select the 'Master', then wait a few seconds for the UI to catch up before you click download.
Still doesn't work, video of the issue below.

Recording.2024-01-30.091033.mp4

Hi,
I am still facing this issue. Have no idea whats wrong! I even tried just to the download the 3.2.4 again and check if I would be able to download the master but the problem still there. Appreciate your help. Thanks

@phrak
Copy link

phrak commented Jan 30, 2024

Still doesn't work, video of the issue below.

Recording.2024-01-30.091033.mp4

That's odd behaviour.

Are your Home Assistant and HACS versions up to date?
Can you select any other version from the list?

Otherwise,
Can you manually download and install the Master release to get around the problem in this instance?

@yabdali
Copy link

yabdali commented Jan 30, 2024

Are your Home Assistant and HACS versions up to date? Can you select any other version from the list?

Otherwise, Can you manually download and install the Master release to get around the problem in this instance?

Yes, my HA/HACS are up to date, I don't have any pending updates and I restarted HA few times but the problem still there.
When I try to select any version, it goes back to the latest one. I tried to redownload the latest one again and restart but the same result.
Regarding downloading the master release manually, should I just copy and paste the files (overwrite)?

@xZetsubou
Copy link
Owner

xZetsubou commented Jan 30, 2024

Regarding downloading the master release manually, should I just copy and paste the files (overwrite)?

Yes, You can download master manually and copy the custom_components folder into you HA config folder

@xZetsubou xZetsubou added the master/next-release Fixed in master branch, Will be ready in the next release label Jan 31, 2024
@yabdali
Copy link

yabdali commented Jan 31, 2024

Regarding downloading the master release manually, should I just copy and paste the files (overwrite)?

Yes, You can download master manually and copy the custom_components folder into you HA config folder

Should I delete the existing folder or its ok to replace/overwrite?

@xZetsubou
Copy link
Owner

xZetsubou commented Jan 31, 2024

Should I delete the existing folder or its ok to replace/overwrite

Replacing will works fine.

@sibowler
Copy link

I also had this issue - but had just come across from the base localtuya install, so assumed it was a migration issue, so tried removing and re-configuring devices (which didn't change anything). Confirming that switching to master fixed it.

Copy link

github-actions bot commented Feb 3, 2024

This issue was closed because it was resolved on the release: 3.2.4.1

@github-actions github-actions bot added stale and removed master/next-release Fixed in master branch, Will be ready in the next release stale labels Feb 3, 2024
@github-actions github-actions bot closed this as completed Feb 3, 2024
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

6 participants