Home Assistant - Update

Why do my integrations or automations stop working after almost every Home Assistant update? What’s the point of all this if I create an automation and it either stops working or the sensors of the given integration stop working in the automation? I thought I would get a “Home Assistant Connect ZBT-1” to control a smart home with the Zigbee protocol, but I’ll probably give up on this project and return to the Tuya protocol and control on a mobile phone, or I’ll return to fully manual control of my home. I tried to communicate on the CZ Home Assistant forum (https://www.homeassistant-cz.cz/) to understand the HA functions, but unfortunately there are arrogant moderators or admins on this forum who made me look like a “fool” for not understanding the basic functioning of a PC and Home Assistant! I’m disappointed with this project. I apologize for any mistakes, this is translated through a translator.

1 Like

The translation worked perfectly. We can understand you well.

Unfortunately we have no control over that forum. Have you tried asking your questions here?

2 Likes

Isn’t this being discussed in the Home Assistant forum? Can I ask for a link to contact the Home Assistant developer? Thank you.

I used to ask questions on the CZ forum, but I was unregistered from that one, I don’t plan on going there.

Sorry to hear you have this experience. That should definitely not happen. Without trying to deny your troubles, it is not what typically happens for most of us. So I’m curious what causes this for you.

Some more information could help. You speak of the Home Assistant Connect ZBT-1, so I assume your problem is with ZHA entities? Do you have problems with other integrations too, because you say your integration (plural) stop working, but ZHA is only one integration. Are others failing too, if so which integrations also stop? And which updates (from which version to which other) gave you these problems?

1 Like

I have an integrity problem from a user who has an error in his “Weather Station SWS 12500” integration, such as a “typo” and refuses to fix it. The typo problem probably does not exist with the update. I do not understand why this is happening and I do not know how to fix unknown values ​​from the sensors. Furthermore, it concerns the “IP Webcam” integration, which also does not see data and images transmitted via WiFi. Before the Home Assistant update, everything worked correctly.

I thought I would get a “Home Assistant Connect ZBT-1” to control a smart home with the Zigbee protocol, I haven’t used it yet, but I wanted to. But after these problems with HA, I don’t know whether to invest in this system.

Hi Vladislav, I understand that one can get frustrated when a system breaks often and the availability is bad.
I can assure you that HA can be rock-solid and yes now and then things don’t work as they used to because of the fast pace of development.

Regarding your issues: just share them 1 by 1 with the relevant details and you will most likely get the help to solve them.

2 Likes

Personally I do not have this device, but I see there are multiple custom integrations. One that is no longer maintained by the developer, and one that is. But it warns about problems with the firmware of said device. If you use the one that has the big banner saying that it is obsolete, you need to switch to the other integration.

Having said that: With custom integrations, it is up to the developer of that integration to keep things working. Often that person is doing so in their spare time.

The above developer (from the integration that is not obsolete) seems genuinely doing their best to keep it working. But in this case it seems to be the manufacturer of the workstation having problems with their firmware. The github repo explains this in the readme.

So it does not seem to be Home Assistants fault there is instability. Because it is a custom integration though, you should report bugs in Github so the developer is aware. But for that you need to make sure you refer to the right custom integration.

For this, again, more info is needed. If the webcam is in the local network: does it work in the local network? If not, maybe see if the webcam was given a fixed ip address. If not, the camera may be given a new ip adress by the router, and Home Assistant can no longer find it. Again, not something Home Assistant can be blamed for.

Accessing IP camera’s that are on the local network when you are accessing Home Assistant from the internet can be tricky. That is a difficult subject, and may depend on how you exposed HA to the internet too.

And lastly: you mentioned Tuya. Their IOT products are used by many manufacturers, making it hard to tell if they are equal quality. Some are great, some less so. My personal experience with Zigbee tuya is fine, but I do not have very much of them. For wifi products I hear experiences may vary.

I communicated with the developer directly, but at first he wrote that I was annoying him when writing private messages and that he was “on his nerves”, while I asked him politely and was in no hurry, but because I don’t really understand it, he started to behave laxly.

Regarding IP Webcam, this application basically does not return any errors in the log, like the “Weather Station SWS 12500”, so I think there is a bug in HA. But HA does not return errors either, so I don’t know where the bug is.

As for the logs, they are written in ENG and are too long to translate them all into CZ.

Now I also found out that backups from about 4 weeks ago, which used to be automatically saved before updates, are not saved anymore. I would have to go back one month. :frowning:

But before the update everything worked fine, so I think it’s a bug with HA.

It seems your beef is with the developer of the integration. He or she is not affiliated to Home Assistant or Nabu Casa, so please don’t blame either one.

Also respect custom integration developers (and most HA developers) are not paid for anything and do this in their spare time. You cannot demand anything, only ask nicely. They are at no obligation to do anything, they contribute as is, without guarantee. If they don’t want direct contact, then this should be respected.

Home Assistant warns in the log that custom integrations may affect how well Home Assistant works. Most of the time these custom integrations work fine, but there always remains a risk.

I use the IP webcam integration with a camera I built using a Raspberry Pi. That works great. But there are literally thousands of manufacturers building webcams which all may have their quirks. If Home Assistant tries to connect but the camera does not say what is wrong, how is HA to know?

What brand of camera are we talking about? IP camera only says little other than “networked”, so what kind of stream does the camera produce and how it it delivering that stream? Do you have any idea? Is the URL you are putting in working from a browser? What do you experience when you say it is not working?

1 Like

This is an older Asus Zenfone Selfie mobile phone with Android 6, which I no longer use for phone calls and I have IP Webcam running on it. After starting the application, it generates the captured image on the display and also generates connection data. I also have a fixed IP set for the mobile phone and this phone is also connected to the same network. This solution is temporary for now.

Android 6 is 10 years old. There’s no telling if what the app (which is either also old, or make for an os that is 10 years newer) is producing but I think is is too much to ask HA to be compatible with all devices and software made since then. It is hard enough to support all things recent.

Having said that, It still may work regardless. But step one is to see if you can get the video working from a browser on another computer. If that does not work, HA won’t work either. You also did not say what you experience in HA.

Now I got this error:

Logger: custom_components.sws12500
Zdroj: custom_components/sws12500/init.py:133
integrace: Sencor SWS 12500 Weather Station (dokumentace, problémy)
První výskyt: 00:03:59 (1 výskyty)
Naposledy logováno: 00:03:59

“Unable to delete webhook from API! Restart HA before adding integration! If this error is raised while adding sensors or reloading configuration, you can ignore this error”

What does this mean? Is this an integration error of the “Sencor SWS 12500 Weather Station”?

This component is apparently full of typos (I just looked for a problem with GPT and it found other inaccuracies in the codes), which is probably why it doesn’t work after the HA update…

ERROR 1:

Detected blocking call to import_module with args ('custom_components.sws12500',) in /usr/src/homeassistant/homeassistant/loader.py, line 1075: ComponentProtocol, importlib.import_module(self.pkg_path) inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 227, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 707, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 678, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2033, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component component = await integration.async_get_component() File "/usr/src/homeassistant/homeassistant/loader.py", line 1027, in async_get_component comp = self._get_component() File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path) 

ERROR 2:


Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1160, in get_code
  File "<frozen importlib._bootstrap_external>", line 1090, in source_to_code
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/sws12500/__init__.py", line 53
    """Handle incoming data query."""
IndentationError: unexpected indent

ERROR 3:

Setup failed for custom integration 'sws12500': Unable to import component: Exception importing custom_components.sws12500

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1160, in get_code
  File "<frozen importlib._bootstrap_external>", line 1090, in source_to_code
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/sws12500/__init__.py", line 53
    """Handle incoming data query."""
IndentationError: unexpected indent

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1015, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self._get_component, True
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/c

At the same time, the author of the integration claimed that his integration was flawless…

So in the end I deleted the whole HA. I created a new virtual PC and uploaded HA to it, but I ran into a problem and I don’t know how to upload HACS to HA. It’s too complicated for me to upload it manually, I’m not a programmer. I thought I would add HACS as an add-on, like: “upload, install and restart”, but apparently it doesn’t work that way :frowning: So I’ll probably go without HA, at least I’ll save for a Zigbee smart home.

Installing HACS is as easy as clicking a few times: https://hacs.xyz/

1 Like

I’ve already installed it and everything is working so far. I’m afraid of the next HA update, I probably won’t update.

I understand your restraint for installing updates.
Of course you can do that but holding back multiple updates is not a good idea for multiple reasons.

Before updating:

  • wait a few days after a new update has come out/is presented
  • make sure you read the announcement and for sure the breaking changes
  • scan the forum to see whether there are big issues
  • CREATE A BACKUP away from your HA system
  • don’t update everything that is presented immediately
1 Like

Hello. Another HA update and more problems. Automation does whatever it wants. The lights turn on at night and when I left home today, according to the automation, the lights were still on even though I have set them to turn off the lights when leaving the home zone. The lights did turn off, but I went back to the home zone for two minutes and then they turned on again, even though I have set them to turn on when I get home, with the condition that it is night. Who actually does the HA update? I wrote to support today, but I didn’t get a reasonable answer. :frowning:

What do you mean by that?
I did the update on my system, just as many others.
On your system, it’s probably you unless someone else in your home has access to it.

Which support?

Check the traces in in the automation, or the history in HA, to see what has happened at what time and what triggered it.