There is a bug fix (pending integration) for an issue where some connection drops and fail to recover. I am running the branch with the fix and it is going really well. I suggest you try running that branch (or wait for it to be in the master) before further reporting?
My understanding is that tuya devices can only handle one local connection at a time and that running the smart life app you are making things work
Good Morning. I am new to HA and therefore new to LocalTuya. I spent 8 hours yesterday and finally had some success, I managed to turn a Tuya Light on using the LocalTuya integration BUT I cannot turn it off⊠here is my configuration.yaml:
It works through the Tuya App, it works through the Tuya Integration and if I turn off the internet to the IP I can turn it on with LocalTuya but the toggle in the device flicks back to OFF almost as soon as I turn it on⊠I have an in-wall dimmer I want to use and I doubt I can Tasmotize it so I thought Iâd try this methodology.
also on restart of HA, the device toggle in LocalTuya becomes unresponsive⊠I just noticed that if I turn the light off from the Tuya App the toggle responds againâŠ
see now I donât know where the log is⊠Iâm sorry I hate being a noob⊠Iâve got 20+ years of broad IT experience behind me, but I feel like an idiot right now⊠I canât be THIS hardâŠ
OK⊠so I have success at turning the light on and off⊠In the log it is requesting color_mode⊠I tried 2 and 21, neither of which work⊠it is a normal a19 non-color globe⊠the brand is Feit if that matters
Me again. So I have a Feit In-wall dimmer -switch to work. I donât know jhow to configure the dimmer functions⊠do I assume that I copy the light functions?
These get me me the ability to turn on the Light and switch. They both show that there is a dimming option in the entity. But neither actually dim function in the entity effect the device. I get on/off which is definitely better then where I was the other day but not all the way there :(⊠I have tried a plethora of numbers against the brightness DPS value.
As a foot note⊠I have 2 versions of Home assistant running, one is Hass.Io in a Vm and one is a containerized Hass install. In neither of these can I get the integration wizard method to work, Iâve had to edit the configuration.yaml file so I have not really had an opportunity to look at the expected values for the entities. Where can I find them in the localtuya folder? I am really enjoying playing with this integration and I would love to help at a lower level. I am going to be buying a bunch of stuff frpom Menards today (Motion sensor, door sensor, security camera) and maybe some stuff from Walmart (Merkury Brand) and see if they work differently. I hope my problems are not brand specific! I just remembered something actually in the tuya app when i click on the light I get an error âthe current version does not support the device. Please update the appâ Of course my Tuya App is completely up to dateâŠ
I also just figured out, not sure if anyone else knew this or not⊠the encryption key changes if you re-add a device back into your Tuya AppâŠ
Third thing I noticed, my Feit Dimmer Switch, from inside the Tuya app, actually brings up a Feit screen to manipulate the Dimmer function⊠is that relevant? I cannot now connect to my dimmer anymore after pairing it again to the Tuya app⊠I have changed my configuration.yaml to reflect the new encryption key. I also have an error now in the TinyTuya program:
Traceback (most recent call last):
File â/usr/lib/python3.7/runpy.pyâ, line 193, in _run_module_as_main
âmainâ, mod_spec)
File â/usr/lib/python3.7/runpy.pyâ, line 85, in _run_code
exec(code, run_globals)
File â/home/shane/.local/lib/python3.7/site-packages/tinytuya/main.pyâ, line 44, in
tinytuya.scan(color=color)
File â/home/shane/.local/lib/python3.7/site-packages/tinytuya/init.pyâ, line 1087, in scan
d = deviceScan(True, maxretry, color)
File â/home/shane/.local/lib/python3.7/site-packages/tinytuya/init.pyâ, line 1139, in deviceScan
client.bind(("", UDPPORT))
OSError: [Errno 98] Address already in use
I read that I need to make sure I am logged out of the Tuya app I did that and I shut down my Tuya IoT page so I donât know where i am going wrong⊠It did pull the DeviceIDâs and Encryption Keyâs
HA is also giving me this error:
Logger: homeassistant
Source: runner.py:99
First occurred: 3:05:05 PM (1 occurrences)
Last logged: 3:05:05 PM
Thought Iâd put this into the thread before adding it as a stand alone addon:
Iâve created a HASSOS addon which, with an api id/key, device id and region will query the Tuya API and provide a locally accessible file with all of your device Names, Ids and Keys
I just got sick of having to login to my ubuntu server to run the command.
This is very much a work in progress and currently it will query the API every 5 minutes when the Addon is running.
Iâd love to give this add-on a try. I added the repository, but the Tuyagrab add-on doesnât show up to install.
Seeing this error in the logs:
Canât read json from /data/addons/git/367cd613/addon-tuyagrab/tuyagrab/config.json: Expecting value: line 30 column 10 (char 566)