rospogrigio / localtuya

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

Cannot add device, Tuya Smart Plug (BIMSOC8774) #1303

Open mtaalas opened 1 year ago

mtaalas commented 1 year ago

I'm adding "Tuya Local" from he integration menu, and I get the attached menu.

Instructions tell me to do "The Cloud API configuration" first, then add the device, but as I add integration, it jumps directly to the "add device". Could there be mistake?

If I insert all necessary information (extracted from the Tuya Cloud API and it agrees with Tiny Tuya scan results), but I get an error "Unable to connect to your device with those details.".

I'm able to connect to the device over "Tiny Tuya" python program just fine, and I can see the device at the Tuya Cloud in the project I created. I can read and control the device normally over the Tiny Tua and over the Tuya Smart Life app. It's all fine.

Only the Home Assistant and Tuya Local won't connect to it properly.

What am I missing?

There's only one active connection (one that I'm trying to make from Home Assistant), I've made sure to close all other connections to the plug as per instructions.

If there's more information I can provide (specific logs etc.) I'll happily update this post.

I'm running: Home Assistant 2023.2.5 Supervisor 2023.01.1 Operating System 9.5 Frontend 20230202.0 - latest

Device information from Tiny Tuya:

"name": "EMAX8774 Smart Socket 16A 3500W /Meas.",
"id": "retracted for security",
"key": "retracted",
"mac": "1c:90:ff:etc:etc:etc",
"category": "cz",
"product_name": "EMAX8774 Smart Socket 16A 3500W /Meas.",
"product_id": "retracted",
"biz_type": 18,
"model": "BIMSOC8774",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/ay1572506399941UYk0H/78d3776a1d1689c78f559a9b81a55ea2.jpg",
"uuid": "retracted"

Homeassistant is running on Raspberry Pi 3B+ that's properly attached to the same network as everything else and I have static IP's set up at the DHCP for any devices that so require (Raspberry Pi, Tuya Plug, my computer etc.)

Attached image: 2023-02-26 18_12_24-Settings – Home Assistant

fotis3d commented 1 year ago

@mtaalas you are on the wrong repository. This is Local Tuya and not Tuya Local. They are different. :)

mtaalas commented 1 year ago

@fotis3d dang it! i'm so sorry :D It's very easy to make this mistake it seems... :D

fotis3d commented 1 year ago

@mtaalas yeap it is..... :D

mhenriquezschott commented 1 year ago

guys, in my case I actually using localtuya with a lot of success for most of my tuya devices, but I have problems specifically with 2 simple wifi plugs...they are pretty generic...16amp in terms of features could be the only difference...they both are added into the tuya app and works perfectly with the tuya integration...but no matter waht protocol version they refuse to collaborate..the windows tell me to check the log but can't see anything related to localtuya failid to add or registering anything..

the tuya cloud project list them both as "wifi plug" with standard instructions..one thing that I notice is the weird localkey they have, with a bunch of symbols like: #{'=c<sTVb{-A[R2 ...do you think it can have something to do failing to add the device?, like it can't parse those weird looking localkeys?

can you point me in the right direction to better produce logs to help with the issue or what else to test/report...

I can access to the tuya cloud api in case there is any info about the device I can retrive to help with the issue...

any suggestions?

Thanks!!