home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.06k stars 29.73k forks source link

Lost enigma2 entity with may update #117959

Open ThierryBourbon opened 3 months ago

ThierryBourbon commented 3 months ago

The problem

I update my HA and the entity I had: 'media_player.vu_vuduo4k' became unavailable. another media_player 'media_player.unnamed_device' who works has been created. but there are no entities in enigma2 device. I would like to know how to rename 'media_player.unnamed_device' and why it does not appear in device. (I removed any reference to enigma2 in configuration.yaml)

What version of Home Assistant Core has the issue?

core-2024.5.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

enigma2

Link to integration documentation on our website

https://www.home-assistant.io/integrations/enigma2

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

home-assistant[bot] commented 3 months ago

Hey there @autinerd, mind taking a look at this issue as it has been labeled with an integration (enigma2) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `enigma2` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign enigma2` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


enigma2 documentation enigma2 source (message by IssueLinks)

richsimpson commented 3 months ago

I have same issue.

Weird that there are 2 devices and only one decides to behave in this way. The other remains connected using the original setup and name.

Removing the original and turning the device off before a reboot to 'forget' the discovered item doesn't solve it.

karia001 commented 3 months ago

i have the same issue

Update for media_player.10_0_1_12 fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1289, in async_device_update await self.async_update() File "/usr/src/homeassistant/homeassistant/components/enigma2/media_player.py", line 210, in async_update await self._device.update() File "/usr/local/lib/python3.12/site-packages/openwebif/api.py", line 199, in update self.sources = await self.get_bouquet_sources(bouquet=self.source_bouquet) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openwebif/api.py", line 476, in get_bouquet_sources result = await self._call_api(PATH_EPGNOW, {"bRef": bouquet}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openwebif/api.py", line 519, in _call_api raise ConnectionError ConnectionError

autinerd commented 3 months ago

Thanks for reporting the issue(s).

From what I can see as one of my devices shows it as well (with OpenATV 5.4), that the MAC address is null which I don't handle gracefully and so the entity is missing.

Can you please visit http://<your device IP or DNS name>/api/about and check for a line named "mac" and if you see "mac": null,?

ThierryBourbon commented 3 months ago

No "mac": "00:1d:ec:##:##:##

karia001 commented 3 months ago

This is what I see, "mac": "00:1d:ec:12:ad:d8",

karia001 commented 2 months ago

after upgrading to 24.6.0 it is working again

richsimpson commented 2 months ago

My second player is now found. The first is still stuck as unnamed and not able to remove it or rename it.

I have turned the device off, then rebooted HASS but it still finds it, even though not turned on. It is still showing as an unnamed_media_player, then when it is turned on it is controllable under that.

richsimpson commented 2 months ago

2024.6.2 has solved my issue today. Both media players are now in the right place and can be named appropriately.

karia001 commented 2 months ago

mine was lost again when i updated to 2024.6.2

`Logger: homeassistant.helpers.entity Bron: helpers/entity.py:941 Eerst voorgekomen: 11:34:55 (9 gebeurtenissen) Laatst gelogd: 11:36:15

Update for media_player.10_0_1_12 fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1289, in async_device_update await self.async_update() File "/usr/src/homeassistant/homeassistant/components/enigma2/media_player.py", line 210, in async_update await self._device.update() File "/usr/local/lib/python3.12/site-packages/openwebif/api.py", line 199, in update self.sources = await self.get_bouquet_sources(bouquet=self.source_bouquet) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openwebif/api.py", line 476, in get_bouquet_sources result = await self._call_api(PATH_EPGNOW, {"bRef": bouquet}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openwebif/api.py", line 519, in _call_api raise ConnectionError ConnectionError`