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

Not working: "requirements": ["tuya-iot-py-sdk==0.6.6", "pycountry>23.0.0"], #122

Open
andriuszvirblis opened this issue Apr 11, 2024 · 11 comments

Comments

@andriuszvirblis
Copy link

I have updated as advised here: 7b8f90e
But I still get this error:
image

@AaronIsFab
Copy link

Invalid handler was the January issue, not the recent 2024.4 one? Are you running base repo with that single change or Markusg etc?

@andriuszvirblis
Copy link
Author

Please clarify your question "if I am runing basse repo" what do you mean ? The change was that only as per Markusg.
Just for refference my tuya blue manifest code is as this:
{
"domain": "tuya_ble",
"name": "Tuya BLE",
"bluetooth": [
{
"connectable": true,
"service_data_uuid": "0000a201-0000-1000-8000-00805f9b34fb"
}
],
"codeowners": ["@PlusPlus-ua"],
"config_flow": true,
"dependencies": ["bluetooth_adapters", "tuya"],
"documentation": "https://www.home-assistant.io/integrations/tuya_ble",
"requirements": ["tuya-iot-py-sdk==0.6.6", "pycountry>23.0.0"],
"iot_class": "local_push",
"version": "0.1.8"
}

@AaronIsFab
Copy link

Have you applied only the 2024.4 fixes or also the 2024.1 fixes too:
#98 (comment)

@andriuszvirblis
Copy link
Author

I have aplied it now (after your comment), but still the same error.

@AdrianGarside
Copy link

The error being thrown now is:
ImportError: cannot import name 'CONF_ACCESS_ID' from 'homeassistant.components.tuya.const' (/usr/src/homeassistant/homeassistant/components/tuya/const.py)

Which is not removed by the other fix.

@AdrianGarside
Copy link

Fixes described here along with a fork that apparently has all the fixes to work with recent HA versions already in it: #111

It got it running for me but it just tells me 'No unconfigured devices found.'.

@ThePirat91
Copy link

Fixes described here along with a fork that apparently has all the fixes to work with recent HA versions already in it: #111

It got it running for me but it just tells me 'No unconfigured devices found.'.

Me too, same error even with another working (in terms of custom component installation) fork (markusg1234's one).

To your knowledge, in order to be seen by this integration, the devices to be added do not have to be paired with any gw/app (thus losing the ability to use the original app), or is it not essential?
I know that the device id and key are needed, so at least once they have to be seen in the Tuya Cloud, but after retrieving this info, is it necessary to unpair the devices to be added?
Thanks

@AdrianGarside
Copy link

I switched to the Tuya Local integration. Not to be confused with the Local Tuya integration. It’s working great and has a yaml based way to add support for new devices. I’ve been able to add all my Tuya devices with full functionality.

@ThePirat91
Copy link

I switched to the Tuya Local integration. Not to be confused with the Local Tuya integration. It’s working great and has a yaml based way to add support for new devices. I’ve been able to add all my Tuya devices with full functionality.

Thanks for your feedback.
Tuya Local is compatible/usable also with Tuya BLE devices, or with wifi-based ones only?

@AdrianGarside
Copy link

AdrianGarside commented May 14, 2024

Just Wi-Fi. I’m successfully using it with bluetooth Tuya devices that are also linked via a Tuya gateway. But it doesn’t support connecting to them directly via Bluetooth.

@andriuszvirblis
Copy link
Author

andriuszvirblis commented May 14, 2024

I’m successfully using it with bluetooth Tuya devices that are also linked via a Tuya gateway. But it doesn’t support connecting to them directly via Bluetooth.

Can you explain how you add those Bluetooth tuya devices via local tuya integration ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants