Hass --script check_config Command not Found


#1

When I attempt to run the check config script according to this page I get:

[email protected]:~ $ hass --script check_config
-bash: hass: command not found

Is there something im missing?


#2

You need to active the virtual environment.


#3

Is there instructions on how i would go about doing this?


#4

#5

Thanks for the help, but I am still getting the same error:

[email protected]:~ $ hass --script check_config
-bash: hass: command not found

#6

You have still not activated the virtual environment.


#7

Maybe i’m not understanding things properly. Are you saying that every time i want to run the check config script, i need to do:

sudo -u homeassistant -H -s

source /srv/homeassistant/bin/activate

hass --script check_config

I can’t imagine this is the case, as I’ve seen videos of multiple people run the command without the virtual environment active. Such as: https://youtu.be/NHYv8Fn20qI?t=262


#8

That is what I’m saying :slight_smile:
those people do not have a virtual environment.