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
Error after updating to Home Assistant 2024.2.0 update #111
Comments
And here! Logger: homeassistant.config_entries Error occurred loading flow for integration tuya_ble: cannot import name 'CONF_ACCESS_ID' from 'homeassistant.components.tuya.const' (/usr/src/homeassistant/homeassistant/components/tuya/const.py) |
Yeah, I came here to say the same thing |
Same issue here. |
There is a new code for Tuya integration. Some changes made that removed the const "CONF_ACCESS_ID" from: What changes should be made by tuyable is unknown to me... |
Same issue here. |
Guys, commenting "same issue here" isn't really helpful... This is a general issue that caused the integration to stop working. It's the same for everyone |
I have try to install a version of TUYA before 2024.2.0 as custom_componentes but still nos working. I'll keep trying. |
I rolled back the update. I'm currently on 2024.1.6. rather than 2024.2.0 The good news is that my tuya_ble is working again. I realise it's something to do with the fact that the tuya integration now uses a different method to log in. Rather than needing a stupid developer account, they now sync directly to smartlife app, so the login credentials are now changed. https://www.home-assistant.io/blog/2024/02/07/release-20242/#backward-incompatible-changes However, the downside is that tuya_ble isn't maintained and the constants CONF_Access_ID and CONF_Access_Secret are now deprecated. You now need to remove them from the script which is easy, just go through all the .py and remove all instances of them. Now the problem comes I think where they need new login credentials, I have no idea how to see the tuya integration's code and see how it extracts those credentials. Likely once you've identified it, it's copypaste work. |
I was able to fix mine, you can take a look here: |
Good work, I still have problem installing with message: and logs: `Logger: homeassistant.config_entries Error occurred loading flow for integration tuya_ble: cannot import name 'CONF_ACCESS_ID' from 'homeassistant.components.tuya.const' (/usr/src/homeassistant/homeassistant/components/tuya/const.py) |
Yes you almost did it! The next thing you should look on is the CONF_COUNTRY_CODE, which is also removed from tuya/const |
Thank you everyone, especially @ppcsite & @Chreece , your suggestions revived my Fingerbot back from the dead! For Anyone curious what's the fix, this it it:
|
Fantastic work. I have problem as follows: logs: Logger: homeassistant Error doing job: Task exception was never retrieved |
recheck your changes, you haven't done everything as it should... TUYA_COUNTRIES shouldn't exist |
Changes checked, but TUYA_COUNTRIES exists in config flow later in code I think. |
I super appreciate all you awesome folks, my smart lock is working beautifully once again. |
Yep, I have it in 3 places. Maybe someone can post a link to the full file contents for the 3 mentioned above? Copy and replace the entire shebang. |
I have overcome this by removing integration and downloading it completely from: GITHUB REPO, It must have been other changes to other files previously. |
@mimikm what's the best way to use the github repo directly? I find it super annoying to navigate the actual file system to do a git clone. |
@scrampker in hacs in top right corner are three dots. There you can add custom repository. Place link I have attached and add. Then tuya_ble will be available in hacs to add. |
Ah, thanks, I actually didn't notice it was a different project entirely. Though does get a bit messy since it's named exactly the same. Anyhow I'm sure the main issue will get resolved, but I'll give this a go for now. Much appreciated. |
@scrampker main repository is not supported anymore. |
Gotcha, well the repo you listed does work, but despite my lock being specifically listed (ludzroix) all it can do is see if the motor state is on or off (lock/unlock.) No control. Guess I'm back to the drawing board. |
Hello I am trying to add a new device in Tuya BLE but it was asked for : But after typing this 5 data, the error message is :
But this battery is in the cloud (visible under tuya app) I have other battery appears....and in the Tuya BLE that I have added there is many week
|
removed the duplicates from from .const import ( and all works again! SteveW |
Fixed it for me. You're amazing! |
Thanks for the synthesis ikekornikh! |
@mikekornikh |
Any idea who setup this new repo and if it will be maintained going forward? Thanks. |
Hello My proxy bluetooth find new device BLE and it wa registered in to the cloud (with Tuya App) May be I must rolled back the update to 2024.1.6. appaired the new device and then reupdate to 2024.2.0 ?? Thanks for your helps |
@titou4307 |
@JanOstrowka still not working with your repo.... also the ne fingerbot category kg is missing.... |
Sorry, I should have added a disclaimer to the repository. It's a work in progress and unfortunately it doesn't work at the moment |
Hey switching to this fork changed my integration setup error from Just kidding...Thanks for picking this one up and also thanks to the original dev :)👍 |
Has anyone else been getting |
I also have the same issue :( |
Me too... |
See #105 (comment) |
That's what I'm using. |
I managed to solve the "no unconfigured devices found" issue. Somehow the devices got disabled... perhaps HA disabled it after the integration broke. I simply re-enabled it on the UI, now it's working again. |
Description
After updating to the latest Home Assistant version, my Tuya BLE custom integration started throwing an import error on startup. Specifically, there is a failure importing
CONF_ACCESS_ID
fromhomeassistant.components.tuya.const
.Log details
The text was updated successfully, but these errors were encountered: