streamdeck-homeassistant icon indicating copy to clipboard operation
streamdeck-homeassistant copied to clipboard

Plugin cant pull data from HA with new version

Open sylv3rblade opened this issue 8 months ago • 65 comments

on OSX, version 3.6.3.51 cant retrieve the status of entities

I can still toggle switches but

  • entities that just pull data from home assistant just falls back to the default icon
  • the custom icon entity that relies on whether the switch is off or not doesnt reflect any changes (but button presses mapped an action in HA still works)

on 3.6.3.51 Image

on 3.5.2 Image

lmk how i can provide more info. I checked on my windows machine and it's not an issue there

sylv3rblade avatar Apr 18 '25 12:04 sylv3rblade

I posted on another post with this same issue, you can provide logs from HA itself from System/Logs and you should be able to find something similar to this:

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:315 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 10:10:32 AM (13 occurrences) Last logged: 4:29:28 PM

[547374086416] Error handling message: Entity ID button.button.gonzo_start_custom_app is an invalid entity ID for dictionary value @ data['entity_ids']. Got ['button.button.gonzo_start_custom_app', 'switch.switch.turn_on_office_cooling', 'button.button.gonzo_speed_up_custom_app', 'button.button.gonzo_speed_up_rage_custom_app', 'button.button.gonzo_speed_up_shoot_custom_app', 'button.button.gonzo_speed_up_custom_app_stop'] (invalid_format) Natty from 192.168.1.194 [547216929504] Error handling message: Entity ID button.button.gonzo_start_custom_app is an invalid entity ID for dictionary value @ data['entity_ids']. Got ['button.button.gonzo_start_custom_app', 'switch.switch.turn_on_office_cooling', 'button.button.gonzo_speed_up_custom_app', 'button.button.gonzo_speed_up_rage_custom_app', 'button.button.gonzo_speed_up_shoot_custom_app', 'button.button.gonzo_speed_up_custom_app_stop'] (invalid_format) Natty from 192.168.1.194 [547216929504] Error handling message: not a valid value for dictionary value @ data['target']['entity_id']. Got 'switch.switch.turn_on_office_cooling' (invalid_format) Natty from 192.168.1.194 [547210057264] Error handling message: Entity ID camera.camera.backdoor is an invalid entity ID for dictionary value @ data['entity_ids']. Got ['camera.camera.backdoor', 'input_boolean.input_boolean.watch_dog', 'input_boolean.input_boolean.khaleesi_s_lamp', 'input_boolean.input_boolean.nerys_lamp'] (invalid_format) Natty from 192.168.1.194 [547210057264] Error handling message: not a valid value for dictionary value @ data['target']['entity_id']. Got 'camera.button.gonzo_puppywatch' (invalid_format) Natty from 192.168.1.194

nthulke avatar Apr 18 '25 12:04 nthulke

Looks like the domain is somehow duplicated in the entity IDs. switch.switch.kitchen_light should be switch.kitchen_light.

Next week, I will have time to take a closer look at the current issues.

cgiesche avatar Apr 18 '25 13:04 cgiesche

Could not connect to server ....

EisernUnion avatar Apr 18 '25 16:04 EisernUnion

I am having a similar issue on HA 2025.4.2, buttons "entity (generic)" do not work (Keypad actions - "short press") nor do they show their state.

bawitdaba avatar Apr 18 '25 19:04 bawitdaba

Same for me on 2025.4.2.

ahrens26 avatar Apr 18 '25 23:04 ahrens26

Could not connect to server ....

Mines connecting to the server, since the logs show the API is connecting

nthulke avatar Apr 19 '25 00:04 nthulke

Having the same issue, buttons still work, but not showing the entity state.

TonyMontuna avatar Apr 19 '25 00:04 TonyMontuna

Looks like the domain is somehow duplicated in the entity IDs. switch.switch.kitchen_light should be switch.kitchen_light.

Next week, I will have time to take a closer look at the current issues.

Thanks!

nthulke avatar Apr 19 '25 05:04 nthulke

Having the same issues on Windows 11, if you revert to the old version it works fine. I am the one who tried to push the Elgato marketplace version to the newest on Github but soon had to revert.

Mibix avatar Apr 19 '25 11:04 Mibix

yes, went back to the sep 2024 version as well ..... bad it remains unfixed until 'next week', but it works with the old

EisernUnion avatar Apr 19 '25 13:04 EisernUnion

I am using the current version for a long time now and had no problems so far. I am curious what the problem is. Do you have problems with newly added entities or only with existing ones? or both?

cgiesche avatar Apr 19 '25 13:04 cgiesche

I encountered the issue with existing entities, in my case zigbee smart plugs where using their power attributes

sylv3rblade avatar Apr 19 '25 17:04 sylv3rblade

Same issue, any solutions?

MrPresident2 avatar Apr 19 '25 18:04 MrPresident2

yes, went back to the sep 2024 version as well ..... bad it remains unfixed until 'next week', but it works with the old

I rolled back to 3.5.2 and it did not work for me.

I got this error:

Image

I tried switching to ws:// and that did not work either.

On the current release when I change it to ws:// I get Unknown Error

Image

bawitdaba avatar Apr 19 '25 19:04 bawitdaba

Having the same issues. I'm assuming there's nothing for me to do right?

For me nothing works, all icons are like @sylv3rblade post; however, nothing else works... seems the auth is not working/connecting at all for me

AlxSZP avatar Apr 19 '25 23:04 AlxSZP

I'm also running into this issue. The plugin no longer does anything since it can't connect.

cherryontopknife avatar Apr 20 '25 15:04 cherryontopknife

How can we go back to the old version, I am having a lot of problems with this version. Can someone who has been successful explain? Also, do I need to take a backup? Which files should I take so that I don't lose the buttons inside?

yurtalan92 avatar Apr 20 '25 16:04 yurtalan92

+1 for this issue. All of my custom buttons were wiped and it's been replaced by the logo, even with no logo selected in settings. All my entity states on the bottom are gone as well.

edit: reverting to 3.5.2 fixed the issue, so something broke

edit2: this is for old buttons and the same for new.

amphoterism avatar Apr 20 '25 16:04 amphoterism

Looks like the domain is somehow duplicated in the entity IDs. switch.switch.kitchen_light should be switch.kitchen_light.

Next week, I will have time to take a closer look at the current issues.

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:315 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 9:36:24 AM (46 occurrences) Last logged: 10:15:26 AM

[139688367177248] Error handling message: Entity ID fan.fan.tower_fan is an invalid entity ID for dictionary value @ data['entity_ids']. Got ['fan.fan.tower_fan', 'switch.switch.under_desk_fan', 'fan.under_desk_fan', 'light.nightstand_light'] (invalid_format) Nick from 192.168.1.3 [139688367170336] Error handling message: Entity ID fan.fan.tower_fan is an invalid entity ID for dictionary value @ data['entity_ids']. Got ['fan.fan.tower_fan', 'switch.switch.under_desk_fan', 'fan.under_desk_fan', 'light.nightstand_light'] (invalid_format) Nick from 192.168.1.3 [139688367171344] Error handling message: Entity ID fan.fan.tower_fan is an invalid entity ID for dictionary value @ data['entity_ids']. Got ['fan.fan.tower_fan', 'switch.switch.under_desk_fan', 'fan.under_desk_fan', 'light.nightstand_light'] (invalid_format) Nick from 192.168.1.3 [139688331584720] Error handling message: Template rendered invalid entity IDs: ['fan.fan.tower_fan'] (home_assistant_error) Nick from 192.168.1.3 (Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.3 Chrome/118.0.5993.220 Safari/537.36) [139688331584720] Error handling message: Template rendered invalid entity IDs: ['switch.switch.under_desk_fan'] (home_assistant_error) Nick from 192.168.1.3 (Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.3 Chrome/118.0.5993.220 Safari/537.36)

it's also duplicating fan as well

amphoterism avatar Apr 20 '25 17:04 amphoterism

How can we go back to the old version, I am having a lot of problems with this version. Can someone who has been successful explain? Also, do I need to take a backup? Which files should I take so that I don't lose the buttons inside?

You should be able to just uninstall the existing plugin, and then when you install the previous version, all your buttons will return. You will need to enter your HA URL and your access token again.

This method did not work for me, though. I get the Could not connect to server dialog when attempting to connect.

cherryontopknife avatar Apr 20 '25 17:04 cherryontopknife

How can we go back to the old version, I am having a lot of problems with this version. Can someone who has been successful explain? Also, do I need to take a backup? Which files should I take so that I don't lose the buttons inside?

for me here's how i did the rollback

  • open the SteamDeck plugins folder on my mac
  • delete the home assistant plugin (can be from the UI or manually the folder)
  • download the old ver from releases page
  • copy the plugin file/folder into the plugins folder

You should get the 2024 version up and running again

sylv3rblade avatar Apr 21 '25 03:04 sylv3rblade

And don't forget to uncheck that while this issue is open.

Image

Mincka avatar Apr 21 '25 06:04 Mincka

yer it works if you do that. but you dont get feedback from HA.

MiniFido avatar Apr 21 '25 11:04 MiniFido

Hello everyone,

I just got home and immediately tried to reproduce the issue. "Unfortunately," everything worked as expected on my end, which is not really ideal since I can’t really see what exactly is going wrong.

To test, I first downgraded to the previous version 3.5.2 from the Elgato Store, applied all settings (wss-style URL, token), and set up a few entities (power consumption, light and an action to turn the light on and off). Then I restarted the Streamdeck application, which caused the plugin to automatically upgrade to the latest version.

Image

After that, the URL was, as expected, converted to the new format (https://) and the buttons worked as before.

Could you please provide me with the following information so I can narrow down the issue and possibly reproduce it?

  • Operating system
  • What type of stream-deck are you using?
  • Home Assistant via HTTPS or HTTP?
  • Are all entities affected, or only some?
  • Are there any “custom” settings in the affected entities?
  • Does it never work, or does it only fail sometimes?
  • If you try to add a new entity,

The only thing I've noticed so far is that when switching pages on the Stream Deck, it takes a while for the entities to update (as far as I can tell, this only happens when the state of at least one entity on that page changes). Until then, the buttons don't work for me and only display the Home Assistant logo.

cgiesche avatar Apr 21 '25 15:04 cgiesche

Operating system

The problem exists on my OSX machine, my Windows PC which shares the same streamdecks via kvm doesnt have the issue and works as well as the older version of the plugin

What type of stream-deck are you using?

XL and Neo

Home Assistant via HTTPS or HTTP?

HTTP

Are all entities affected, or only some?

All entities I've tried so far

Are there any “custom” settings in the affected entities?

Nothing really tweaked about them from my HA setup

Does it never work, or does it only fail sometimes?

The only thing that still works is already setup actions like button presses,

If you try to add a new entity,

Whenever I try to add one, I cant connect to my HA instance, it just shows the disabled submit button and the loading icon but never actually continues (no error out, no success)

sylv3rblade avatar Apr 21 '25 15:04 sylv3rblade

Ok, wtf. It looks like the problems are not related to the code but to the build process.

I was able to reproduce some of the problems with the latest release. After hours of "what the f*** is going on" I may have found the root cause: Releases of the plugin are built on GitHub via GitHub Actions. Even though the process should be the same as on my local machine, the result of the last release seems to be "damaged" somehow. I can't in the slightest understand how that might have happened.

I built a fresh pre-release of the same version. It only contains minimal optimizations that were noted incidentally while searching for the problem, but they did not cause it. Please check if this version is working: https://github.com/cgiesche/streamdeck-homeassistant/releases/tag/3.6.4

If not, i will cry.

cgiesche avatar Apr 21 '25 17:04 cgiesche

Image

I installed the version. The version number seems to be wrong.

Unfortunately, the problem continues in the same way. In some pages, sensor or entity data comes, although it is much later than before. However, this update does not happen at all in some pages and entities. I did not make any changes to the entity and streamdeck settings. For example. The red ones are sensor entities created with Custom icon. It shows 1 or 2 data in the title with custom title. The yellow ones were added with generic entity. Also, not only the data retrieval part is problematic, actions sometimes return with a warning icon.

Image

yurtalan92 avatar Apr 21 '25 19:04 yurtalan92

The version number seems to be wrong.

Version 3.6.4 is correct. I had to increase it so that stream deck knows that it is newer than the one from the store.

Unfortunately, the problem continues in the same way.

That's strange. Maybe the configuration of those buttons got corrupted? Can you try to reconfigure one of them? I have a StreamDeck XL and Plus and both are workings without any issues or delays. With the old (current store) version, i had issues.

Image

Image

Maybe someone else wants to try the new pre-release: https://github.com/cgiesche/streamdeck-homeassistant/releases/tag/3.6.4

cgiesche avatar Apr 21 '25 19:04 cgiesche

Hi @cgiesche. First, thank you for your work on this integration, it is really awesome! Second, I am also having this issue that the entity state is not being displayed. I installed the new pre-release version you shared and it did not fix the issue. I closed the application, re-opened it, dragged a new Entity (generic) to the deck and configured it. Same as the old one, no entity icon. The button presses works, though, as they used to. Let me know if I can be of any help.

gavilella avatar Apr 21 '25 20:04 gavilella

Bu garip. Belki de bu düğmelerin yapılandırması bozuldu? Bunlardan birini yeniden yapılandırmayı deneyebilir misiniz? Bir StreamDeck XL ve Plus'ım var ve ikisi de herhangi bir sorun veya gecikme olmadan çalışıyor. Eski (güncel mağaza) sürümünde sorunlar yaşadım.

I tried to reconfigure it now, it is not pulling any data. I created a different API Key and tried it with it, but it also failed.

yurtalan92 avatar Apr 21 '25 20:04 yurtalan92