vscode-home-assistant icon indicating copy to clipboard operation
vscode-home-assistant copied to clipboard

Not getting suggestions, fails to connect

Open dnestico opened this issue 1 year ago • 2 comments

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:

  • [X] VS Code for Desktop
  • [ ] Hassio Add-on
  • [ ] Visual Studio Online
  • [ ] Other:

I'm running VS Code on:

  • [ ] Windows
  • [X] Mac
  • [ ] Linux

I'm accessing my files:

  • [] From local disk
  • [ ] Via remote SSH
  • [X] Smb
  • [ ] Other:

dnestico avatar Mar 05 '23 20:03 dnestico

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...

dnestico avatar Mar 05 '23 21:03 dnestico

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

elykrk avatar Apr 18 '23 23:04 elykrk