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)?
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).
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?
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).
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.