Visual Studio Code Home Assistant



Home Assistant allows anyone to create add-on repositories to share their add-ons for Home Assistant easily. This repository is one of those repositories, providing extra Home Assistant add-ons for your installation. Visual Studio Code add-on documentation.

Home Assistant can detect most of your devices automagically and you can configure the new fancy Lovelace UI directly in Home Assistant. But if you want to go deeper and love configuring things manually, so you exactly know what’s happening, you need an external editor. Vim may be good enough for terminal heroes, but Visual Studio Code can add a few benefits.

  • The remote Python debugger integration allows you to use the Visual Studio Code Python debug tooling with a remote Home Assistant instance. It uses Microsoft’s debugpy library which is the successor of ptvsd, and the default library used by Visual Studio Code. This is useful in testing changes on a local development install, or connecting to a production server to debug issues.
  • Visual Builder Studio lets you extend your applications using the same development platform that Oracle Cloud Applications are built on. Read the how-to. Build web and mobile applications. Use cloud-based visual tools to rapidly create and host web and mobile applications with minimal coding required.

Why VS Code?

As a software developer, I’ve used many (integrated) development environments. What I love about Visual Studio Code is that it’s free, sort of lightweight and available for many different platforms. It doesn’t matter if I’m sitting on my Windows machine, or on my Arch Linux notebook. It is also versatile: There are many plugins available so you can use it for almost every project.

So for scripting and smaller projects, VS Code is ultra-convenient. It doesn’t matter if it’s PHP, Javascript, Go, or just your Home Assistant configuration.

Essential Plugins

There are just two plugins necessary to set up your perfect Home Assistant experience with VS Code.

SSH FS

SSH FS adds SSH Remote File System Support for VS Code. It is easy to configure and you can mount any remote directory via SSH into VS Code. So you just have to connect to your Home Assistant instance, for example on your Raspberry Pi, and can edit your files like local ones.

Home Assistant Config Helper

As that wouldn’t be nice enough, it’s getting even better. Since a few days a new plugin Home Assistant Config Helper is available for VS Code. This plugin enables auto-completion for your entity-Ids! We all know that it can be a pain to remember all the Ids correctly.

That’s it!

There are many more plugins available to customize your Visual Studio Code experience: Icons, Themes, and for developers Git, CSS & JS build helpers, other programming languages support and more… Give it a try :)

What editor do you use and why?

Or do you already use VS Code? What’s your favorite plugin?

Let me know in the comments :)

Key Benefits

Well-known IDE

  • Microsoft Visual Studio IDE
  • Version control support (TFS, Git, SVN, ...)
  • Integration respecting conventions
  • Automatic updates & Easy installation
  • High performance environment

Smart PHP Editor

  • Full PHP 8.0-5.4 support
  • PHP IntelliSense, code completion
  • Function parameters assistant
  • Go to definition (F12)
  • Shows embedded documentation

Visual Debugging

  • Breakpoints in PHP and JavaScript
  • Inspect variables, watches
  • Immediate Window
  • Multiple session debugging

Integrated PHP Manual

  • PHP functions&constants&classes
  • Integrated documentation
  • Search available symbols while typing
  • PHPDoc support

Code Navigation

  • Browse declarations within your solution
  • Quickly search through available symbols
  • Navigate directly to symbol definitions
  • Navigate To, Class View, Object Browser, ...

HTML/JS/CSS Support

  • Visual Studio HTML Editor
  • Syntax Highlighting, Schema validation
  • Formatting, Outlining, Commenting
  • Full IntelliSense
  • Web Essentials Support
Home assistant wifi config

Testimonials

Awesome tool!

What can I say? Exceeded my expectations in all ways!

Absolutely fantastic! I have no hesitation in recommending this to any other PHP developer now or into the future. I have used numerous 'PHP specific' IDEs in the past and have always wished they would share the comfort of developing in VS, with this extension it is made possible and has exceeded my expectations. No qualms in paying for the Professional version, in fact, I purchased it almost instantly. Congratulations DEVSENSE, job well done.

Fantastic tool, finally done by a group of people who are actually attentive and working to improve the experience. Highly recommended.

Well, I really have to say this, is without doubt the best PHP development plugin for Visual Studio.

Very great thing. Never had such a great debugging experience with PHP and Visual Studio. God thanks there is PHP tools, so I have all my favourite languages within my favourite IDE!

Just tried your debugging feature...AWESOME!!!!!!!

Great Extension. Switched from VS.php to PHP Tools. Also Great support here and in their own forum! Would be willing to pay even more then they charge now!

One of the reasons why I never wanted to code in PHP was because I never found IDE with the same functionality/practice as I code in VS/C#. This tool is a game changer for me and especially I love the debugging features.

Home Assistant Visual Studio Code 502 Bad Gateway

Free 30 Day Trial Download

Visual studio code yaml home assistantVisual studio code yaml home assistant

Home Assistant Raspberry Pi Wifi

Download a fully functional 30-day trial of PHP Tools for Visual Studio. You can keep using the software without having to reinstall or reconfigure if you decide to purchase a license.

Home Assistant Python

Download Now