Home Assistant Community Add-on: Visual Studio Code

For the add-on you should not have to configure anything.
It comes preconfigured out of the box.
2 things you can do:

Restart the add-on/refresh your browser. This will make everything run as expected (you’ll loose customizations to the vscode configuration, but the default are “sane”).

Frenck,
Just would like to take the opportunity to thank you for ALL your contributions to date (and for the future ones too :smiley:)

But I run my HA on a Pi over HassOS and my vsc addon option is greyed out, which I thought was due to the vsc being compiled for AMD processors ???
As vsc is open source not quite sure why an arm compilation is not possible (some required instructions missing ???) :man_shrugging:

Which is why I have my vsc running on my workstation.

Have I got the wrong end of the stick ?

Works noww. The confusing part was when i started vsc it told me to configure HA extension and it still does every time i start it, but if i wait i while it dissapears and starts working.

Thanks for fast replies
This is a big help :smiling_face_with_three_hearts:

Hello again

I have just started to use this extension and was wondering on how yamllint is implemented? is this for checking my yaml code as i write or something i have to run, or how does it work?

VSC will check your yaml as you type and give you inline error messages for things that don’t comply. Sometimes it’s a bit annoying as it will tell you that a particular block of code has errors, but it’s simply because you are still typing it out and haven’t finished.

Thanks for that :slight_smile:

Great plugin! I just added the following sensor

- platform: mqtt_room

and I’m seeing “Value is not accpeted. Valid values: mqtt.”, and similar errors for other Config Vairables; timeout, away_timeout.

The sensor appears to work, anything I could do to get rid of these errors?

Thanks

:tada: Release v1.2.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates yamllint to v1.20.0 (#69)
  • :fireworks: Updates maintenance/license year to 2020
  • :pencil2: Funding adjustments
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades add-on base image to v4.0.3
  • :arrow_up: Upgrades lua-resty-http to 0.15-0
  • :arrow_up: Upgrades Hassio CLI to v3.1.2
  • :arrow_up: Upgrades emilast.LogFileHighlighter to 2.7.0
  • :arrow_up: Upgrades usernamehw.errorlens to 2.8.1
  • :arrow_up: Upgrades vscode-icons-team.vscode-icons to 9.7.0
  • :arrow_up: Upgrades git to 1:2.17.1-1ubuntu0.5
  • :books: Adjust add-on installation instructions

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

2 Likes

@frenck First of all a BIG THANK YOU for this and several Add-ons. Your work makes a difference.

hopefully quick question on how to use this with github: Is there a recommended way to setup github (in particular authentication) with this Add-on so it persists updates? Solved. Saw the ssh and git config directories are already persisted inside addons of hassio. :wink:

Very much appreciated!

1 Like

Yep, the SSH folders are persistent. Using SSH keys for Git is highly recommended.

:tada: Release v1.2.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades emilast.LogFileHighlighter to 2.7.1
  • :arrow_up: Upgrades keesschollaart.vscode-home-assistant to 1.5.0
  • :arrow_up: Upgrades usernamehw.errorlens to 2.9.0
  • :arrow_up: Upgrades nginx to 1.14.0-0ubuntu1.7
  • :arrow_up: Upgrades libnginx-mod-http-lua to 1.14.0-0ubuntu1.7

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

Hi guys.

The Visual Studio code suddenly stopped showing the state entities database of all my devices, if I write light.(something) in the code, the suggestion prompt is not coming up any more, I have the Home assistant extension installed, I have already tried to uninstall visual studio cod and the home assistant extension but nothing of it works.

Do any of you have a suggest?

Best Regard Stig

Hello,
I am running two instances of HA at home. One on an odroid C2 for a zwave network (with very unfrequent changes), one on a VM on a NUC for the rest. I have installed the VS Code add-on (thanks for this!) on the VM. I know I can’t install it on the C2. However, is there a way to edit the config files of the C2 from the code-server running on the NUC?
Thanks for any suggestion!
GV

This addon seems to use ~ 1.5Gb of memory… spikes my memory use to ~45% and without the addon started it’s maybe 25% - is there a reason this uses so much memory when it’s not being used but the addon is started?
Anyone else seeing this? I think I’m going to only start it when I want to use it.

@DavidFW1960 I am not having big problems with memory, I have bigger problems with processor going on 100% if I start the addon

It’s weird… I started it again just after I stopped it and it’s still ~27%… maybe there is some kind of memory leak.

I could understand it on some raspberry, but not on intel nuc.

Yeah I’m on a Celeron NUC as well… I have an i7 Chinese XCY mini PC as well… Been avoiding using that (playing with Proxmox on it)… Maybe I should migrate to it and see if it’s any better. I just don’t want to have to reconfigure for a new IP address in everything. Decisions…

:tada: Release v1.2.3

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :hammer:Disable update notification (#75)
  • :arrow_up: Upgrades code-server to 2.1698

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

Hi, I have a question. I recently (yesterday) started to use a nginx reversed proxy following this guide: https://selfhostedhome.com/reverse-proxy-with-https-without-opening-ports/. Everything seems to work fine, only the vscode plugin is not working when using my secure home url. When accessing it via Nabu Casa everything is oke. This is what te logs show:

[21:24:26] INFO: Starting NGinx...
[02/Feb/2020:21:24:29 +0100] 101 127.0.0.1, 172.23.64.1(172.23.64.2) GET /?reconnectionToken=xxxxxxxxxxxxxxxxxxxxxxx&reconnection=true&skipWebSocketFrames=false HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36)
[02/Feb/2020:21:32:17 +0100] 200 127.0.0.1, 172.23.64.1.1(172.23.64.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36)
[02/Feb/2020:21:32:18 +0100] 200 127.0.0.1, 172.23.64.1172.23.64.2) GET /vscode-remote-resource?path=/drone/src/build/code-server2.1698-vsc1.41.1-linux-x86_64-built/extensions/theme-defaults/themes/dark_plus.json&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36)

Any ideas how to fix it?