cgiesche / streamdeck-homeassistant

Control your Home Assistant devices from StreamDeck
MIT License
818 stars 39 forks source link

failed to connect with version 3.5.1 / 2.4.5 works #305

Open wur07 opened 1 month ago

wur07 commented 1 month ago

hello,

have have the problem that the new version of the plugin i get this error failed to connect to ws://ip:8123/api/websocket

please help thanks

ctrl-this commented 2 weeks ago

Hi, thanks for the awesome plugin. Unfortunately it recently also stopped working for me with the same error message: "Failed to connect to ws://ip:8123/api/websocket" where ip is my internal ip. I can reach the webinterface in Firefox from the same machine. I restarted mac/elgato, tried to create a new token, etc. So far no luck getting the plugin to work again. Because i have no idea of this i also tried opening the websocket in firefox to test general connection, which returns: No WebSocket UPGRADE hdr: None Can "Upgrade" only to "WebSocket".

I run on Mac/latest OS (Sequoia). As the error message in the plugin is quite limited i dont know where to search for errors or debug this. Let me know if you have any directions :-)

cgiesche commented 2 weeks ago

Hi,

there is a way to get more detailed logs. On MacOS it should work like this (can not test, because i do not own a mac device):

  1. Run the following command in the terminal. It enables debugging of the stream-deck application: defaults write com.elgato.StreamDeck html_remote_debugging_enabled -bool YES
  2. Restart stream-deck application
  3. Point your browser to http://localhost:23654/ grafik
  4. Select "PI" or "Plugin" to debug either Settings or the plugin itself. There, you have access to all log output and network activity: grafik

PS. It seems that elgato has improved their Plugin API. When I find the time to migrate my plugin, it should be much easier to debug...