Instalação do home assistant encrava

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!

Raspbian com Desktop porquê?

Quais instruções? Que tutorial seguiste?

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/
E de fundo usei o vídeo do Bruno Horta : 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

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:

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

Obrigado!

1 Like

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

1 Like

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

1 Like

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

1 Like

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

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

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…

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

Neste momento no Mosquitto Broker tenho :

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

No Zigbee2mqtt :

{
  "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

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.

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…

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 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 start: node index.js
npm
ERR! Exit status 1
npm ERR!

npm ERR! Failed at the 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 start /zigbee2mqtt-1.7.1
node index.js

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.

@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.

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.

2 Likes

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 mas não dá nada.

@andrevideira não tenho um pi4 mas testei ainda a dias isto no pi3b.
Podes testar?
📑 De Hassio para 'RaspAssio'


Copyright © 2017-2020. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade