PlusPlus-ua / ha_tuya_ble

Home Assistant support for Tuya BLE devices
MIT License
142 stars 94 forks source link

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

Open andriuszvirblis opened 1 month ago

andriuszvirblis commented 1 month ago

I have updated as advised here: https://github.com/PlusPlus-ua/ha_tuya_ble/commit/7b8f90e644c6103813df66949ca22fe27566500c But I still get this error: image

AaronIsFab commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Have you applied only the 2024.4 fixes or also the 2024.1 fixes too: https://github.com/PlusPlus-ua/ha_tuya_ble/issues/98#issuecomment-1878008237

andriuszvirblis commented 1 month ago

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

AdrianGarside commented 2 weeks ago

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 commented 2 weeks ago

Fixes described here along with a fork that apparently has all the fixes to work with recent HA versions already in it: https://github.com/PlusPlus-ua/ha_tuya_ble/issues/111

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

ThePirat91 commented 5 days ago

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 commented 5 days ago

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 commented 3 days ago

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 commented 3 days ago

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 commented 3 days ago

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 ?