Local Tuya - Control Tuya devices locally (Fork from localtuya)

Hi!
It would be fantastic, if “Manage Cloud API account” (reload it) and “reconfigure existing device” would be available via service actions or even better it could periodically check the cloud account API and rebind new keys (if they updated).
E.g. we have power outages sometimes. In some situations the power tries to get back multiple times → it resets the device (tuya switches, lights). I need to add them again to the tuya/smartlife app, then “reconfigure” (reload) cloud API in the integration settings, then reconfigure the device again to activate the new key for each devices.

I set up a second Tuya account with a separate email to add a few more devices.
When I add a second hub with the separate credentials it doesn’t see the newly added devices. Is it possible to have two separate Tuya accounts configured on a single instance of Home assistant?

Bumping this as still looking for assistance if anyone knows how I can just simply update the IP address of the device in the JSON and if so, location of that JSON ? Thanks again

I installed this fork on my home assistant, it works very well, all my devices shows correctly, except my scene buttons that doesn’t send a click event when I click it a second time for a single click, only if I double click or press and then single click it recognizes, but with the tuya cloud integration it sends normally, it also has a rotation button that also has the same issue, if I want an automation to trigger when I rotate clockwise and it has already been rotated clockwise I first need to rotate anti-clockwise then rotate clockwise to trigger the automation.

Unfortunatelly, it does not show robot vacuum properly

I used this fork for a while but it seems like the fan speed has stopped working (on /off and light work ok). Any thoughts on where to start? (Brilliant Smart Fan w Light).

All the original Cloud Tuya devices (the same device btw) are working correctly. There hasn’t been any firmware update (they are fairly dumb in this regards).

My previous LocalTuya setup was through 3.3 protocol (only one working). Again, on off switch works fine, light works fine, but the speeds are not being sent through.

Another interesting thing is that if I leave side by side both fans in the dashboard, one through tuya and one through local-tuya, then when I control the fan speed via cloud one, the other control properly adjusts to the new fan speed, e.g. going from 1 to 5. However, using the local tuua, I’m switching that back let’s say to 2, does nothing. So it seems that the cofig is ok, and it’s getting the latest states from cloud, but can’t control it through local, apart from on/off.

Actually this is how it supposed to works it automatically update the localkey of the devices if they changed.

what do you mean by see newly added devices ? it possible to setup two hubs however each one will recognize the devices linked to the account.

Use events to automate these devices.

Share the device diagnostic of the fan that had issue, maybe it configure issue.

Can anyone assist with pointing me in the right direction to manually adjusting the IP of lights in Local Tuya via JSON editing ? Thanks

Thanks for this, I was having problems with localtuya toggling the power on my dehumidifier every time home assistant restarted, after an update etc. This has sorted the issue.

I'm just using this and setting up my things
is it normal that I need to scan scan login more or less every time I use this to add a new device? I add a device and then I come back one hour later I have to scan again

and I'm trying to add some smart plugs how am I supposed to know which type it is?
and how can I try different types without deleting and adding again which takes about four or 5 minutes each time

@aussie1497 If you had all those devices installed on the original Local Tuya, they should automatically transfer over, when following the above steps.

Yes its normal. Its most likely how Tuya works, and I would like them to keep it that way. Their security codes aren't really that secure since they are really simple, and qr scan codes do not make it better, so the short login time helps reduce that security risk.

Also are you sure you are using localtuya (this fork discussion) and not tuya-local? The last I checked this localtuya fork doesn't use QR code login. localtuya does.

Based on your given screenshot you are using tuya-local, not localtuya or the fork on this thread. They are two totally different, separate integrations that use different approaches to make tuya devices work locally in HA. You should direct your questions there:

sorry I got confused i'm actually using both and I'm not sure what to do because not one integration can do everything

yes this one asked me for a QR code every now and then as well

I also want to ask how do I know if these values are correct for example for a light bulb that has colour

do I just assume it has somehow detected the correct values for the correct fields

we've been looking at the options I wouldn't really know

@aussie1497 Tuya Developer Platform >Cloud >API Explorer

This will give you the best idea of what the device capabilities are and what data point (dp_id) it belongs to. >Device Control >Query Properties

How can I do custom scenes? it would be great to add a scene builder for lights.

also when are you going to create a new release? @umu_ugg