home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.05k stars 29.71k forks source link

Tuya integration doesn't work with Resun Aquarium devices. When scanning the code with the android app, it says "Please use the designated APP to scan the code to log in #120619

Open cgoudie opened 2 months ago

cgoudie commented 2 months ago

The problem

It looks like Resun app is a clone of the Tuya and Smart App, but they have the code scanning isolated somehow. I entered the code as described from the same place in the app, scanned the code, and got this error message. unnamed

I'm guessing something needs to be added into the barcode to let it operate with the Resun app?

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

unknown

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

No response

Diagnostics information

The device is even detected as a Tuya app by haas

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

https://play.google.com/store/apps/details?id=resun.com&hl=en_US&pli=1

FilipeOS commented 2 months ago

me too, trying to add smart life qr

miguelalonso commented 2 months ago

The same happens to me, tuya authentication fails in HA. It happens afther the las HA update.

FilipeOS commented 2 months ago

I got it working. I added the kettle in tuya rather smart life app. Then open HA in desktop and starting setup. Then I scan qr with tuya app. All work fine

cgoudie commented 2 months ago

I got it working. I added the kettle in tuy

I thought about this very thing, but in the tuya app, there's no aquarium feeder, so I can't set it up there.

FilipeOS commented 2 months ago

I got it working. I added the kettle in tuy

I thought about this very thing, but in the tuya app, there's no aquarium feeder, so I can't set it up there.

Same thing, but I added in smart life first and then it was discovering in the tuya when set to reset...

cgoudie commented 2 months ago

https://github.com/home-assistant/core/blob/dev/homeassistant/components/tuya/config_flow.py#L112

data=f"tuyaSmart--qrLogin?token={self.__qr_code}",

I'm guessing we need the ability to configure that tuyaSmart string at the beginning. I might hack it and see if it lets me login when I put in resun.

home-assistant[bot] commented 1 month ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tuya` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

michaelcadilhac commented 3 weeks ago

Same thing with the Sylvania app (had to download an old version, and invert colors for the QR code to be detected).

drey-47 commented 2 weeks ago

2024.8.2 on HAOS I'm getting the same "designated APP" error when using the 2.1.1(international) version of the SmartLife app on android 14

Screenshot (Aug 22, 2024 10_37_17 AM)

I was able to move a Cree light from the SmartLife app, to the Tuya App and create a Tuya integration. But I'm stuck not being able to add my fujieco mini split ac to either the Tuya App or the smartlife intergration.

michaelcadilhac commented 2 weeks ago

2024.8.2 on HAOS I'm getting the same "designated APP" error when using the 2.1.1(international) version of the SmartLife app on android 14

FWIW, I resorted to jailbreaking an Android, and using Frida to spy on the Sylvania app and get the local keys, then added that to a LocalTuya instance.