log into vscode web-ui on http://ip:8443. you should be able to see all your hass config files. At this point, we have a working code editor.
However to make it similar to hassio extension, with all those autofill bells and whistles, we need to install a few extensions. I fetched the list from the official addon here.
for some reason I am unable to search for them with in vscode web-ui. so I downloaded vsix files and install them manually. here is how I did it.
a) goto vscode market place and search for the above extensions, one at a time, and download them.
b) move those vsix files to vscode config folder
c) In the vscode web-ui, click on hamburger icon (top left) > view > extensions
d) in the extensions side bar click the 3 dots (’…’) and click “install from vsix”. under /config select and install the extensions, one by one.
close the vscode web-ui (browser) and reopen it.
In order to provide home-assistant access to vscode, in the settings, search for home assistant and provide url (http://ip:8123) and a long lived token.
similarly you need to provide esphome url (http://ip:6052) as well.
I think that’s the point. vscode is available as an add-on for hass.io, but add-ons aren’t available for a standard HA docker install. That’s what I understood anyway, but then I’ve not had much coffee today so…
I don’t run hassio (just normal docker HA), and I have VSCode extension installed on VSCode. It connects to my HA and I get all the features.
So what I’m trying to figure out is what the add-on provides that the extension doesn’t. If it’s just a web browser version of VSCode, then cool. But if they are looking for just using normal VSCode with HA, the add-on/vscode server isn’t needed.
I’ve added the link to VS Code in the HA side panel but when I access it from there it doesn’t show the HA workspace like it does just going directly to the VS Code URL in the browser.
I only have one problem:
I’m trying to install those VSIX files but every time I install one it only says:
“Please reload Visual Studio Code to complete installing the extension Python.”
And the actual extension doesn’t get installed.
I already tried restarting and refreshing everything but it just doesn’t work.
Any ideas?