Boa tarde,
Instalei o Hassio num Raspberry PI 1 até aqui tudo bem consigo aceder ao Home assistant já me aparecem alguns equipamentos que tenho. Sou iniciado nestas andanças do Home assistant no passado e durante algum tempo utilizei Domoticz.
Agora estou a tentar integrar Zigbee no Home assistant. Flashei a pen zigbee e configurei o MQTT seguindo alguns tutoriais aqui do foum (📑 Como configurar o zigbee2mqtt em Hassio com uma CC2531)
Neste momento o MQTT parece estar a funcionar mas foi adicionado através dos plugins do HASSIO.
instalei tambem o zigbee2mqtt no entanto a brigde aparece sempre offline e no log aparece o seguinte erro.
[Info] Configuration file found: /share/zigbee2mqtt/configuration.yaml
[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml
2019-02-28T22:44:31: PM2 log: Launching in no daemon mode
2019-02-28T22:44:34: PM2 log: App [npm:0] starting in -fork mode-
2019-02-28T22:44:34: PM2 log: App [npm:0] online
zigbee2mqtt@1.1.1 start /zigbee2mqtt-1.1.1
node index.js
zigbee2mqtt:info 2/28/2019, 10:45:14 PM Logging to directory: ‘/share/zigbee2mqtt/log/2019-02-28.22-45-14’
zigbee2mqtt:info 2/28/2019, 10:45:25 PM Starting zigbee2mqtt version 1.1.1 (commit #unknown)
zigbee2mqtt:info 2/28/2019, 10:45:25 PM Starting zigbee-shepherd
zigbee2mqtt:info 2/28/2019, 10:45:29 PM Error while starting zigbee-shepherd, attemping to fix… (takes 60 seconds)
zigbee2mqtt:info 2/28/2019, 10:46:29 PM Starting zigbee-shepherd
zigbee2mqtt:error 2/28/2019, 10:46:33 PM Error while starting zigbee-shepherd!
zigbee2mqtt:error 2/28/2019, 10:46:33 PM Press the reset button on the stick (the one closest to the USB) and start again
zigbee2mqtt:error 2/28/2019, 10:46:33 PM Failed to start
{“message”:“request timeout”,“stack”:“Error: request timeout\n at CcZnp. (/zigbee2mqtt-1.1.1/node_modules/cc-znp/lib/ccznp.js:255:22)\n at Object.onceWrapper (events.js:273:13)\n at CcZnp.emit (events.js:182:13)\n at Timeout. (/zigbee2mqtt-1.1.1/node_modules/cc-znp/lib/ccznp.js:234:18)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)”}
Já tentei fazer o procedimento que indica no log carregar na PEN no botão mais perto do USB. Sem sucesso.
Segue tambem o log do MQTT.
INFO] Setup mosquitto configuration
[WARN] SSL not enabled - No valid certs found!
[INFO] No local user available
[INFO] Initialize Hass.io Add-on services
[INFO] Initialize Home Assistant discovery
[INFO] Start Mosquitto daemon
1551392973: mosquitto version 1.4.15 (build date 2018-03-04 15:35:59+0000) starting
1551392973: Config loaded from /etc/mosquitto.conf.
1551392973: *** auth-plug: startup
1551392973: ** Configured order: http
1551392973: Opening ipv4 listen socket on port 1883.
1551392973: Opening ipv6 listen socket on port 1883.
1551392973: Opening websockets listen socket on port 1884.
1551392974: Warning: Mosquitto should not be run as root/administrator.
1551394774: Saving in-memory database to /data/mosquitto.db.
1551396575: Saving in-memory database to /data/mosquitto.db.
1551398376: Saving in-memory database to /data/mosquitto.db.
1551400177: Saving in-memory database to /data/mosquitto.db.
1551401978: Saving in-memory database to /data/mosquitto.db.
1551403779: Saving in-memory database to /data/mosquitto.db.
1551405580: Saving in-memory database to /data/mosquitto.db.
1551407381: Saving in-memory database to /data/mosquitto.db.
1551409182: Saving in-memory database to /data/mosquitto.db.
1551410983: Saving in-memory database to /data/mosquitto.db.
1551412784: Saving in-memory database to /data/mosquitto.db.
1551414585: Saving in-memory database to /data/mosquitto.db.
1551416386: Saving in-memory database to /data/mosquitto.db.
1551418187: Saving in-memory database to /data/mosquitto.db.
1551419988: Saving in-memory database to /data/mosquitto.db.
1551421789: Saving in-memory database to /data/mosquitto.db.
1551423590: Saving in-memory database to /data/mosquitto.db.
1551425391: Saving in-memory database to /data/mosquitto.db.
1551427192: Saving in-memory database to /data/mosquitto.db.
1551428993: Saving in-memory database to /data/mosquitto.db.
1551430794: Saving in-memory database to /data/mosquitto.db.
1551432595: Saving in-memory database to /data/mosquitto.db.
1551434396: Saving in-memory database to /data/mosquitto.db.
1551436197: Saving in-memory database to /data/mosquitto.db.
1551437998: Saving in-memory database to /data/mosquitto.db.
1551439799: Saving in-memory database to /data/mosquitto.db.
1551441600: Saving in-memory database to /data/mosquitto.db.
1551443401: Saving in-memory database to /data/mosquitto.db.
1551445202: Saving in-memory database to /data/mosquitto.db.
1551447003: Saving in-memory database to /data/mosquitto.db.
1551448804: Saving in-memory database to /data/mosquitto.db.
1551450605: Saving in-memory database to /data/mosquitto.db.
1551452406: Saving in-memory database to /data/mosquitto.db.
1551454207: Saving in-memory database to /data/mosquitto.db.
Ao nivel de config:
MQTT:
{
“logins”: [],
“anonymous”: false,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}
ZIGBEE2MQTT:
{
“data_path”: “/share/zigbee2mqtt”,
“homeassistant”: true,
“permit_join”: false,
“mqtt_base_topic”: “zigbee2mqtt”,
“mqtt_server”: “mqtt://ipdoraspberry:1883”,
“serial_port”: “/dev/ttyACM0”,
“devices”: [],
“network_key”: [],
“mqtt_user”: “user”,
“mqtt_pass”: “password”,
“log_level”: “debug”
}
Fico a aguardar alguma ajuda para ver se consigo arrancar.