Check configuration within the studio core server editor?

hya all.

when using studio core server, is there no way to check configuration within the editor? do i have to manually exit the editor and go to the developer tools each time?

thx a lot

Z

Studio code server menu → terminal → run terminal then enter ha core check. Could probably make it a task for easy reuse, haven’t tried it though.

In any event you can (shock horror) open another tab or browser window and check config in there.

Too much effort. I have an automation run config check for me on change of a yaml file and send me a notification with the results :joy:

ooo thats a great idea!

@CentralCommand mind sharing the automation yaml?

best

Z

Yes but you’ll have to give me a bit. I’ll have to pull a few pieces together into a package since it’s more then just an automation. Not easy to do on my phone so I’ll make it when back on my laptop.

1 Like

When in studio code editor hit control-shift p and select “check configuration” from the resulting menu. It will be the default action the next time you use the key combination.

@mterry63

wow awesome just what I was looking for!

Z

I use firefox and when using that key combi it opens a private session in firefox…:man_shrugging:

Maybe you can change that combo in the Studio Code Editor.
Menu → File → Preferences → Keyboard Shortcuts →

Ok sorry that took so long but here’s the package with my automated config check automation:

Couple notes:

  1. I don’t know if you can actually put allowlist_external_dirs in a package like this. You might have to pull that part out of the package and put it in your configuration.yaml. I’ve never tried that before.
  2. I have everything in packages so when I list /config/packages as a folder to watch that is basically my entire configuration. If you don’t have everything in a subfolder like that then you can list /config here it just gets really noisy since the logfile and db file are both in there. It’ll work though since it filters out files without yaml as the extension.