Home Assistant Community Add-on: Visual Studio Code

:tada: Release v1.1.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades keesschollaart.vscode-home-assistant to 1.3.3

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

I just want to say thank you, Frenck. This is my Favorite. Add-on. EVER. Loving all the great features! :grinning: :+1: :star:

1 Like

I am getting an error for saying unknown tag <!file> from using lovelace_gen in my yaml files. Is there anyway to suppress this error? The check config in setting validates properly, but not in vscode

I’d like something like this also.

Frenck: In the meantime, can one of the file size extensions be included in the add-on configuration?

Sorry if I missed it but is there a way to “undo” thru several configurations. Or set the number of historical changes to keep like you might have in notepad ++ and to be able to access those across restarts. I frequently need to back out of a number of changes to my config. Maybe its so obvious how to do this that nobody ever needed to ask the question?

git is what you want.

you mean back up to git? or through VS somehow?

You can setup git versioning in VS. You can back up to github or something similar if you choose. Git is just a system for keeping track of changes / versions of a file.

https://code.visualstudio.com/docs/editor/versioncontrol
https://help.github.com/en
http://marklodato.github.io/visual-git-guide/index-en.html

Alright I’ll look into it. I have a basic understanding of what git is. Would a scenario be possible wherein a config change I make brings down my connection to the internet and so I cannot back out of changes as VS would try to find previous changes stored on git? Thanks for your patience

Yeah. Git is local. The online stuff like github is optional.

1 Like

Anyone have successfully installed platform IO extension?

1 Like

I am, except mine pegs the CPU and will sometimes even lock up my NUC and I have to pull the power.

I’m getting the “Visual Studio Code is unable to watch for file changes in this large workspace” which according to the docs says it can’t be helped, but I wonder if this has something to do with the ridiculously high CPU usage? Unfortunately, I have to keep the add-on turned off as sometimes my Node-RED flows won’t even kick off with it running.

Hopefully, someone has a thought on how to fix this!

:tada: Release v1.2.0

Full Changelog

This is a general maintenance release, updating quite a lot!

Most exciting thing in this release: Commands!
Find them using Cmd+shift+P and type ‘Home Assistant’ (or at least part of it)

:hammer: Changes

  • :arrow_up: Upgrades code-server to 2.1692-vsc1.39.2
  • :arrow_up: Updates homeassistant_cli to v0.8.0 (#65)
  • :arrow_up: Updates yamllint to v1.19.0 (#66)
  • :arrow_up: Upgrades add-on base image to v4.0.1
  • :arrow_up: Upgrades vscode-icons-team.vscode-icons to 9.6.0
  • :arrow_up: Upgrades redhat.vscode-yaml to 0.6.1
  • :arrow_up: Upgrades openssl to 1.1.1-1ubuntu2.1~18.04.5
  • :arrow_up: Upgrades keesschollaart.vscode-home-assistant to 1.4.5

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

3 Likes

Hello

Need some help here.
Visual Studio is asking for “The Host URL of your Home Assistant Host” i put in my ip but it comes up with fault. Any ideas?

I’m not at home at the mo (so no access to my vsc (on my pc)) but from memory, I think I entered //192.168.xxx.xxx/config
(adjust to suit your HA instance ip address, you have set up samba I assume ? - I think vsc has another route in but I use Samba)
I’ll check when I get home

have tried with \192.168.xx.xx\config with no success. i am using samba and that is working great.

Fault i get from VSCode:
Error connecting to your Home Assistant Server at file:///\192.168.xx.xxx\config and token ‘…’, check your network or update your VS Code Settings, make sure to (also) check your workspace settings! Error: ERR_CANNOT_CONNECT

Try / instead of \ (grasping at straws here)

Getting error with both \ and /

Hang on, are you running this from a pi or a NUC ? (arm or amd/Intel) ?
If it’s on the same machine as HA then the path may be different - but samba shouldn’t care (it should go out and come back in ??? - don’t know, I have no direct experience of that)

Running on a PI with hassio install.

I have samba installed and are using that to get accsess to home assistant yaml files. (\\192.168.xxx.xxx\config)

Should this not be pretty straight forward? :thinking: