HA in virtual environment righs problem

Hello, I’m a newbee and i tried to install HA all in one installer with virtual environment… I do get it running but not with mosquitto, dht sensor and the rf outlets…

There is a rights issue with user hass. I also tried to switch to user hass but then he is asking for a password.

Can someone help me to put the rights correct and help to install components (like rpi-RF and mosquitto and DHT11)??

I did follow the instructions:

Login to Raspberry Pi ssh pi@your_raspberry_pi_ip
•Change to hass user sudo su -s /bin/bash hass
•Change to virtual enviroment source /srv/hass/hass_venv/bin/activate
pip3 install rpi-rf

and there i get errors…

warning: no files found matching ‘LICENCE.txt’
Requirement already satisfied (use --upgrade to upgrade): RPi.GPIO in /usr/lib/python3/dist-packages (from rpi-rf)
Installing collected packages: rpi-rf
Running setup.py install for rpi-rf
changing mode of build/scripts-3.4/rpi-rf_send from 644 to 755
changing mode of build/scripts-3.4/rpi-rf_receive from 644 to 755
error: could not create ‘/usr/local/lib/python3.4/dist-packages/rpi_rf’: Permission denied

Same issue occurs by installing mosquitto…messages regarding rights an acces to directories denied.

My config is raps pi 3 1b and installed latest version NOOBS

Thanks in advance for your help! Ron,

P.S. I did install in the past the NO virtual version and that worked fine…

The hass user deliberately has no right to login for security reasons but you can switch to the hass user with:

$ sudo su - hass

well in my opinion is that what i did with:

sudo su -s /bin/bash hass ???

Yes, sorry, missed that in your post.

For who might be interested in my experiences…I solved everything except the arduino communication (that is the next subject).

The problems were various. If you want do install the 1-step installation, than my advise is, DO EXACT THE SAME as you see on the video on YouTube(even ask your wife to come in for a second), you do need winscp and the diskimagemanager and the jessie image.

I started with noobs (because i knew that was working fine on anything else) and my unzip/filezilla and that created all the problems with rights etc…

And again something simpel, take care that your RPI has a ‘static ip’ otherwise your mosquitto broker doesn’t communicate anymore, and the components are gone!

Have a nice day!!

@Ron which video are you referring to?

our friend Ben’s https://www.youtube.com/watch?v=VGl3KTrYo6s