3

I just set up Home Assistant using HASSbian and am being told that I need to edit the configuration.yalm file, stored under ~/.homeassistant, to do a bunch of things.

Is it possible to do that from the Chrome browser, or do I have to hook up to my Raspberry Pi manually?

3
  • Have you tried it? Mar 5 '17 at 20:28
  • I don't know how to try. Currently exploring a bit, but I feel very far from any progress.
    – Henrik
    Mar 5 '17 at 20:30
  • from the command line type nano filename to open the file in an editor (this may need sudo) try it without first then if it fails try it with sudo. Mar 5 '17 at 20:32
1

Turns out Terminal (on OSX) is the app to use. There, I start by typing:

$ ssh pi@ip-address-of-pi

(Excluding the "$" sign.)

Then these three commands:

$ sudo su -s /bin/bash homeassistant
$ cd /home/homeassistant/.homeassistant
$ nano configuration.yaml

After doing my changes I press CTRL-X (written as "^X" in the Terminal window) and then in the Home Assistant page in Chrome, navigate to configuration and press restart, wait, and press restart again.

1
  • I'll just add that you can alias or script all of this. I use Hassbian also, and I use this ugly hack in my bash profile: alias config='sudo nano /home/homeassistant/.homeassistant/configuration.yaml && sudo service home-assistant@homeassistant restart'. What it does is, when I type config into the terminal, opens the file in nano (a command-line text editor) and then, when I close the file, restarts the HA service. It's not very elegant or robust (for example, if I close the editor without changes, it'll continue to restart the service anyway) but hopefully it gives you some ideas.
    – flith
    May 19 '18 at 21:10
0

There is a project developing an IDE built in right in HA.
I am currently using it on Hass.io.
Check this out.
Don't know if you can enable it on your HA though.

3
  • Anyone can explain why i got downvoted? :)
    – krasatos
    Apr 25 '18 at 14:27
  • Because you didn't answer the original question. It doesn't matter how helpful or useful your information might be, your votes are based on your answer's appropriateness for this specific question, both for the asker and for any future visitors with the same question.
    – flith
    May 19 '18 at 21:06
  • But, it does actually answer the original question. This add-in provides the ability to edit config files remotely in a browser, which is exactly what was asked. Nov 8 '18 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.