Adam.K
11 Grudzień 2025 16:23
1
Dzień dobry,
jestem nowym użytkownikiem forum oraz HA.
Chciałem zrobi migrację z Supli do HA. Zainstalowałem HAOS na starym laptopie. Kupiłem Sonoff Zigbee 3.0 USB Donble Plus v E oraz sterownik rolety.
Oglądałem wiele filmów na temat instalacji MQTT i Z2M.
Problem:
error: z2m: MQTT failed to connect, exiting… (ENOENT: no such file or directory, open ‘/etc/mosquitto/ca_certificates/ca.crt’)
System Information
version
core-2025.12.2
installation_type
Home Assistant OS
dev
false
hassio
true
docker
true
container_arch
amd64
user
root
virtualenv
false
python_version
3.13.9
os_name
Linux
os_version
6.12.51-haos
arch
x86_64
timezone
Europe/Warsaw
config_dir
/config
Home Assistant Community Store
GitHub API
ok
GitHub Content
ok
GitHub Web
ok
HACS Data
ok
GitHub API Calls Remaining
5000
Installed Version
2.0.5
Stage
running
Available Repositories
2487
Downloaded Repositories
3
Home Assistant Cloud
logged_in
false
can_reach_cert_server
ok
can_reach_cloud_auth
ok
can_reach_cloud
ok
Home Assistant Supervisor
host_os
Home Assistant OS 16.3
update_channel
stable
supervisor_version
supervisor-2025.12.3
agent_version
1.7.2
docker_version
28.3.3
disk_total
109.3 GB
disk_used
6.3 GB
nameservers
192.168.0.1
healthy
true
supported
true
host_connectivity
true
supervisor_connectivity
true
ntp_synchronized
true
virtualization
board
generic-x86-64
supervisor_api
ok
version_api
ok
installed_addons
ESPHome Device Builder (2025.11.5), Samba share (12.5.4), Terminal & SSH (9.21.0), Tailscale (0.26.1), Mosquitto broker (6.5.2), File editor (5.8.0), Zigbee2MQTT (2.7.1-1)
Dashboards
dashboards
2
resources
0
views
0
mode
storage
Network Configuration
adapters
lo (disabled), enp3s0 (enabled, default, auto), hassio (disabled), docker0 (disabled), vethe8f7c55 (disabled), veth6da5707 (disabled), veth9a816b6 (disabled), veth9f94873 (disabled), vethae8efd3 (disabled), vethf6029be (disabled), veth8c30741 (disabled), vethff17dad (disabled), vethd9d9ede (disabled)
ipv4_addresses
lo (127.0.0.1/8), enp3s0 (192.168.0.112/24), hassio (172.30.32.1/23), docker0 (172.30.232.1/23), vethe8f7c55 (), veth6da5707 (), veth9a816b6 (), veth9f94873 (), vethae8efd3 (), vethf6029be (), veth8c30741 (), vethff17dad (), vethd9d9ede ()
ipv6_addresses
lo (::1/128), enp3s0 (fe80::e1c5:f8cd:9e36:62a8/64), hassio (fd0c:ac1e:2100::1/48, fe80::68dd:fcff:fe3b:8822/64), docker0 (fe80::48e5:dfff:fea1:ece7/64), vethe8f7c55 (fe80::d81c:85ff:fe99:a0f3/64), veth6da5707 (fe80::a837:70ff:fec0:cb06/64), veth9a816b6 (fe80::814:1dff:feaf:dda6/64), veth9f94873 (fe80::60db:feff:fe7e:f5e6/64), vethae8efd3 (fe80::fc19:23ff:fe09:e61f/64), vethf6029be (fe80::dc69:9bff:fec9:b3cb/64), veth8c30741 (fe80::34d1:7fff:feec:6219/64), vethff17dad (fe80::6414:acff:fe3c:bc2c/64), vethd9d9ede (fe80::a05c:99ff:fe9e:fe0b/64)
announce_addresses
192.168.0.112, fe80::e1c5:f8cd:9e36:62a8
Recorder
oldest_recorder_run
1 grudnia 2025 19:37
current_recorder_run
11 grudnia 2025 16:40
estimated_db_size
4.59 MiB
database_engine
sqlite
database_version
3.49.2
Confi Z2M:
data_path: /config/zigbee2mqtt
socat:
enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: “-d -d”
log: false
mqtt:
server: mqtt://core-mosquitto:1883
user: mqtt_user
password: ************
serial:
port: >-
/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_1ca320f81ef4ef1187ffbf1b6d9880ab-if00-port0
adapter: ember
baudrate: 230399
Próbowałem zmieniać adresy mqtt, wpisywałem ścieżki ca, key i cert które znalazłem w dokumentacji i na różnych forach. Nic nie pomaga. Czy ktoś spotkał się z takim problemem?
Witaj, masz aktywny SSL i brak pliku z certyfikatem , pokaż konfig dodatku mosquitto , powinien wyglądać podobnie do tego
logins:
- username: mqttuser
password: mqttpassword
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: false
folder: mosquitto
A tu fragment z dokumentacji dodatku mosquitto , ten istotny
Adam.K
11 Grudzień 2025 20:34
3
dziękuję za szybką odpowiedź
faktycznie miałem true ale po zmianie na false nic się nie zmienia. Dodatkowo Z2M nie chce się uruchomić.
Log z ostatniej próby uruchomienia
|[2025-12-11 21:27:23] info: |z2m: Logging to console, file (filename: log.log)|
|---|---|
|[2025-12-11 21:27:23] info: |z2m: Starting Zigbee2MQTT version 2.7.1 (commit #unknown)|
|[2025-12-11 21:27:23] info: |z2m: Starting zigbee-herdsman (7.0.4)|
|[2025-12-11 21:27:24] info: |zh:ember: Using default stack config.|
|[2025-12-11 21:27:24] info: |zh:ember: ======== Ember Adapter Starting ========|
|[2025-12-11 21:27:24] info: |zh:ember:ezsp: ======== EZSP starting ========|
|[2025-12-11 21:27:24] info: |zh:ember:uart:ash: ======== ASH Adapter reset ========|
|[2025-12-11 21:27:24] info: |zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.|
|[2025-12-11 21:27:24] info: |zh:ember:uart:ash: Serial port opened|
|[2025-12-11 21:27:24] info: |zh:ember:uart:ash: ======== ASH starting ========|
|[2025-12-11 21:27:25] info: |zh:ember:uart:ash: ======== ASH connected ========|
|[2025-12-11 21:27:25] info: |zh:ember:uart:ash: ======== ASH started ========|
|[2025-12-11 21:27:25] info: |zh:ember:ezsp: ======== EZSP started ========|
|[2025-12-11 21:27:25] info: |zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.|
|[2025-12-11 21:27:25] info: |zh:ember: Adapter version info: {ezsp:13,revision:7.4.5 [GA],build:0,major:7,minor:4,patch:5,special:0,type:170}|
|[2025-12-11 21:27:25] info: |zh:ember: [STACK STATUS] Network up.|
|[2025-12-11 21:27:25] info: |zh:ember: [INIT TC] Adapter network matches config.|
|[2025-12-11 21:27:25] info: |zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.|
|[2025-12-11 21:27:25] info: |z2m: zigbee-herdsman started (resumed)|
|[2025-12-11 21:27:25] info: |z2m: Coordinator firmware version: '{meta:{build:0,ezsp:13,major:7,minor:4,patch:5,revision:7.4.5 [GA],special:0,type:170},type:EmberZNet}'|
|[2025-12-11 21:27:25] info: |z2m: Currently 0 devices are joined.|
|[2025-12-11 21:27:25] info: |z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883|
|[2025-12-11 21:27:25] error: |z2m: MQTT failed to connect, exiting... (ENOENT: no such file or directory, open '/etc/mosquitto/ca_certificates/ca.crt')|
|[2025-12-11 21:27:25] info: |z2m: Stopping zigbee-herdsman...|
|[2025-12-11 21:27:26] info: |zh:controller: Wrote coordinator backup to '/config/zigbee2mqtt/coordinator_backup.json'|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: ASH COUNTERS since last clear:|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Total frames: RX=47, TX=92|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Cancelled : RX=0, TX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: DATA frames : RX=46, TX=44|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: DATA bytes : RX=466, TX=473|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Retry frames: RX=0, TX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: ACK frames : RX=0, TX=47|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: NAK frames : RX=0, TX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: nRdy frames : RX=0, TX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: CRC errors : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Comm errors : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Length < minimum: RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Length > maximum: RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Bad controls : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Bad lengths : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Bad ACK numbers : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Out of buffers : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Retry dupes : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Out of sequence : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: ACK timeouts : RX=0|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: Port closed, error=null|
|[2025-12-11 21:27:26] info: |zh:ember:uart:ash: ======== ASH stopped ========|
|[2025-12-11 21:27:26] info: |zh:ember:ezsp: ======== EZSP stopped ========|
|[2025-12-11 21:27:26] info: |zh:ember: ======== Ember Adapter Stopped ========|
|[2025-12-11 21:27:26] info: |z2m: Stopped zigbee-herdsman|
Po zmianie trzeba zapisać i uruchomić ponownie dodatek mosquitto , dopiero po tym można uruchomić ponownie Z2M
Adam.K
12 Grudzień 2025 16:37
6
Zrobiłem jak napisałeś i nic.
Wygenerowałem kod minimalny na stronie z dokumentacją Z2M i wyskoczyło
W logu jest ten sam błąd certyfikatu. Dodatkowo notatka na końcu loga.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
READ THIS CAREFULLY
Refusing to start because configuration is not valid, found the following errors:
- mqtt/ca must be string
- mqtt/key must be string
- mqtt/cert must be string
If you don't know how to solve this, read https://www.zigbee2mqtt.io/guide/configuration
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Failure page is available at http://0.0.0.0:8099/
Jedyny plus to Z2M się uruchomił.
Adam.K
12 Grudzień 2025 18:26
7
Nie wiem co pomogło ale zrobiłem następujące kroki:
w /homeassistant/zigbee2mqtt/configuration.yaml usunąłem wiersze odnoszące się do certyfikatów
w configu Add-on Z2M usunąłem wszystkie zapisy odnoszące się do certyfikatów
dodałem force_onboarding: true
wszystkie zmiany robiłem na zatrzymanym dodatku a po wprowadzeniu zmian zrobiłem restart
Po uruchomieniu Z2M wyświetlił się konfigurator → submit i moim oczom ukazał się