Simple and Fast Installing Home Assistant Core (and Matter Server) on Android: No Root, No QEMU

Got an old Android phone and don’t want to buy a Raspberry Pi or a PC to host Home Assistant? This tutorial is for you!

Requirements: Android Phone – No Root Required

Credit: Special thanks to George-Seven for the Termux-Udocker repository.


Step 1: Install the Termux app from F-Droid.org

Note:

  • Although Termux is also available on the Play Store, according to the Termux developers, the version on F-Droid is the most stable.
  • After installing Termux, it is recommended, though not required, to install OpenSSH and enable remote access from a PC for easier interaction with the Termux Terminal. For details on setting up Termux remote access. See more: Termux Remote Access Guide.

Step 2: Install Git in Termux:

# Update & Upgrade Termux packages
pkg update && pkg upgrade
# Install git
pkg install git

Step 3: Install HomeAssistant-Termux

Clone HomeAssistant-Termux:

git clone https://github.com/huytungst/HomeAssistant-Termux.git

Go to the root directory of HomeAssistant-Termux:

cd HomeAssistant-Termux

Install Udocker from the cloned repository:

./install_udocker.sh

Run the script home-assistant-core.sh:

./home-assistant-core.sh

Wait about 10 minutes, then you can access Home Assistant on port 8123 (http://localhost:8123/)

Also, you can install and run the Python Matter Server to enable Matter compatibility.

Note: To keep both containers (Home Assistant Core and Python Matter Server) running at the same time, start each one in a separate Termux session. Two easy ways are either opening two Termux terminal sessions (using the Termux GUI) or using the screen command. See more

Run the script matter-server.sh:

./matter-server.sh

Then, enable the Matter Integration in Home Assistant and connect them using the WebSocket URL:

ws://localhost:5580/ws

Tips: Running Multiple Containers Simultaneously

To keep both containers (Home Assistant Core and Python Matter Server) running at the same time, start each one in a separate Termux session. Two easy ways are either opening two Termux terminal sessions (using the Termux GUI) or using the screen command.

Option 1: Using Termux GUI

  1. Open Termux.
  2. Start the first container in the initial Termux session.
  3. Open a new Termux session by swiping from the left edge to open the drawer, then selecting New Session.
  4. In this new session, start the second container.

Option 2: Using screen

If you prefer to use screen to manage multiple sessions in a single Termux window:

  1. Open Termux and install screen if you haven’t already:
    pkg install screen
    
  2. Start screen and create a new session:
    screen -S container1
    
  3. Start the first container in this screen session.
  4. To create a new screen session, detach from the current session by pressing Ctrl + A followed by D.
  5. Start a new session for the second container:
    screen -S container2
    
  6. Start the second container in this new session.
  7. To switch between sessions, use:
    screen -r container1  # For the first container
    screen -r container2  # For the second container
    

This completes the setup for running Home Assistant Core and the Matter Server on Android without root.

:bangbang: Known Issue: Home Assistant setup failed for some dependencies, including ‘bluetooth,’ ‘usb,’ ‘zeroconf,’ etc. :robot::wrench: Any help would be appreciated! :pray:

4 Likes

Hello!
After run script “home-assistant-core.sh” and downloading layer,
Error: runc or crun executable not found.
How to fix and run HA?

I have no idea… It worked fine for me on Samsung Galaxy A30 / Android 11 without any issues. Can you give some information about your phone model and it’s Android version?

I’m having exactly the same problem. Tried it multiple times on Android 8,10 and 11. Could it be some incompatibility with the latest version of Termux or Python?

Hi all,

When running “home-assistant-core.sh”, I get:
Error: manifest not found or not authorized
Error: no files downloaded
Error: Image or container not availale

Running on Android 6.0
Any Idea how to fix?

Tried it, very quick setup but some integrations I need are not working: Solarman(custom), Meteo France, Sonoff - this one seems to be related to zeroconf issue

I get
no image found in manifest for platform (linux/arm/v4)
no manifest for given image and platform
Error: no files downloaded

Samsung Tab A running lineage OS 20.0
Android 13.

Looking for tips to solve.

Did you login with ?
Try logout and run the script once more.

Although it doesn’t work today (10 Mar 2025), I managed to get it to work on an android phone. Thanks for the help.

Hi villgzs,
I have the same issue, how you fix it please?
thanks

When running “home-assistant-core.sh”, I get:

ERROR (MainThread) [homeassistant.setup] Error during se tup of component http: [Errno 13] Permission denied
Traceback (most recent call last):

 File "/usr/src/homeassistant/homeassistant/setup.py", line 422, in _async_setu                           p_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/__init__.py", line                            264, in async_setup
    local_ip = await source_ip_task
               ^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/__init__.py", li                           ne 48, in async_get_source_ip
    adapters = await async_get_adapters(hass)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/__init__.py", li                           ne 33, in async_get_adapters
    network: Network = await async_get_network(hass)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/singleton.py", line 67, in                            async_wrapped
    result = await func(hass)
             ^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/network.py", lin                           e 39, in async_get_network
    await network.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/network/network.py", lin                           e 65, in async_setup
    self.adapters = await async_load_adapters()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/util.py", line 2                           7, in async_load_adapters
    for adapter in ifaddr.get_adapters()
                   ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/ifaddr/_posix.py", line 56, in g                           et_adapters
    raise OSError(eno, os.strerror(eno))
PermissionError: [Errno 13] Permission denied
2025-03-20 03:57:39.450 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'websocket_api'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.451 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'websocket_api': Could not setup dependencies: http
2025-03-20 03:57:39.457 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'network'. Setup failed for dependencies: ['websocket_api']
2025-03-20 03:57:39.457 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'network': Could not setup dependencies: websocket_api
2025-03-20 03:57:39.777 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'api'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.778 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'api': Could not setup dependencies: http
2025-03-20 03:57:39.779 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'auth'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.779 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'auth': Could not setup dependencies: http
2025-03-20 03:57:39.779 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'config'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.779 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'config': Could not setup dependencies: http
2025-03-20 03:57:39.780 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'diagnostics'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.780 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'diagnostics': Could not setup dependencies: http
2025-03-20 03:57:39.781 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'file_upload'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.781 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'file_upload': Could not setup dependencies: http
2025-03-20 03:57:39.781 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'image_upload'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.781 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'image_upload': Could not setup dependencies: http
2025-03-20 03:57:39.782 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'person'. Setup failed for dependencies: ['image_upload', 'htt                           p']
2025-03-20 03:57:39.782 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'person': Could not setup dependencies: image_upload, http
2025-03-20 03:57:39.782 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'onboarding'. Setup failed for dependencies: ['auth', 'http',                            'person']
2025-03-20 03:57:39.785 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'onboarding': Could not setup dependencies: auth, http, person
2025-03-20 03:57:39.785 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'lovelace'. Setup failed for dependencies: ['onboarding']
2025-03-20 03:57:39.785 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'lovelace': Could not setup dependencies: onboarding
2025-03-20 03:57:39.786 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'repairs'. Setup failed for dependencies: ['http']
2025-03-20 03:57:39.786 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'repairs': Could not setup dependencies: http
2025-03-20 03:57:39.786 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'search'. Setup failed for dependencies: ['websocket_api']
2025-03-20 03:57:39.787 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'search': Could not setup dependencies: websocket_api
2025-03-20 03:57:39.787 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'frontend'. Setup failed for dependencies: ['api', 'auth', 'co                           nfig', 'diagnostics', 'file_upload', 'http', 'lovelace', 'onboarding', 'repairs'                           , 'search', 'websocket_api']
2025-03-20 03:57:39.787 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'frontend': Could not setup dependencies: api, auth, config, diagnostics, file                           _upload, http, lovelace, onboarding, repairs, search, websocket_api
2025-03-20 03:57:39.937 WARNING (Recorder) [homeassistant.components.recorder.ut                           il] The system could not validate that the sqlite3 database at //config/home-ass                           istant_v2.db was shutdown cleanly
2025-03-20 03:57:40.113 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'zeroconf'. Setup failed for dependencies: ['network', 'api']
2025-03-20 03:57:40.114 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'zeroconf': Could not setup dependencies: network, api
2025-03-20 03:57:40.116 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'webhook'. Setup failed for dependencies: ['http']
2025-03-20 03:57:40.117 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'webhook': Could not setup dependencies: http
2025-03-20 03:57:40.118 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'cloud'. Setup failed for dependencies: ['auth', 'http', 'repa                           irs', 'webhook']
2025-03-20 03:57:40.121 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'cloud': Could not setup dependencies: auth, http, repairs, webhook
2025-03-20 03:57:40.123 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'ssdp'. Setup failed for dependencies: ['network']
2025-03-20 03:57:40.123 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'ssdp': Could not setup dependencies: network
2025-03-20 03:57:40.124 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'usb'. Setup failed for dependencies: ['websocket_api']
2025-03-20 03:57:40.125 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'usb': Could not setup dependencies: websocket_api
2025-03-20 03:57:40.126 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'bluetooth'. Setup failed for dependencies: ['usb']
2025-03-20 03:57:40.128 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'bluetooth': Could not setup dependencies: usb
2025-03-20 03:57:46.025 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'stt'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.026 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'stt': Could not setup dependencies: http
2025-03-20 03:57:46.027 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'intent'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.027 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'intent': Could not setup dependencies: http
2025-03-20 03:57:46.028 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'conversation'. Setup failed for dependencies: ['http', 'inten                           t']
2025-03-20 03:57:46.028 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'conversation': Could not setup dependencies: http, intent
2025-03-20 03:57:46.030 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'camera'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.030 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'camera': Could not setup dependencies: http
2025-03-20 03:57:46.047 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'backup'. Setup failed for dependencies: ['http', 'websocket_a                           pi']
2025-03-20 03:57:46.047 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'backup': Could not setup dependencies: http, websocket_api
2025-03-20 03:57:46.052 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'history'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.056 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'history': Could not setup dependencies: http
2025-03-20 03:57:46.065 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'go2rtc'. Setup failed for dependencies: ['camera']
2025-03-20 03:57:46.065 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'go2rtc': Could not setup dependencies: camera
2025-03-20 03:57:46.072 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'system_health'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.072 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'system_health': Could not setup dependencies: http
2025-03-20 03:57:46.073 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'media_source'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.073 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'media_source': Could not setup dependencies: http
2025-03-20 03:57:46.074 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'energy'. Setup failed for dependencies: ['websocket_api', 'hi                           story']
2025-03-20 03:57:46.074 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'energy': Could not setup dependencies: websocket_api, history
2025-03-20 03:57:46.074 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'logbook'. Setup failed for dependencies: ['frontend', 'http']
2025-03-20 03:57:46.075 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'logbook': Could not setup dependencies: frontend, http
2025-03-20 03:57:46.075 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'my'. Setup failed for dependencies: ['frontend']
2025-03-20 03:57:46.075 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'my': Could not setup dependencies: frontend
2025-03-20 03:57:46.075 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'stream'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.075 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'stream': Could not setup dependencies: http
2025-03-20 03:57:46.084 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'application_credentials'. Setup failed for dependencies: ['au                           th', 'websocket_api']
2025-03-20 03:57:46.084 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'application_credentials': Could not setup dependencies: auth, websocket_api
2025-03-20 03:57:46.084 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'analytics'. Setup failed for dependencies: ['api', 'websocket                           _api']
2025-03-20 03:57:46.084 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'analytics': Could not setup dependencies: api, websocket_api
2025-03-20 03:57:46.159 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'tts'. Setup failed for dependencies: ['http']
2025-03-20 03:57:46.161 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'tts': Could not setup dependencies: http
2025-03-20 03:57:46.201 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'assist_pipeline'. Setup failed for dependencies: ['conversati                           on', 'stt', 'tts']
2025-03-20 03:57:46.201 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'assist_pipeline': Could not setup dependencies: conversation, stt, tts
2025-03-20 03:57:46.316 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'mobile_app'. Setup failed for dependencies: ['http', 'intent'                           , 'person', 'webhook', 'websocket_api']
2025-03-20 03:57:46.318 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'mobile_app': Could not setup dependencies: http, intent, person, webhook, web                           socket_api
2025-03-20 03:57:46.368 ERROR (MainThread) [homeassistant.setup] Unable to set u                           p dependencies of 'default_config'. Setup failed for dependencies: ['assist_pipe                           line', 'bluetooth', 'cloud', 'conversation', 'energy', 'go2rtc', 'history', 'log                           book', 'media_source', 'mobile_app', 'my', 'ssdp', 'stream', 'usb', 'webhook', '                           zeroconf']
2025-03-20 03:57:46.368 ERROR (MainThread) [homeassistant.setup] Setup failed fo                           r 'default_config': Could not setup dependencies: assist_pipeline, bluetooth, cl                           oud, conversation, energy, go2rtc, history, logbook, media_source, mobile_app, m                           y, ssdp, stream, usb, webhook, zeroconf
2025-03-20 03:57:46.731 WARNING (MainThread) [homeassistant.bootstrap] Detected                            that frontend did not load. Activating recovery mode
2025-03-20 03:57:47.455 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.455 ERROR (MainThread) [homeassistant.setup] Error during setup of componen                           t http: [Errno 13] Permission denied
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 422, in _async_setu                           p_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/__init__.py", line                            264, in async_setup
    local_ip = await source_ip_task
               ^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/__init__.py", li                           ne 48, in async_get_source_ip
    adapters = await async_get_adapters(hass)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/__init__.py", li                           ne 33, in async_get_adapters
    network: Network = await async_get_network(hass)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/singleton.py", line 67, in                            async_wrapped
    result = await func(hass)
             ^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/network.py", lin                           e 39, in async_get_network
    await network.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/network/network.py", lin                           e 65, in async_setup
    self.adapters = await async_load_adapters()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/util.py", line 2                           7, in async_load_adapters
    for adapter in ifaddr.get_adapters()
                   ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/ifaddr/_posix.py", line 56, in g                           et_adapters
    raise OSError(eno, os.strerror(eno))
PermissionError: [Errno 13] Permission denied
2025-03-20 03:57:47.471 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.471 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'api'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.471 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.471 ERROR (MainThread) [homeassistant.setup] Setup failed for 'api': Could                            not setup dependencies: http
2025-03-20 03:57:47.471 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.471 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'auth'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.471 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.471 ERROR (MainThread) [homeassistant.setup] Setup failed for 'auth': Could                            not setup dependencies: http
2025-03-20 03:57:47.472 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.472 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'config'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.472 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.472 ERROR (MainThread) [homeassistant.setup] Setup failed for 'config': Cou                           ld not setup dependencies: http
2025-03-20 03:57:47.472 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.472 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'diagnostics'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.473 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.473 ERROR (MainThread) [homeassistant.setup] Setup failed for 'diagnostics'                           : Could not setup dependencies: http
2025-03-20 03:57:47.473 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.473 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'file_upload'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.473 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.473 ERROR (MainThread) [homeassistant.setup] Setup failed for 'file_upload'                           : Could not setup dependencies: http
2025-03-20 03:57:47.473 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.473 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'image_upload'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.473 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.473 ERROR (MainThread) [homeassistant.setup] Setup failed for 'image_upload                           ': Could not setup dependencies: http
2025-03-20 03:57:47.474 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.474 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'person'. Setup failed for dependencies: ['image_upload', 'http']
2025-03-20 03:57:47.474 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.474 ERROR (MainThread) [homeassistant.setup] Setup failed for 'person': Cou                           ld not setup dependencies: image_upload, http
2025-03-20 03:57:47.474 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.474 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'onboarding'. Setup failed for dependencies: ['auth', 'http', 'person']
2025-03-20 03:57:47.474 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.474 ERROR (MainThread) [homeassistant.setup] Setup failed for 'onboarding':                            Could not setup dependencies: auth, http, person
2025-03-20 03:57:47.474 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.474 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'lovelace'. Setup failed for dependencies: ['onboarding']
2025-03-20 03:57:47.475 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.475 ERROR (MainThread) [homeassistant.setup] Setup failed for 'lovelace': C                           ould not setup dependencies: onboarding
2025-03-20 03:57:47.475 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.475 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'repairs'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.475 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.475 ERROR (MainThread) [homeassistant.setup] Setup failed for 'repairs': Co                           uld not setup dependencies: http
2025-03-20 03:57:47.475 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.475 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'websocket_api'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.479 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.479 ERROR (MainThread) [homeassistant.setup] Setup failed for 'websocket_ap                           i': Could not setup dependencies: http
2025-03-20 03:57:47.479 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.479 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'search'. Setup failed for dependencies: ['websocket_api']
2025-03-20 03:57:47.479 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.479 ERROR (MainThread) [homeassistant.setup] Setup failed for 'search': Cou                           ld not setup dependencies: websocket_api
2025-03-20 03:57:47.479 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.479 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'frontend'. Setup failed for dependencies: ['api', 'auth', 'config', 'diagnos                           tics', 'file_upload', 'http', 'lovelace', 'onboarding', 'repairs', 'search', 'we                           bsocket_api']
2025-03-20 03:57:47.480 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.480 ERROR (MainThread) [homeassistant.setup] Setup failed for 'frontend': C                           ould not setup dependencies: api, auth, config, diagnostics, file_upload, http,                            lovelace, onboarding, repairs, search, websocket_api
2025-03-20 03:57:47.480 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.480 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'webhook'. Setup failed for dependencies: ['http']
2025-03-20 03:57:47.480 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.480 ERROR (MainThread) [homeassistant.setup] Setup failed for 'webhook': Co                           uld not setup dependencies: http
2025-03-20 03:57:47.481 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.481 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'cloud'. Setup failed for dependencies: ['auth', 'http', 'repairs', 'webhook'                           ]
2025-03-20 03:57:47.481 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.481 ERROR (MainThread) [homeassistant.setup] Setup failed for 'cloud': Coul                           d not setup dependencies: auth, http, repairs, webhook
2025-03-20 03:57:47.481 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.481 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies                            of 'recovery_mode'. Setup failed for dependencies: ['frontend', 'cloud']
2025-03-20 03:57:47.481 ERROR (MainThread) [homeassistant.setup] 2025-03-20 03:5                           7:47.481 ERROR (MainThread) [homeassistant.setup] Setup failed for 'recovery_mod                           e': Could not setup dependencies: frontend, cloud

Hello Leov76,

I have two android phones. I had success with an older Vernee.

~ $ uname -a
Linux localhost 3.18.35 #1 SMP PREEMPT Mon Sep 25 19:39:03 CST 2017 aarch64 Android

~ $ cat /proc/cpuinfo 
Processor	: AArch64 Processor rev 2 (aarch64)
processor	: 0
model name	: AArch64 Processor rev 2 (aarch64)
BogoMIPS	: 26.00
BogoMIPS	: 26.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 2

processor	: 1
model name	: AArch64 Processor rev 2 (aarch64)
BogoMIPS	: 26.00
BogoMIPS	: 26.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 2

Hardware	: MT6750V/C

I modified the pulled home-assistant.sh in the HomeAssistant-Termux directory as the repository was from the last year. So I modified the docker source:

# The script will find and download the image from Docker Hub, not from GitHub Container Registry
IMAGE_NAME="homeassistant/home-assistant:2024.10"
CONTAINER_NAME="home-assistant-core"

Probably there is a missing crun or runc binary which does not come by the termuk pkg manager. So I tried install by pip ( pip install runc ) and since then I can run the script and web page working on port 8123 and phone app also.

I have no idea why does not start this on my newer phone:

~/HomeAssistant-Termux $ uname -a
Linux localhost 4.19.191-28701252-abA137FXXS8EYA2 #1 SMP PREEMPT Tue Jan 7 16:23:36 KST 2025 armv8l Android

processor	: 6
model name	: ARMv8 Processor rev 1 (v8l)
BogoMIPS	: 26.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x3
CPU part	: 0xd0a
CPU revision	: 1

processor	: 7
model name	: ARMv8 Processor rev 1 (v8l)
BogoMIPS	: 26.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x3
CPU part	: 0xd0a
CPU revision	: 1

Hardware	: MT6769V/CT
Hardware	: MT6769V/CT

And I also faced problem on a different phone I borrowed.

This is the problem:

2025-03-19 19:59:18.670 ERROR (MainThread) [homeassistant.setup] Error during setup of component http
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 332, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/__init__.py", line 226, in async_setup
    local_ip = await async_get_source_ip(hass)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/__init__.py", line 41, in async_get_source_ip
    adapters = await async_get_adapters(hass)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/__init__.py", line 32, in async_get_adapters
    network: Network = await async_get_network(hass)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/singleton.py", line 41, in async_wrapped
    result = await func(hass)
             ^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/network.py", line 28, in async_get_network
    await network.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/network/network.py", line 54, in async_setup
    self.adapters = await async_load_adapters()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/network/util.py", line 26, in async_load_adapters
    for adapter in ifaddr.get_adapters()
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ifaddr/_posix.py", line 56, in get_adapters
    raise OSError(eno, os.strerror(eno))
PermissionError: [Errno 13] Permission denied

There was a cheap Alcatel phone I gave back. I could install homassistant successfully on that phone as the steps above also.

Installing home assistant is very easy on a Rasberry Pi. I tried it. But It would be useful in some cases If it is working on a phone. That is why I spent some time for it.

I think I found the problem. On my problematic phone I can read:

~ $ ifconfig
Warning: cannot open /proc/net/dev (Permission denied). Limited output.

The good working one does not say any permission issue. It shows all data.

I tried also this:

~ $ cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
ccmni7:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

Where home assistant does not start:

~ $ cat /proc/net/dev
cat: /proc/net/dev: Permission denied

So I think I can’t install home-assistant on that phone where there is no permission for opening /proc/net/dev file. If somebody know how to give rigths for termux user please help me ( or us )! :slight_smile:

1 Like

Additionally… I got back the Alcatel phone and I was wondering, that It is an Android11 phone and I can read /proc/net/dev file on it.

~ $ screenfetch 
       ╲ ▁▂▂▂▁ ╱        
       ▄███████▄        
      ▄██ ███ ██▄        
     ▄███████████▄       OS: Android 11
  ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄ █▄    Device: 5033F (Macau)
  ██ █████████████ ██    ROM: RP1A.200720.011 release-keys
  ██ █████████████ ██    Baseband: unknown
  ██ █████████████ ██    Kernel: armv7l Linux 4.14.186-00011-ge8ae332-dirty
  ██ █████████████ ██    Uptime: 
     █████████████       CPU: MT8765WA
      ███████████        GPU: MT8765WA
       ██     ██         RAM: 553MiB / 870MiB
       ██     ██        
~ $ cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
ccmni3:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

The only problem on this phone the log file also. It grew up very fast, so fit the empty place in memory.

Hāi, tā duì wǒ bù qǐ zuòyòng


crash

My phone aarch64 64bit. Open BootLoader !!!
To OK function Home_assistant.

Wouldn’t it be better to have QEMU (+KVM) in Termux?

pkg install qemu-system-x86-64-headless qemu-utils -y

or

pkg install qemu-system-aarch64-headless qemu-utils -y

image file:

----_aarch64.qcow2

config QEMU ???

qemu-system-aarch64 -machine virt -m 3072 -smp cpus=4 -drive file=haos_aarch64.qcow2 -netdev user -display curses

Error start HAOS + IPV6 totall err

Start Matter-server error.