maviso5
(Dan)
October 20, 2016, 8:15pm
1
Hi All,
I’ve just installed HASS using the Raspberry Pi All-In-One Installer, however struggling to edit the YAML file (which lives in (home/hass/.homeassistant) I believe this to be permissions however unsure how where/what level to change.
I am logging in as Pi when using either ssh or cyberduck (mac user)
Any help much appreciated.
gustafh
(Gustaf hagel)
October 20, 2016, 9:05pm
2
Are you using sudo? What errors do you get?
aimc
(Andrew Cockburn)
October 20, 2016, 9:09pm
3
the YAML files will be owned by the hass user, you should be able to do:
$ sudo su - hass
To switch to that user then you should have the correct permissions to edit the file.
maviso5
(Dan)
October 20, 2016, 9:30pm
4
Do you have to edit in terminal/using SSH, i was hoping to download the file make changes and reupload
Dropbear
(Ian)
October 21, 2016, 1:05am
5
you can do it that way if you want to… just make sure the files are uploaded by the owner of the hass installation …
you could use something like winscp
maviso5
(Dan)
October 21, 2016, 8:53am
6
How do I find the hass user/password?
ih8gates
(Scott Reston)
October 21, 2016, 12:05pm
7
I find it easiest to set up a Samba share to my HA folder. That way, I can edit directly in my text editor. Good tutorial here:
Also, some tips for using Notepad++ that I figured out through trial and (lot’s of) error:
A few things that helped make it easier for me to edit YAML with Notepad++:
Make N++ display whitespace - under View >> Show Symbol, turn on “Show White Space and TAB”
Make N++ use spaces instead of tabs - tabs are going to break YAML parsing. But you probably don’t want to turn off the tab character globally. N++ lets you make it so that when you hit TAB, it’ll insert the number of spaces you choose. Go to Settings >> Preferences and choose Tab Settings. Scroll down in the “Tab Settings” …
ih8gates
(Scott Reston)
October 21, 2016, 12:06pm
8
If you’re logged in as “pi” - the default user (pass: raspberry), you can switch users with:
sudo su -s /bin/bash hass