cgiesche / streamdeck-homeassistant

Control your Home Assistant devices from StreamDeck
MIT License
768 stars 38 forks source link

No longer working with HA 2023.11.2 #185

Closed kellyho67 closed 7 months ago

kellyho67 commented 7 months ago

I had this working on the prior version, but after upgrading, all webhook sends fail. Watching them in wireshark, you can see that they do not submit when pressing a button. They simply trigger an ACK back and forth, but there are no hook calls. I tested the HA app on the same machine, and it works as expected.

JzJad commented 7 months ago

Just set this up with the following. Core: 2023.11.2 Supervisor: 2023.11.3

However I had to generate a token on an admin account, a normal account token would not work.

cgiesche commented 7 months ago

I will upgrade my HA and look what happens...

cgiesche commented 7 months ago

However I had to generate a token on an admin account, a normal account token would not work.

Ah, that may be the problem. I never tried to use a non-admin-token (yes i know, being admin is bad :D)

I am now on the current Home-Assistant version and the plugin is working as before.

kellyho67 commented 7 months ago

Just set this up with the following. Core: 2023.11.2 Supervisor: 2023.11.3

However I had to generate a token on an admin account, a normal account token would not work.

I did the token with an admin also but it still not pushing any data. And the same token in postman works no problem. I also uninstalled the plugin and re-installed it but that did not help either.

JzJad commented 7 months ago

OK so now its being a little weird, after some time has passed they all stop working on the stream deck, if I got back into the software and press reconnect on any button, it works again for the time being.

kellyho67 commented 7 months ago

OK so now its being a little weird, after some time has passed they all stop working on the stream deck, if I got back into the software and press reconnect on any button, it works again for the time being.

Ok I cannot get that to work and using wire shark it’s for sure not sending the web hook call over the wire.

kellyho67 commented 7 months ago

Ok, so I have this working now. I had to add the Entity (Optional) in the key press. so to me it is weird I define domain and Entity in the top area then have to re-select it in the key press areas but to get it working, I have to now add the optional Entity in the Key press area.. but indeed it is working

cgiesche commented 7 months ago

Ah, yes. Defining the button display and the button action independently was a requested feature. The "Optional" hint is a bit missleasing, sorry for that. It is related to the fact that some services do not require an entity to be set in the request.

kellyho67 commented 7 months ago

Ah, yes. Defining the button display and the button action independently was a requested feature. The "Optional" hint is a bit missleasing, sorry for that. It is related to the fact that some services do not require an entity to be set in the request.

Ah ok got it.. yeah that would make sense. I think I just took "Optional" as, you can do it if you want but we already know it from above!

JzJad commented 7 months ago

Its been roughly 24 hours and mine has managed to keep working so im happy 😄

cgiesche commented 7 months ago

I have experienced this issue too. After some time (or the pc being longer in standby) the connection to HA is closed and does not recover automatically. Somehow that feature got lost... I will research why this happens.

palladin8282 commented 7 months ago

Hi, I have experienced the same issue. It is required to click reconnect everytime when HA was restarted.

Tueska commented 7 months ago

I had the same issue. Since I updated to HASS 2023.11.3 two days ago and reconnected after the update was complete, the websocket updates again without having to click reconnect

cgiesche commented 7 months ago

https://github.com/cgiesche/streamdeck-homeassistant/releases/tag/2.4.1

(Coming soon(tm) to elgato store, download and install manually to get features now)

palladin8282 commented 7 months ago

Thank You :)