I’m working on a web-based editor for homeassistant that will give the user the ability to edit config files on the fly from a panel inside of homeassistant.
The editor is based on the monaco editor which is powering Microsoft VS Code.
As of now it loads configuration files, and allows you to edit and save them.
It’s running as a nodejs application locally on the same RaspberryPi and is presented inside a panel_iframe.
If anyone is interested i will put it up on Github.
Would be neat if you could edit python_scripts in this editor then check result with the push of button?
I recall from a tweet somewhere that there is a hassio project doing something very similar to your approach.
It probably will be better at syntax validation. My configurator is based on the Ace Editor, which does syntax highlighting, but it can’t tell if the content is actually valid.
Monaco also has good support for built in snippets as well. That could be something nice to implement.
Think I will move the “backend” from nodejs to python instead, With python there will be a much simpler integration. It’s always a pain to get nodejs running on the pi.
Hi @voxic got this running no problems
I see that currently only .yaml files in the configuration directory are listed for editing, is it possible to add .py files? Also it would be great to be able to jump into folders in the configuration directory, which is where custom components and python_scripts are.
Cheers!