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
73.66k stars 30.8k forks source link

ADS Cover Entities Unavailable After Latest Update #129526

Open webDDMS opened 2 weeks ago

webDDMS commented 2 weeks ago

The problem

After updating to the latest version of HAC, all entities with the identifier "cover".abc are no longer available within the system.

Any attempt to access or interact with these cover.abc entities results in an error message indicating that these entities are no longer provided by ADS. This critical issue (P1) affects both user experience and the reliability of core functionalities that were stable and fully operational prior to this version.

What version of Home Assistant Core has the issue?

2024.10.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

No response

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?

2024-10-30 20:28:52.176 ERROR (MainThread) [homeassistant.components.cover] Error while setting up ads platform for cover

Additional information

Thank you for your attention to this matter. Let us know if more information is needed to facilitate troubleshooting.

home-assistant[bot] commented 2 weeks ago

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

Code owner commands Code owners of `ads` 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 ads` 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)


ads documentation ads source (message by IssueLinks)

Manni666 commented 1 week ago

Hi @all

same problem here.

ADS Cover ist not available.

All other ADS Sensors like Binary Sensor, INT, UINT are working well.

Core 2024.10.4 Supervisor 2024.10.3 Operating System 13.2 Frontend 20241002.4

mrpasztoradam commented 1 week ago

Hi all! I took a look at it, but could not reproduce the issue. My system works as intended.

Core 2024.10.4 Supervisor 2024.10.3 Operating System 13.2 Frontend 20241002.4

Could you tell me more information maybe?

Manni666 commented 1 week ago

I found this in the protokol:

Logger: homeassistant.components.cover Quelle: helpers/entity_platform.py:361 Integration: Abdeckung (Dokumentation, Probleme) Erstmals aufgetreten: 3. November 2024 um 23:27:01 (14 Vorkommnisse) Zuletzt protokolliert: 3. November 2024 um 23:27:02

Error while setting up ads platform for cover Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform await asyncio.shield(awaitable) 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/components/ads/cover.py", line 61, in setup_platform ads_var_is_closed: str = config[CONF_ADS_VAR]


KeyError: 'adsvar'
WischAufPferd commented 1 week ago

Hello everybody, my Homeassistant returns the exact same contents in the debug log as Manni666's:

Logger: homeassistant.components.cover Source: helpers/entity_platform.py:361 Integration: Cover (Dokumentation, Probleme) Erstmals aufgetreten: 14:19:44 (1 Vorkommnisse) Zuletzt protokolliert: 14:19:44 Error while setting up ads platform for cover

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
    await asyncio.shield(awaitable)
  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/components/ads/cover.py", line 61, in setup_platform
    ads_var_is_closed: str = config[CONF_ADS_VAR]
                             ~~~~~~^^^^^^^^^^^^^^
KeyError: 'adsvar'

The difference in my case is, that this is my very first cover I'm setting up via ADS. Instead of a missing connection between existing cover entities and my PLC, the integration doesn't create the cover entity in the first place (but if it would there propably wouldn't be a connection either). The usual behaviour of the integration would be, no matter the device type, to create an entity, regardless of an existing connection to the PLC or not.

My system is running HAOS HA OS: 13.2 HA Core: tried both 2024.10.3 and 2024.10.4 HA Supervisor: 2024.10.3

PLyjo commented 4 days ago

Hello, Same problem. Cover doesn't work. Other like sensors, inputs working fine.
Last working version is core 2024.9.3 - all versions after core 2024.10 have this issue.

Core 2024.11.1 Supervisor 2024.11.2 Operating System 13.2 Interfejs użytkownika 20241106.2

The same error:

`Rejestrator: homeassistant.components.cover Źródło: helpers/entity_platform.py:365 integracja: Roleta (dokumentacja, Problemy) Pierwsze zdarzenie: 18:21:03 (16 zdarzenia) Ostatnio zalogowany: 18:21:03

Error while setting up ads platform for cover Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform await asyncio.shield(awaitable) 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/components/ads/cover.py", line 61, in setup_platform ads_var_is_closed: str = config[CONF_ADS_VAR]


KeyError: 'adsvar'`
mrpasztoradam commented 3 days ago

Could you please share the YAML entry where you set up the cover entity?

WischAufPferd commented 2 days ago

oh lordy. Thanks for that. Turns out i had a typo in my yaml; wrote asdvar instead of adsvar The corresponding entity was created and I have a connection now. thank you @mrpasztoradam anyway, here's my yaml, maybe it helps somebody:

cover:
  - platform: ads
    adsvar: PRG_2_OG.fb_5J1_Kind1_Roll.bStateHA
    adsvar_position: PRG_2_OG.fb_5J1_Kind1_Roll.uPosiHA
    adsvar_set_position: fb_5J1_Kind1_Roll.uSetWinkelHA
    adsvar_open: PRG_2_OG.fb_5J1_Kind1_Roll.fbCtrl.bUp
    adsvar_close: PRG_2_OG.fb_5J1_Kind1_Roll.fbCtrl.bDown
    adsvar_stop: PRG_2_OG.fb_5J1_Kind1_Roll.fbCtrl.bStop
    device_class: blind
    name: 2.5J1