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

Smartlife Integration Stops Working 2024.6.0 Beta #118591

Closed
Kelso-Utah opened this issue Jun 1, 2024 · 11 comments
Closed

Smartlife Integration Stops Working 2024.6.0 Beta #118591

Kelso-Utah opened this issue Jun 1, 2024 · 11 comments

Comments

@Kelso-Utah
Copy link

The problem

After installing 6.0b1, SmartLife Integration Stops Working.
2024.4.x caused the Tuya Integration to stop working correctly causing the light to change to color mode after the brightnesshas changed.
I installed the SmartLife integration as a fix. Now this is broken in 2024.6.x and does not load at all.

What version of Home Assistant Core has the issue?

core-2024.6.0b1

What was the last working version of Home Assistant Core?

core- 2024.5.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Smartlife

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@joostlek
Copy link
Member

joostlek commented Jun 1, 2024

What integration is smartlife?

@Kelso-Utah
Copy link
Author

Kelso-Utah commented Jun 6, 2024

Smartlife is the integration I must use since the Tuya Integration was broken in 2024.4.x. Unless I can find a way to use my lights with 2024.6.x, I probably won't be updating anymore.

See this for more context: #115056

Smartlife Integration found here: https://github.com/tuya/tuya-smart-life

@Sjelle01
Copy link

Sjelle01 commented Jun 6, 2024

Same here, all devices are dead every time I install a 2024.6.x beta version. Reloading the integration does nothing. I need to disable the existing Smartlife Hub, then add a new Smartlife Hub + User Code for it to show working devices again. All devices are Power Plugs with energy measurement, it's a PITA since a loose energy data after every install. Just installed the 2024.6.0 version and the devices are dead again.

EDIT: Works when reverting back to 2024.5.x

@joostlek
Copy link
Member

joostlek commented Jun 6, 2024

But that's a custom integration and we don't do support for custom integrations.

@joostlek joostlek closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
@Kelso-Utah
Copy link
Author

Then the non-custom Tuya Integration that broke in 2024.4.x really needs someone on the team to review the code for lights.py.
Please read this code carefully and understand what we are going through.
328003479-a1495f94-2ef6-4254-a0e5-7f2f84accff5

You may not have been the one to code this incorrectly, but you have the ability and knowledge to fix this issue.
#115056 (comment)

@MarcoEnd
Copy link

MarcoEnd commented Jun 6, 2024

@joostlek According to the information under link https://github.com/tuya/tuya-smart-life issues should be posted under core:
grafik

@joostlek
Copy link
Member

joostlek commented Jun 6, 2024

@MarcoEnd Smartlife has been merged with the normal tuya integration, so you should use that one then

@joostlek
Copy link
Member

joostlek commented Jun 6, 2024

I will tag that issue so the corersponding people are pinged

@Kelso-Utah
Copy link
Author

I will tag that issue so the corresponding people are pinged

Thank you. There are many in the forum I have linked and that's probably only a small percentage that this is affecting. I look forward to the Tuya Color Mode getting fixed.

@jd3073
Copy link

jd3073 commented Jun 9, 2024

Experiencing same as described by other above. Here's copies of syslog:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:184
First occurred: 5:10:53 AM
Last logged: 5:10:53 AM

Detected that custom integration 'smartlife' calls hass.config_entries.async_update_entry from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassconfig_entriesasync_update_entry at custom_components/smartlife/init.py, line 261: self.hass.config_entries.async_update_entry(self.entry, data=data), please report it to the author of the 'smartlife' custom integration

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:184
First occurred: 5:10:53 AM (1 occurrences)
Last logged: 5:10:53 AM

Detected that custom integration 'smartlife' calls hass.config_entries.async_update_entry from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassconfig_entriesasync_update_entry at custom_components/smartlife/init.py, line 261: self.hass.config_entries.async_update_entry(self.entry, data=data), please report it to the author of the 'smartlife' custom integration

@laban85
Copy link

laban85 commented Jun 11, 2024

Stopped working for me as well when i upgraded to 2024.6.1, restoring back to 2024.6.0.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants