# Instalação do home assistant encrava

**URL:** <https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421>\
**Category:** Instalação\
**Created:** [20 Novembro , 2019 23:45 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421 "2019-11-20T23:45:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [20 Novembro , 2019 23:45 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/1 "2019-11-20T23:45:46Z")

</div>

Boas pessoal!

Precisava de uma ajuda p.f.

Instalei o Raspbian (com desktop), activei o ssh e até aqui tudo bem.  
Depois segui as instruções da instalação manual, mas após o comando “hass”, penso que para arrancar o home assistant, pára.

E se aceder ao ip:8123 apenas tem “404: Not Found”

O log mostra :

> Config directory: /home/pi/.homeassistant
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_5) [homeassistant.loader] Loaded group from homeassistant.components.group
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_3) [homeassistant.loader] Loaded automation from homeassistant.components.automation
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_4) [homeassistant.loader] Loaded default\_config from homeassistant.components.default\_config
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_5) [homeassistant.loader] Loaded script from homeassistant.components.script
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_6) [homeassistant.loader] Loaded tts from homeassistant.components.tts
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_2) [homeassistant.loader] Loaded homeassistant from homeassistant.components.homeassistant
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_0) [homeassistant.loader] Loaded device\_automation from homeassistant.components.device\_automation
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_11) [homeassistant.loader] Loaded persistent\_notification from homeassistant.components.persistent\_notification
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_3) [homeassistant.loader] Loaded http from homeassistant.components.http
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setting up homeassistant
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setup of domain homeassistant took 0.0 seconds.
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_8) [homeassistant.loader] Loaded webhook from homeassistant.components.webhook
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setting up persistent\_notification
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setup of domain persistent\_notification took 0.0 seconds.
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_5) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_10) [homeassistant.loader] Loaded config from homeassistant.components.config
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_7) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_13) [homeassistant.loader] Loaded api from homeassistant.components.api
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_4) [homeassistant.loader] Loaded auth from homeassistant.components.auth
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_3) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_1) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_8) [homeassistant.loader] Loaded system\_log from homeassistant.components.system\_log
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_9) [homeassistant.loader] Loaded websocket\_api from homeassistant.components.websocket\_api
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_16) [homeassistant.loader] Loaded history from homeassistant.components.history
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_10) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_17) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_18) [homeassistant.loader] Loaded map from homeassistant.components.map
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_13) [homeassistant.loader] Loaded mobile\_app from homeassistant.components.mobile\_app
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_0) [homeassistant.loader] Loaded person from homeassistant.components.person
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_11) [homeassistant.loader] Loaded ssdp from homeassistant.components.ssdp
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_14) [homeassistant.loader] Loaded sun from homeassistant.components.sun
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_8) [homeassistant.loader] Loaded system\_health from homeassistant.components.system\_health
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_5) [homeassistant.loader] Loaded updater from homeassistant.components.updater
> 
> 2019-11-20 23:38:05 INFO (SyncWorker\_6) [homeassistant.loader] Loaded zeroconf from homeassistant.components.zeroconf
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.bootstrap] Setting up {‘system\_log’}
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setting up http
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setting up system\_log
> 
> 2019-11-20 23:38:05 INFO (MainThread) [homeassistant.setup] Setup of domain system\_log took 0.0 seconds.
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setting up recorder
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.1 seconds.
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setting up lovelace
> 
> 2019-11-20 23:38:06 ERROR (MainThread) [homeassistant.setup] Error during setup of component lovelace
> 
> Traceback (most recent call last):
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py”, line 172, in \_async\_setup\_component
> 
> hass, processed\_config
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/lovelace/ **init**.py”, line 66, in async\_setup
> 
> hass.components.frontend.async\_register\_built\_in\_panel(
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 421, in **getattr**
> 
> component: Optional[ModuleType] = integration.get\_component()
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 223, in get\_component
> 
> cache[self.domain] = importlib.import\_module(self.pkg\_path)
> 
> File “/usr/lib/python3.7/importlib/ **init**.py”, line 127, in import\_module
> 
> return \_bootstrap.\_gcd\_import(name[level:], package, level)
> 
> File “”, line 1006, in \_gcd\_import
> 
> File “”, line 983, in \_find\_and\_load
> 
> File “”, line 967, in \_find\_and\_load\_unlocked
> 
> File “”, line 677, in \_load\_unlocked
> 
> File “”, line 728, in exec\_module
> 
> File “”, line 219, in \_call\_with\_frames\_removed
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/frontend/ **init**.py”, line 10, in
> 
> import hass\_frontend
> 
> ModuleNotFoundError: No module named ‘hass\_frontend’
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setting up updater
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setting up ssdp
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds.
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setting up person
> 
> 2019-11-20 23:38:06 INFO (MainThread) [homeassistant.setup] Setting up sun
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up group
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
> 
> 2019-11-20 23:38:07 INFO (SyncWorker\_4) [homeassistant.loader] Loaded binary\_sensor from homeassistant.components.binary\_sensor
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up auth
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up history
> 
> 2019-11-20 23:38:07 ERROR (MainThread) [homeassistant.setup] Error during setup of component history
> 
> Traceback (most recent call last):
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py”, line 172, in \_async\_setup\_component
> 
> hass, processed\_config
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/history/ **init**.py”, line 283, in async\_setup
> 
> hass.components.frontend.async\_register\_built\_in\_panel(
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 421, in **getattr**
> 
> component: Optional[ModuleType] = integration.get\_component()
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 223, in get\_component
> 
> cache[self.domain] = importlib.import\_module(self.pkg\_path)
> 
> File “/usr/lib/python3.7/importlib/ **init**.py”, line 127, in import\_module
> 
> return \_bootstrap.\_gcd\_import(name[level:], package, level)
> 
> File “”, line 1006, in \_gcd\_import
> 
> File “”, line 983, in \_find\_and\_load
> 
> File “”, line 967, in \_find\_and\_load\_unlocked
> 
> File “”, line 677, in \_load\_unlocked
> 
> File “”, line 728, in exec\_module
> 
> File “”, line 219, in \_call\_with\_frames\_removed
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/frontend/ **init**.py”, line 10, in
> 
> import hass\_frontend
> 
> ModuleNotFoundError: No module named ‘hass\_frontend’
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up script
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
> 
> 2019-11-20 23:38:07 INFO (SyncWorker\_3) [homeassistant.loader] Loaded google\_translate from homeassistant.components.google\_translate
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up config
> 
> 2019-11-20 23:38:07 ERROR (MainThread) [homeassistant.setup] Error during setup of component config
> 
> Traceback (most recent call last):
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py”, line 172, in \_async\_setup\_component
> 
> hass, processed\_config
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/config/ **init**.py”, line 34, in async\_setup
> 
> hass.components.frontend.async\_register\_built\_in\_panel(
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 421, in **getattr**
> 
> component: Optional[ModuleType] = integration.get\_component()
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 223, in get\_component
> 
> cache[self.domain] = importlib.import\_module(self.pkg\_path)
> 
> File “/usr/lib/python3.7/importlib/ **init**.py”, line 127, in import\_module
> 
> return \_bootstrap.\_gcd\_import(name[level:], package, level)
> 
> File “”, line 1006, in \_gcd\_import
> 
> File “”, line 983, in \_find\_and\_load
> 
> File “”, line 967, in \_find\_and\_load\_unlocked
> 
> File “”, line 677, in \_load\_unlocked
> 
> File “”, line 728, in exec\_module
> 
> File “”, line 219, in \_call\_with\_frames\_removed
> 
> File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/frontend/ **init**.py”, line 10, in
> 
> import hass\_frontend
> 
> ModuleNotFoundError: No module named ‘hass\_frontend’
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up websocket\_api
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain websocket\_api took 0.0 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up system\_health
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain system\_health took 0.0 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up api
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up webhook
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.4 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up binary\_sensor
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain binary\_sensor took 0.0 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up tts
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.1 seconds.
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up onboarding
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setting up device\_automation
> 
> 2019-11-20 23:38:07 INFO (MainThread) [homeassistant.setup] Setup of domain device\_automation took 0.0 seconds.
> 
> 2019-11-20 23:38:08 INFO (MainThread) [homeassistant.setup] Setting up cloud
> 
> 2019-11-20 23:38:08 INFO (MainThread) [homeassistant.components.binary\_sensor] Setting up binary\_sensor.updater
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.setup] Setting up automation
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 1.7 seconds.
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 1.7 seconds.
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.2 seconds.
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: lovelace
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.1 seconds.
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile\_app: Unable to import component
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
> 
> 2019-11-20 23:38:09 INFO (SyncWorker\_17) [homeassistant.loader] Loaded cast from homeassistant.components.cast
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default\_config. Setup failed for dependencies: config, frontend, history, logbook, map, mobile\_app
> 
> 2019-11-20 23:38:09 ERROR (MainThread) [homeassistant.setup] Setup failed for default\_config: Could not set up all dependencies.
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 4.30s
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.core] Starting Home Assistant
> 
> 2019-11-20 23:38:09 INFO (MainThread) [homeassistant.core] Timer:starting
> 
> 2019-11-20 23:38:09 INFO (SyncWorker\_0) [homeassistant.components.zeroconf] Starting Zeroconf broadcast

Obrigado!

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [21 Novembro , 2019 00:28 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/2 "2019-11-21T00:28:34Z")

</div>

Raspbian com Desktop porquê?

> [@Bruno\_Santos](#):
>
> Depois segui as instruções da instalação manual, mas após o comando “hass”, penso que para arrancar o home assistant, pára.

Quais instruções? Que tutorial seguiste?

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [21 Novembro , 2019 09:06 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/3 "2019-11-21T09:06:57Z")

</div>

Bom dia,

Obrigado desde já pela resposta, desktop, porque ambiente gráfico para um leigo acredito que seja mais fácil. Pelo menos activar o ssh foi…

Eu segui estas instruções : [https://www.home-assistant.io/docs/installation/raspberry-pi/](https://www.home-assistant.io/docs/installation/raspberry-pi/)  
E de fundo usei o vídeo do Bruno Horta : [https://www.youtube.com/watch?v=1CTvBMv\_Bdg](https://www.youtube.com/watch?v=1CTvBMv_Bdg)  
Mas encravei na parte do comando “hassio”…

Hoje de manhã, abri o link e continua “404”

Obrigado

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [21 Novembro , 2019 09:33 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/4 "2019-11-21T09:33:48Z")

</div>

Home Assistant em venv?!?! Dizes que és leigo e por isso instalaste a versão desktop e depois instalas o HA em venv?? Para teres problemas que não consegues resolver todos os dias e teres de fazer tudo à mão?

Se quiseres continuar com os problemas força, senão segue um bom conselho e usa isto:

> [@De Hassio para "RaspAssio"](https://forum.cpha.pt/t/de-hassio-para-raspassio/961):
>
> Este tutorial é um complemento ao publicado no nosso site em [CPHA.pt - Hass.io (Raspbian + Docker)](https://cpha.pt/guias-instalacao/hass-io-raspbian-docker) e escrito pelo @Fl4v10. Em primeiro lugar, esclarecer que ‘RaspAssio’ é um “Hassio” (Homeassistant+Supervisor) a correr em cima de Raspbian em vez de correr em HassOS e que apenas funciona no Rpi 3B e 3B+. O intuito desta alteração é poder ter controlo sobre o host e desta forma correr alguns serviços adicionais no PI. Instalação do Raspbian Download do Raspbian disponível [aqui](https://www.raspberrypi.org/downloads/raspbian/). ---------\> A…

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [21 Novembro , 2019 09:43 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/5 "2019-11-21T09:43:24Z")

</div>

Ok! Já estou a meter a marcha a trás!

Obrigado!

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [21 Novembro , 2019 21:45 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/6 "2019-11-21T21:45:44Z")

</div>

@Bruno_Santos então isso já está a funcionar?

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [21 Novembro , 2019 23:06 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/7 "2019-11-21T23:06:03Z")

</div>

Sim! Tal como recomendou e sem desktop!

Agora está a ser o filme para voltar a colar tudo… Como não tinha Screenshot…  
Não guardei os tutoriais que segui, agora ando às aranhas…

Desde Zigbee2mqtt que não tá a funcionar, cartões…

Mas com calma isto vai lá.

Muito Obrigado

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [22 Novembro , 2019 00:24 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/8 "2019-11-22T00:24:14Z")

</div>

Ter cópias dos backups fora da máquina onde corre o HA é umas das coisas que se deve fazer logo de inicio.

> [@Hassio -\> Google Drive Backup (sem ficar sem espaço)](https://forum.cpha.pt/t/hassio-google-drive-backup-sem-ficar-sem-espaco/2712):
>
> Este tutorial foi escrito com base no Hassio 0.95.4. Para outras versões poderão existir diferenças. Em primeiro lugar, devem adicionar o seguinte repositório aos addons: [https://github.com/sabeechen/hassio-google-drive-backup](https://github.com/sabeechen/hassio-google-drive-backup) Instalam, alteram a configuração para o que querem (eu alterei os dias entre snapshots e o SSL para true: { "max\_snapshots\_in\_hassio": 4, "max\_snapshots\_in\_google\_drive": 4, "days\_between\_snapshots": 1, "use\_ssl": true } e podem iniciar o addon. De …

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [22 Novembro , 2019 10:53 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/9 "2019-11-22T10:53:00Z")

</div>

Alguém dê uma medalha a este homem!  
Obrigado, mais uma vez.

Pra já tenho que meter os Zigbees todos a funcionar… Não estou a fazer alguma coisa bem e ainda não comunicam com o HA.

Obrigado

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [22 Novembro , 2019 16:16 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/10 "2019-11-22T16:16:51Z")

</div>

Que versão do Addon do Z2M estás a usar?

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [22 Novembro , 2019 22:17 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/11 "2019-11-22T22:17:04Z")

</div>

Mosquitto broker 5.1  
zigbee2mqtt 1.7.1

Ando aqui às voltas, já tentei várias configurações (que vi aqui no forum), mas não consigo pôr isto a funcionar…  
Tanto trabalho só por não ter um backup… Tava tudo tão bem antes…

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [22 Novembro , 2019 22:24 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/12 "2019-11-22T22:24:24Z")

</div>

Se não disseres como tens as configurações, ninguém vai adivinhar para poder ajudar…

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [22 Novembro , 2019 23:13 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/13 "2019-11-22T23:13:19Z")

</div>

Neste momento no Mosquitto Broker tenho :

```auto
{
  "logins": [
    {
      "username": "mosquitto",
      "password": "mosquitto"
    }
  ],
  "anonymous": false,
  "customize": {
    "active": false,
    "folder": "mosquitto"
  },
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "require_certificate": false
}

```

No Zigbee2mqtt :

```auto
{
  "data_path": "/share/zigbee2mqtt",
  "devices": "devices.yaml",
  "groups": "groups.yaml",
  "homeassistant": true,
  "permit_join": false,
  "mqtt": {
    "base_topic": "zigbee2mqtt",
    "server": "192.168.1.67",
    "user": "mosquitto",
    "password": "mosquitto"
  },
  "serial": {
    "port": "/dev/ttyACM0"
  },
  "advanced": {
    "pan_id": 6754,
    "channel": 11,
    "network_key": [
      1,
      3,
      5,
      7,
      9,
      11,
      13,
      15,
      0,
      2,
      4,
      6,
      8,
      10,
      12,
      13
    ],
    "availability_blacklist": []
  },
  "ban": [],
  "whitelist": [],
  "queue": {},
  "socat": {
    "enabled": false,
    "master": "pty,raw,echo=0,link=/dev/ttyZ2M,mode=777",
    "slave": "tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5",
    "restartdelay": 1,
    "initialdelay": 1,
    "options": "-d -d",
    "log": false
  }
}

```

Não acrescentei mais nada no configuration.yaml

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [23 Novembro , 2019 10:49 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/14 "2019-11-23T10:49:08Z")

</div>

Tirando o facto de nunca se dever utilizar a password igual ao user (e certos equipamentos nem aceitam isso) e, se não me engano, `mosquitto` é uma palavra reservada não podendo ser usada, a configuração parece-me estar correcta.

> [@Bruno\_Santos](#):
>
> mas não consigo pôr isto a funcionar…

Não percebi o que queres dizer com isso e como não sou pessoa de andar a adivinhar vou esperar que expliques o que isso quer dizer…

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [23 Novembro , 2019 13:38 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/15 "2019-11-23T13:38:18Z")

</div>

Haha, não se preocupe o user e pass é temporário só ate haver comunicação, depois mudo. Faço assim apenas para não ser problemas de credenciais com erros.

Não consigo pôr os zigbees a comunicar…

> ## Log Details (ERROR)
> 
> Fri Nov 22 2019 23:46:52 GMT+0000 (Hora padrão da Europa Ocidental)  
> Unable to connect to the MQTT broker: Connection Refused: not authorised.

Log do Mosquitto Broker :

> [23:10:22] INFO: Setup mosquitto configuration  
> [23:10:22] WARNING: SSL not enabled - No valid certs found!  
> [23:10:22] INFO: Found local users inside config  
> [23:10:22] INFO: Initialize [Hass.io](http://Hass.io) Add-on services  
> [23:10:23] INFO: Initialize Home Assistant discovery  
> [23:10:23] INFO: Start Mosquitto daemon  
> 1574464223: mosquitto version 1.6.3 starting  
> 1574464223: Config loaded from /etc/mosquitto.conf.  
> 1574464223: Loading plugin: /usr/share/mosquitto/auth-plug.so  
> 1574464223: |-- \*\*\* auth-plug: startup  
> 1574464223: ├── Username/password checking enabled.  
> 1574464223: ├── TLS-PSK checking enabled.  
> 1574464223: └── Extended authentication not enabled.  
> 1574464223: Opening ipv4 listen socket on port 1883.  
> 1574464223: Opening ipv6 listen socket on port 1883.  
> 1574464223: Opening websockets listen socket on port 1884.  
> 1574464223: Warning: Mosquitto should not be run as root/administrator.  
> 1574464825: New connection from 172.30.32.1 on port 1883.  
> [WARN] Not found homeassistant on local database  
> 1574464827: Socket error on client , disconnecting.  
> 1574466023: Saving in-memory database to /data/mosquitto.db.  
> 1574466411: New connection from 172.30.32.1 on port 1883.  
> [WARN] Not found homeassistant on local database  
> 1574466412: Socket error on client , disconnecting.  
> 1574467825: Saving in-memory database to /data/mosquitto.db.  
> 1574469625: Saving in-memory database to /data/mosquitto.db.  
> 1574471426: Saving in-memory database to /data/mosquitto.db.  
> 1574473228: Saving in-memory database to /data/mosquitto.db.

Log do Zigbee2mqtt :

> zigbee2mqtt:info 2019-11-23T13:36:46: Logging to directory: ‘/share/zigbee2mqtt/log/2019-11-23.13-36-45’  
> zigbee2mqtt:info 2019-11-23T13:36:46: Starting zigbee2mqtt version 1.7.1 (commit #unknown)  
> zigbee2mqtt:info 2019-11-23T13:36:46: Starting zigbee-herdsman…  
> zigbee2mqtt:info 2019-11-23T13:36:48: zigbee-herdsman started  
> zigbee2mqtt:info 2019-11-23T13:36:48: Coordinator firmware version: ‘{“type”:“zStack12”,“meta”:{“transportrev”:2,“product”:0,“majorrel”:2,“minorrel”:6,“maintrel”:3,“revision”:20181024}}’  
> zigbee2mqtt:info 2019-11-23T13:36:48: Currently 0 devices are joined:  
> zigbee2mqtt:info 2019-11-23T13:36:48: Zigbee: disabling joining new devices.  
> zigbee2mqtt:info 2019-11-23T13:36:48: Connecting to MQTT server at mqtt://192.168.1.67:8123  
> events.js:174  
> throw er; // Unhandled ‘error’ event  
> ^  
> Error: Not supported  
> at Parser.\_parsePayload (/zigbee2mqtt-1.7.1/node\_modules/mqtt-packet/parser.js:121:25)  
> at Parser.parse (/zigbee2mqtt-1.7.1/node\_modules/mqtt-packet/parser.js:39:41)  
> at Writable.writable.\_write (/zigbee2mqtt-1.7.1/node\_modules/mqtt/lib/client.js:293:12)  
> at doWrite (/zigbee2mqtt-1.7.1/node\_modules/readable-stream/lib/\_stream\_writable.js:428:64)  
> at writeOrBuffer (/zigbee2mqtt-1.7.1/node\_modules/readable-stream/lib/\_stream\_writable.js:417:5)  
> at Writable.write (/zigbee2mqtt-1.7.1/node\_modules/readable-stream/lib/\_stream\_writable.js:334:11)  
> at Socket.ondata (\_stream\_readable.js:709:20)  
> at Socket.emit (events.js:198:13)  
> at addChunk (\_stream\_readable.js:288:12)  
> at readableAddChunk (\_stream\_readable.js:269:11)  
> Emitted ‘error’ event at:  
> at Parser.emit (events.js:198:13)  
> at Parser.\_emitError (/zigbee2mqtt-1.7.1/node\_modules/mqtt-packet/parser.js:643:8)  
> at Parser.\_parsePayload (/zigbee2mqtt-1.7.1/node\_modules/mqtt-packet/parser.js:121:14)  
> at Parser.parse (/zigbee2mqtt-1.7.1/node\_modules/mqtt-packet/parser.js:39:41)  
> [… lines matching original stack trace …]  
> at Socket.emit (events.js:198:13)  
> npm  
> ERR! code  
> ELIFECYCLE  
> npm  
> ERR! errno 1  
> npm  
> ERR! [zigbee2mqtt@1.7.1](mailto:zigbee2mqtt@1.7.1) start: `node index.js`  
> npm  
> ERR! Exit status 1  
> npm ERR!
> 
> npm ERR! Failed at the [zigbee2mqtt@1.7.1](mailto:zigbee2mqtt@1.7.1) start script.  
> npm  
> ERR! This is probably not a problem with npm. There is likely additional logging output above.  
> npm
> 
> ERR!  
> A complete log of this run can be found in:  
> npm
> 
> ERR!  
> /root/.npm/\_logs/2019-11-23T13\_36\_48\_727Z-debug.log  
> 2019-11-23T13:36:48: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]  
> 2019-11-23T13:36:48: PM2 log: App [npm:0] starting in -fork mode-  
> 2019-11-23T13:36:48: PM2 log: App [npm:0] online
> 
> > [zigbee2mqtt@1.7.1](mailto:zigbee2mqtt@1.7.1) start /zigbee2mqtt-1.7.1  
> > node index.js

---

<div class="post-metadata">

**Author:** ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)\
**Post date:** [23 Novembro , 2019 16:19 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/16 "2019-11-23T16:19:47Z")

</div>

O que tu não consegues é pôr o MQTT a funcionar…

No broker o user e a pass devem ser os mesmos que usas para fazer log in no HA.

---

<div class="post-metadata">

**Author:** ![RodolfoVieira](https://forum.cpha.pt/user_avatar/forum.cpha.pt/rodolfovieira/32/14633_2.png) [@RodolfoVieira](https://forum.cpha.pt/u/RodolfoVieira)\
**Post date:** [23 Novembro , 2019 16:23 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/17 "2019-11-23T16:23:09Z")

</div>

@Bruno_Santos tens o broker mqtt configurado onde? Nas integrações ? Se sim recomendo a apagar os dois addons mais o mqtt das integrações e a fazer tudo de novo.

Caso tenhas o mqtt (broker) configurado no yaml a mesma situação …recomendo os passos acima.

**Connection Refused: not authorised**

E confirma bem como escreveste os dados tanto em um lado como noutro.

---

<div class="post-metadata">

**Author:** ![Bruno\_Santos](https://forum.cpha.pt/user_avatar/forum.cpha.pt/bruno_santos/32/1533_2.png) [@Bruno\_Santos](https://forum.cpha.pt/u/Bruno_Santos)\
**Post date:** [25 Novembro , 2019 11:57 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/18 "2019-11-25T11:57:22Z")

</div>

Viva,

Era exactamente este o meu problema, eu andava a misturar tudo (locais onde colocar o código).  
Já consegui pôr quase tudo como estava antes cameras. sensores zigbee, e com Screenshots regulares! agora só falta o mapa do zigbee, e acrescentar um router para melhor abrangência.

Agora vou seguir os conselhos jo @j_assuncao com os backups para o Drive e personalizar o Recorder.

Muito Obrigado pela ajuda.

---

<div class="post-metadata">

**Author:** ![andrevideira](https://forum.cpha.pt/letter_avatar_proxy/v4/letter/a/73ab20/32.png) [@andrevideira](https://forum.cpha.pt/u/andrevideira)\
**Post date:** [12 Junho , 2020 20:17 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/19 "2020-06-12T20:17:27Z")

</div>

Olá,

Sou completamente “noob” no que diz respeito a qualquer coisa que não seja windows.

Adquiri um RPi4 e quero colocar o HASS a funcionar nele.

Quais foram os meus passos:

1. com o balenaEtcher flashei o cartão com HASS (primeira tentativa com a versão 64 bits, e agora com a versão 32 bits)
2. numa pen formatada a FAT 32 com o nome CONFIG criei um directório “network” e dentro desse directório criei um ficheiro “my-network” com o texto (NOTA: quero ligar o RPi4 por cabo):

_[connection]_  
_id=my-network_  
_uuid=d55162b4-6152-4310-9312-8f4c54d86afa_  
_type=802-3-ethernet_

_[ipv4]_  
_method=auto_

_[ipv6]_  
_addr-gen-mode=stable-privacy_  
_method=auto_

1. Cartão e pen ligadas no RPi4 e liguei o carregador (original) + o monitor

2. Toda a gente diz que a instalação demora uns 20 min, mas aqui, ao fim de 10 minutos aparece-me no écran do RPi4 “power save enabled”

3. vou ao meu router e verifico que aparece lá um dispositivo com o IP 192.168.1.80, portanto no meu browser tento abrir [http://192.168.1.80:8123](http://192.168.1.80:8123) mas não dá nada.

---

<div class="post-metadata">

**Author:** ![RodolfoVieira](https://forum.cpha.pt/user_avatar/forum.cpha.pt/rodolfovieira/32/14633_2.png) [@RodolfoVieira](https://forum.cpha.pt/u/RodolfoVieira)\
**Post date:** [12 Junho , 2020 21:06 UTC](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421/20 "2020-06-12T21:06:14Z")

</div>

@andrevideira não tenho um pi4 mas testei ainda a dias isto no pi3b.  
Podes testar?  
[De Hassio para "RaspAssio"](https://forum.cpha.pt/t/de-hassio-para-raspassio/961)

[Próxima página](https://forum.cpha.pt/t/instalacao-do-home-assistant-encrava/3421.md?page=2)
