2024.4: Organize all the things!

I started over (from backup) with 2024.3.3 and worked fine the second time.
Thanks a lot for helping anyway! :+1:

Same for me, additionally, one of my presence detectors isnā€™t working anymore.

Sorry. Iā€™m traveling with only my phone, no PC, makes grabbing logs klugy. I reinstalled to get the logs.

Logger: homeassistant.setup
Source: setup.py:316
First occurred: 15:57:27 (1 occurrences)
Last logged: 15:57:27

Setup failed for custom integration 'vantage': Unable to import component: cannot import name 'Entity' from 'homeassistant.components.group' (/usr/src/homeassistant/homeassistant/components/group/__init__.py)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 979, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/vantage/__init__.py", line 30, in <module>
    from .entity import async_cleanup_entities
  File "/config/custom_components/vantage/entity.py", line 16, in <module>
    from homeassistant.components.group import Entity
ImportError: cannot import name 'Entity' from 'homeassistant.components.group' (/usr/src/homeassistant/homeassistant/components/group/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 316, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 997, in async_get_component
    self._component_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 989, in async_get_component
    comp = self._get_component()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/vantage/__init__.py", line 30, in <module>
    from .entity import async_cleanup_entities
  File "/config/custom_components/vantage/entity.py", line 16, in <module>
    from homeassistant.components.group import Entity
ImportError: cannot import name 'Entity' from 'homeassistant.components.group' (/usr/src/homeassistant/homeassistant/components/group/__init__.py)


Here are the logs

Logger: homeassistant.setup
Source: setup.py:316
First occurred: 15:57:27 (1 occurrences)
Last logged: 15:57:27

Setup failed for custom integration 'vantage': Unable to import component: cannot import name 'Entity' from 'homeassistant.components.group' (/usr/src/homeassistant/homeassistant/components/group/__init__.py)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 979, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/vantage/__init__.py", line 30, in <module>
    from .entity import async_cleanup_entities
  File "/config/custom_components/vantage/entity.py", line 16, in <module>
    from homeassistant.components.group import Entity
ImportError: cannot import name 'Entity' from 'homeassistant.components.group' (/usr/src/homeassistant/homeassistant/components/group/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 316, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 997, in async_get_component
    self._component_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 989, in async_get_component
    comp = self._get_component()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/vantage/__init__.py", line 30, in <module>
    from .entity import async_cleanup_entities
  File "/config/custom_components/vantage/entity.py", line 16, in <module>
    from homeassistant.components.group import Entity
ImportError: cannot import name 'Entity' from 'homeassistant.components.group' (/usr/src/homeassistant/homeassistant/components/group/__init__.py)

Iā€™ve raised an issue on GitHub for this.

Hi. Yes, Iā€™ve seen this as well. Actually started happening with the previous release, 2024.03, same as you describe, the secondary sensors present, the main not. I think the main appears once it delivers updated values. A reload of the integration also seems to solve the issue.

Issue looged some weeks ago #112848 here, serveral peple experiancing same, some idea of cause but no resolution in sight at present.

No it definitely isnā€™t just that. Every time Iā€™m on a new network it defaults to overview. Also why canā€™t we change the default for users, for ex my kids only need a limited dashboard. Every once in a while I have to take their devices an set the default again. Also this canā€™t be done if youā€™re not an admin, so I first need to elevate them, change dashboard then remove admin access. Doing this for a few devices and users becomes really tedious.

Yep, there is a feature request that has been going for years relating to proper user control, permissions etc. No idea why it hasnā€™t been dealt with yet.

I would think that setting the default dashboard for each user should fall under this same request for user control.

NO Labels are not packages. I want Package support in the UI. Currently I canā€™t even edit my stuff in the UI, because I use Packages in my configuration. Additionally, if we had packages, I could select a package and all the components would be shown (automations, scenes, scripts, helpers, user defined sensors, etc.) all on the same page.

2 Likes

Using Labels you would technically be able to do this. I also use Packages and am considering moving my code across to the UI. By creating a Label for each Package I could do what you suggest, to put up all related items.

Packages are not only about categorizing.
Means - can be replaced by labels only in some rather limited sense.

They are about ā€˜organisingā€™, which is what the new ā€˜labels & categoriesā€™ are also for.

Same, see no reason to argue about it
Can you move ā€œlabeled stuffā€ to another HA setup?
Can you disable whole ā€œlabeled stuffā€ & reenable it?
Guess you are missing what packages can be used for.

Oh the very first 3 things I tried out donā€™t work! I hoped with the reorganizing this would also work.

  1. When searching, the string needs to be exact. To the point where I search 2 words, and it does not list everything that contains these 2 words, they must be one after an other. This really sucks, as I donā€™t remember the name exact enough.

Example: ā€œAnnounce if somone gets homeā€. I canā€™t search for announce home

Also some sort of lazy searching would be nice, if I make a small spelling mistake.

  1. I canā€™t shift-click to select a range of checkboxes. I have to click and click and clickā€¦

  2. I canā€™t drag and drop something to a label or category (like we drag a song into a playlist)

1 Like

Looks like there may be an issue with the utility meter:

3 Likes

I get your point on disabling etc as I do that myself, so itā€™s not lost on me.

Moving things to another HA setupā€¦ Sure, you could hit ā€˜edit in YAMLā€™ for each thing but yes, it would be tedious and nowhere near as handy as copying an entire Package file.

With the push for UI based HA I donā€™t think we will ever get what we originally wanted with regards to Packages in the UI.

1 Like

Sorry, I do not understand what you wrote. Letā€™s stay with own opinions.

Iā€™m confused on how to best make use of naming conventions and uses of labels, categories, areas, and floors. Is there a guide yet?

The best I can offer is to watch the release party video if you havenā€™t already. People are all going to have their own ideas of what is considered ā€˜best practiceā€™.

1 Like

Thank you so much Bram - I totally overlooked that there were checkboxes against the labels in the ā€˜Add Labelā€™ dropdown

Thanks too to boheme61 for clarifying