keesschollaart81 / vscode-home-assistant

Visual Studio Code Extension for Home Assistant. ⭐ if you think this is cool!
544 stars 115 forks source link

Not getting suggestions, fails to connect #2538

Open dnestico opened 1 year ago

dnestico commented 1 year ago

SEE REPLY FOR UPDATE PLEASE!

Ok so I gave the extension the access token it wanted but in home assistant, it gives me a "failed login attempt" notification and in VSCode it says it failed to connect to my home assistant. I must be doing something wrong, please help.

OUTPUT:

Discover all configuration files because file:///Volumes/appdata/Home-Assistant-Container/hki-user/config/config.yaml got updated and new files were found... Cannot find the files in folder . Applying schemas to 38 of your configuration files... Assigning /Volumes/appdata/Home-Assistant-Container/automations.yaml the configuration.yaml/automation schema Assigning /Volumes/appdata/Home-Assistant-Container/configuration.yaml the configuration.yaml schema Assigning /Volumes/appdata/Home-Assistant-Container/automations.yaml the configuration.yaml/automation schema Assigning /Volumes/appdata/Home-Assistant-Container/scripts.yaml the configuration.yaml/script schema Assigning /Volumes/appdata/Home-Assistant-Container/scenes.yaml the configuration.yaml/scene schema Assigning /Volumes/appdata/Home-Assistant-Container/binary_sensor.yaml the configuration.yaml/binary_sensor schema Assigning /Volumes/appdata/Home-Assistant-Container/sensor.yaml the configuration.yaml/sensor schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused/hki_automations.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused/hki_configuration.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused/hki_inputs.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused/hki_scripts.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused/hki_sensors.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/config.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_dark_default.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_dark_empty.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_light_default.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_light_empty.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_midnight_black.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_orange_sunrise.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_orange_sunset.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_paper_white.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_purple_blur.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homekit-infused-theme/hki_sweet_pink.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/packages/homkit-infused-extra/pretty_date.yaml the configuration.yaml/homeassistant/packages schema Assigning /Volumes/appdata/Home-Assistant-Container/customize.yaml the configuration.yaml/homeassistant/customize schema Schemas updated!

AND WHEN I TYPE TO TRY AND GET SUGGESTION IT SAYS THIS: Cannot find the files in folder .

Extension runs in:

I'm running VS Code on:

I'm accessing my files:

dnestico commented 1 year ago

Ok I somehow randomly got suggestions after restarting unraid. But 2 issues still remain

  1. Still this error shows up

    Screen Shot 2023-03-05 at 4 55 50 PM
  2. The suggestions appear but I am getting errors in the OUTPUT everytime so basically unusable

    Screen Shot 2023-03-05 at 4 56 56 PM

Error: Connecting to Home Assistant... [Auth phase] Initializing WebSocket connection to Home Assistant [Auth Phase] Connecting to Home Assistant... Tries left: 3 [Auth phase] Received a message of type auth_required [Auth phase] Received a message of type auth_invalid [Error - 4:57:16 PM] Request textDocument/completion failed. Message: Request textDocument/completion failed unexpectedly without providing any details. Code: -32603 Discover all configuration files because file:///Volumes/appdata/Home-Assistant-Container/hki-user/config/config.yaml got updated and new files were found... Cannot find the files in folder. Applying schemas to 38 of your configuration files...

elykrk commented 1 year ago

I'm having this same error connecting to home assistant through the websocket. Did you get this resolved?