keesschollaart81 / vscode-home-assistant

Visual Studio Code Extension for Home Assistant. ⭐ if you think this is cool!
MIT License
551 stars 116 forks source link

Autocomplete shows always "no suggestions" #2309

Open markusmauch opened 2 years ago

markusmauch commented 2 years ago

The extension is connected to Home Assistant but there are no completions for Entity IDs, Services, Scenes and Triggers, etc.

Conectiong via Samba share:

[Home Assistant Language Server(5153)] Started and initialize received
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_ok
Connected to Home Assistant
Applying schemas to 8 of your configuration files...
Assigning /run/user/1000/gvfs/smb-share:server=192.168.0.4,share=config/configuration.yaml the configuration.yaml schema
Assigning /run/user/1000/gvfs/smb-share:server=192.168.0.4,share=config/automations.yaml the configuration.yaml/automation schema
Assigning /run/user/1000/gvfs/smb-share:server=192.168.0.4,share=config/automations.yaml the configuration.yaml/automation schema
Assigning /run/user/1000/gvfs/smb-share:server=192.168.0.4,share=config/scripts.yaml the configuration.yaml/script schema
Assigning /run/user/1000/gvfs/smb-share:server=192.168.0.4,share=config/scenes.yaml the configuration.yaml/scene schema
Assigning /run/user/1000/gvfs/smb-share:server=192.168.0.4,share=config/template.yaml the configuration.yaml/template schema
Assigning /run/user/1000/gvfs/smb-share:server=192.168.0.4,share=config/input_select.yaml the configuration.yaml/input_select schema
Schemas updated!

Connectiong via VSCode Server add-on:

[Home Assistant Language Server(1548)] Started and initialize received
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
Applying schemas to 8 of your configuration files...
Assigning /config/configuration.yaml the configuration.yaml schema
Assigning /config/automations.yaml the configuration.yaml/automation schema
Assigning /config/automations.yaml the configuration.yaml/automation schema
Assigning /config/scripts.yaml the configuration.yaml/script schema
Assigning /config/scenes.yaml the configuration.yaml/scene schema
Assigning /config/template.yaml the configuration.yaml/template schema
Assigning /config/input_select.yaml the configuration.yaml/input_select schema
Schemas updated!
[Auth phase] Received a message of type auth_ok
Connected to Home Assistant

Please include the related YAML code:

Extension runs in:

I'm running VS Code on:

I'm accessing my files:

neilbrencode commented 2 years ago

+1 Running VS Code on Windows and accessing files via SMB

tomaski commented 2 years ago

+1 same setup as @neilbrencode

rlippmann commented 1 year ago

I’m running VS Code desktop on Ubuntu, and this was working until VS Code made me update the extension the other day.

Maybe something in last update broke it?

michelsup commented 1 year ago

I still get completion but in automations.yaml only. @frenck told me it's a limitation of this helper, but it was working fine previously with any files before I had to reinstall everything. The helper is seeing the entities correctly in climate.yaml : Got 426 entities from Home Assistant but nothing is displayed. I feel like it's a small tweak to apply for all files to be supported, otherwise this wonderful extension is pretty useless. I wish I could help.