Homeassistant core on Android (Guide Dec'22)

Hi,
many thanks for your answer.
when I run hass I get

~ $ hass
No command hass found, did you mean:
Command has in package has
Command pass in package pass
~ $

You must first activate the virtual environment

~ $ source ~/hass/bin/activate
(hass) ~ $ hass

Hi
That was the piece that was missing. Now HA is starting. Many thanks for your help

Best regards

Hello, thank you very much for that great tutorial. The setup went just fine, but when I start Homeassistant in the virtual environment I get the following error code:

PermissionError: [Errno 13] Permission denied: '/proc/stat/'

And the initial setup of hass halts.

Does anyone have an idea how to solve this?

Best regards

Hi Ramblingman

I want to thank you very much for your tutorial and for sharing it. Best regards

This error occurs due to access restrictions in new (10+) versions of android.
Here is an instruction on how to get around a similar error for /proc/net/psched. In the same way (by calling the command through adb shell), you can bypass the error with /proc/stat.

1 Like

I notice that HA installed in this way don’t has the addon store under settings. How can I have this store in this installation? best regards

1 Like

Addons are available on HA OS or Supervised. Neither can be directly installed on Android. Theoretically, having a flashed android kernel, you can install a virtual machine on which you can install HA OS.
But if you need advanced features, then it is better to run the server on a PC virtual machine or Raspberry Pie.

I need only to install an Editor, to edit configuration files. Do you know how can install an editor or how can I edit configuration.yaml? best regards

I don’t know of a way to enable the editor inside HA.
There are several other ways to access the configuration file.

  1. Run the nano ~/. homeassistant/configuration.yaml command in the termux. Then a simple text editor will open on the command line.
  2. Get access from a computer to a smartphone via ssh. Then you can download the file to your computer via sftp (for example, FileZilla), edit it and upload it back to your smartphone.
  3. Install code-server on your termux and edit the file through the page in the browser.

I use these three methods, depending on how big changes I need.

Hi Franken_Stein
Many thanks for your help. Best regards

Hey, tried this a few times, tried others, tried chroot into ubuntu and installing from there and I always get stuck while installing orjson it is just stuck.
Can you help me please? btw I really appreciate this detailed guide.

Try to just wait. The first installation may take a couple of hours.

Idk if it was just because i was installing it that many times but sometimes it gave me an error after a while.

got it working, but I have another question, where can i find the configuration.yaml in this type od installation?
Thanks.

Hello everyone I have toshiba at10-a with android 4.2.1 version. Can I install home asistant core ?

I described the path to the configuration file and how to edit it in this comment:

I’m afraid that this requires Android 7.
You can try installing LineageOS instead of a regular android. (if you install a newer version of android, I do not recommend setting the version higher than 9. Starting with Android 10, Google has tightened security and limited access to the /proc folder. Because of this, the server and some ignores may not work correctly)
Or install a virtual machine with Linux and install a server on it. (But running on a virtual machine will be much slower. I had a difference in server startup speed of 10 minutes instead of 10 seconds)

1 Like

Hi, me too have the same problem, do you find a solution?
Thanks in advance

1 Like

Hi, Right now I`m trying to install haas on my phone, but facing with exect problem. How did you fixed that?