VS Code in Home Assistant: any use for this outside of editing yaml files?

I don’t see that there’s any sort of integration for writing code to process information from HA entities like Node Red + Companion. Am I missing something and this is more than just an interface for the config files and maybe a git client for those config files?

ALERT,
@ALERT@sh.itjust.works avatar

your answer is pyscript.

ikidd,
@ikidd@lemmy.world avatar
ALERT,
@ALERT@sh.itjust.works avatar

I am among the contributors, so yes. The platform itself cannot harm you as it just provides a way to script on Python on Home Assistant.

killeronthecorner,
@killeronthecorner@lemmy.world avatar

I think you want something like Hass configurator?

ikidd,
@ikidd@lemmy.world avatar

No, I see all the config files in VScode, but I really don’t have much need for that since I’ve usually done that stuff via SSH. I was wondering if VSCode gave any sort of actual integration with HA like the NodeRed Companion does by exposing all the entities within the IDE so you can do your own coding.

Another commenter mentioned Pyscript which seems like it does some sort of tying together of HA and code.

killeronthecorner,
@killeronthecorner@lemmy.world avatar

I see, not as far as I’m aware. Cool idea though, the hass UI can be a bit limiting sometimes. I’d love to see a workflow view of different automations (automation management in Hass is pretty poor IMO)

Dianoga,

VSCode in HA is primarily useful for editing config files and with all the latest pushes towards config in the UI it’s not as useful as it used to be. That said, it does integrate with HA to provide completion for entities and some basic yaml validation.

I also use it to work on ESPhome configs as well as some simple file management. I never got SSH working correctly on the HA VM and VSCode has been a convenient workaround.

danielo515,

Vscode extension is aware of home assistant entities, so you get (or should) auto completion of existing entities and services, which you will not get on vim over ssh

  • All
  • Subscribed
  • Moderated
  • Favorites
  • homeassistant@lemmy.world
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines