Installation Device zigbee2mqtt on Synology NAS-Docker Container without auto-Detection

Hello everyone,

I have installed HA, Zigbee2mqtt and Mosqitto in different containers on my Synology NAS.

Everything works fine.

The installation of Zigbee components such as Aqara door sensors also work well. They are automatically recognized by the MQTT integration when I put them in pairing mode.

But the installation of Bosch smoke detectors does not work. After pairing, they are recognized in the configuration.yaml of zigbee2mqtt with their Mac address (e.g.

‘0x8af681fffec10a3a’:

friendly_name: ‘RWM Keller’)

is displayed. But they do not appear in the integration in HA.

The help of zigbee2mqtt describes the smoke detector:

  • Before starting the pairing process the device’s install code needs to be added to Zigbee2MQTT. Scan the QR code printed on the bottom of the device with the camera of your mobile phone and copy the received value (Attention: The install code printed in plain text on the device is not sufficient!)

  • The install code can be found inside the device before attaching it to the mounting plate

  • Add this install code under Settings → Tools → Add install code

Since I have zigbee2mqtt running in the container, I cannot access the settings.

What do I have to do to install the smoke detector (and other devices)?

Thank you

Can you not access the frontend at port 8080 (the default port)?

1 Like

No, unfortunately not.
At the command prompt
192.168.178.21:8080
I get:

The website cannot be reached192.168.178.21 has refused the connection.
Try the following:

Check connection
Check proxy and firewall
ERR_CONNECTION_REFUSED

Is that the right IP-Adress? How do I get it?

I cannot know what IP address you use. How have you defined the ports on the container?

Check to make sure you have ‘frontend:’ defined in your configuration.yaml file with the same port that’s defined in your docker run command (or docker-compose file).

1 Like

Hi Bill, I am quite a beginner in HA…, please explain a bit more. Which code do I have to insert into which configuration.yaml. (configuration.yaml from HA or from zigbee2mqtt?)
How is “frontend:” to be defined, or which value is to be assigned?

Thanks
Gregor

He means in the zigbee2mqtt configuration.yaml. Everything is documented here: Frontend | Zigbee2MQTT

You will need to figure out what port you are using though, this is something you define when you set up the container.

2 Likes

I tried it, but it doesn´t work.
This is the first part of my configuration.yaml.

homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.178.21:1883
  client_id: zigbee2mqtt
  include_device_information: true
serial:
  port: /dev/ttyUSB0
frontend: true
advanced:
  homeassistant_discovery_topic: 'homeassistant'
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false
devices:
  '0x54ef441...

What do I have to change?

1 Like

Format your code correctly: How to help us help you - or How to ask a good question

Your setup seems right on the z2m side, so I’ll ask again - how have you defined your ports on the container?

Sorry for that. How do I find out the defined ports?

When you set up the container, you have the option to define the ports. Are you using docker-compose or the GUI on your NAS?

the GUI. I did not define special Ports (i guess).

Then you need to do that. The default one is 8080, but your NAS might be using that. You can try mapping port 8080 to 8080, if you get any errors you can try port 8090 to 8080 for example. When that is done you should be able to access the frontend on http://yournasIP:8080 (or 8090 or whatever you set).

even helpless
I stopped the zigbee2mqtt Container.
I went to Settings. I add the following:

But it did not work.

Try 8080:8080 or 8090:8080 not 8080:8090. To elaborate: the first port is what you access your NAS with, the second is what you container listens at. I know QNAP uses 8080 default, hence my idea to map 8090 (on the nas) to 8080 (on z2m). If your NAS doesn’t use 8080 you should be fine with 8080:8080.

I am using a Synology NAS. To reach it, I use: //192.168.178.21:5001

Is that Information helpful?

Then you should be fine with 8080:8080

Sorry - no success. Still

Do I have to restart HA?

You have restarted the container right?

The zigbee2mqtt-Container - yes
Not the HA- and not the mosquitto-Container