Boa tarde meus caros,
Solicitava a vossa ajuda p.f.
Eu tinha um RPI 3B+ que avariou aqui à tempos (até então estava tudo a funcionar sem problema).
Tenho alguns sensores da xiaomi de temperatura ou PIR, e uma tomada inteligente osram…
Entretanto comprei um novo RPi 4 (2gb) + 1 cartão microSD Cl. 10 para nova instalação e aqui que o problema começa…
Instalei de novo o Hass.io, mosquitto broker, criei uma conta de utilizador para mqtt e finalmente instalei o zigbee2mqtt.
A minha configuração no zigbee2mqtt é :
data_path: /share/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://core-mosquitto'
user: mqtt
password: hamqtt
serial:
port: /dev/ttyACM0
advanced:
log_level: info
pan_id: 6754
channel: 11
network_key:
- 1
- 3
- 5
- 7
- 9
- 11
- 13
- 15
- 0
- 2
- 4
- 6
- 8
- 10
- 12
- 13
availability_blocklist: []
availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
port: 8099
experimental:
new_api: true
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
No mosquitto broker tenho :
logins:
- username: mqtt
password: hamqtt
anonymous: false
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
Mas no log tenho erros de conecção… :
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
./run.sh: line 17: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
[Info] Socat is DISABLED and not started
2020-10-03T19:07:59: PM2 log: Launching in no daemon mode
2020-10-03T19:08:00: PM2 log: App [npm:0] starting in -fork mode-
2020-10-03T19:08:00: PM2 log: App [npm:0] online
> zigbee2mqtt@1.15.0 start /zigbee2mqtt-1.15.0
> node index.js
Zigbee2MQTT:info 2020-10-03 19:08:03: Logging to console and directory: '/share/zigbee2mqtt/log/2020-10-03.19-08-02' filename: log.txt
Zigbee2MQTT:info 2020-10-03 19:08:04: Starting Zigbee2MQTT version 1.15.0 (commit #1.15.0)
Zigbee2MQTT:info 2020-10-03 19:08:04: Starting zigbee-herdsman...
Zigbee2MQTT:error 2020-10-03 19:08:43: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-10-03 19:08:44: Failed to start zigbee
Zigbee2MQTT:error 2020-10-03 19:08:44: Exiting...
Zigbee2MQTT:error 2020-10-03 19:08:44: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.<anonymous> (/zigbee2mqtt-1.15.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:92:31)
at Generator.throw (<anonymous>)
at rejected (/zigbee2mqtt-1.15.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
No hardware tenho :
serial:
- /dev/ttyACM0
- >-
/dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B00193669EF-if00
- /dev/ttyAMA0
no zigbee2mqtt alternei nas opções:
server: 'mqtt://core-mosquitto'
ou
server: 'mqtt://ipdohomeassistant:1883'
Assim como na serial port já coloquei :
port: /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B00193669EF-if00
Obrigado desde já!