Hello,
I've been attempting to install zigbee following the instructions from https://www.zigbee2mqtt.io/guide/gettin ... requisites
I'm using a legacy verison of raspian on a new install of domoticz version
Version: 2022.1
Build Hash: c9526851b
Compile Date: 2022-01-31 01:34:32
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
I've installed MQTT Broker from the instructions at https://randomnerdtutorials.com/how-to- ... pberry-pi/
and tested the operation using the dummy sensor as noted in the instructions.
Cloned the Domoticz Zigbee2MQTT Python plugin into domoticz plugin directory
opened the Domoticz hardware tab and added 2 devices
Zigbee2MQTT Plugin (v. 3.2.0-beta)
Address: localhost
Port:1883
MQTT CLIENT GATEWAY WITH LAN
Address: localhost
Port:1883
followed the instructions from:https://www.zigbee2mqtt.io/guide/gettin ... stallation
Installed Docker and tested the installation
installed docker-compose:
sudo apt-get install docker-compose-plugin
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-compose-plugin is already the newest version (2.10.2~raspbian-buster).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
pi@raspberrypi:~ $ docker compose version
Docker Compose version v2.10.2
Located my adaper: ACM0
created a new directory which I called compose_files
using nano I created the compose.yml as noted in step #2 but changed the adapter to ttyACM0 and the timezone
The next step was confusing to me but following the instructions I created a sub directory within compose_files called zigbee2mqtt-data
within zigbee2mqtt-data I used Nano to create the configuration.yaml
From within the directory compose_files I issued the find command and the result was:
/docker-compose.yml
./zigbee2mqtt-data
./zigbee2mqtt-data/configuration.yaml
./nano.save
When I issue the docker-compose up -d command I get :
-bash: docker-compose: command not found
When I issue the command :
docker-compose logs -f I get the response -bash: docker-compose: command not found
At this point it appears that docker compose is not installed even though from above checks it appears as though version 2.10.2 is installed
I apologize if I'm being somewhat dense here but it's obvious that I'm missing something and any help would be greatly appreciated.
Thanks
Greg T
zigbee install
Moderator: leecollings
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: zigbee install
Did you install docker-compose itself with sudo apt install docker-compose?
Also, why are you installing the python plugin? Domoticz natively auppots HA autodiscovery via mqtt.
Also, why are you installing the python plugin? Domoticz natively auppots HA autodiscovery via mqtt.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 12
- Joined: Thursday 15 July 2021 2:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: zigbee install
Thanks for the reply, I have performed the following:
installed compose with "sudo apt install docker-compose" and now have version 2.10.2 installed
Removed the python plugin
first run of docker-compose up -d resulted in the error:
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
compose.yml had version 3.8 I used nano to change the version # to 2.2 and re-ran docker-compose up -d
this resulted in the error:
Creating network "compose_files_default" with the default driver
Pulling mqtt (eclipse-mosquitto:2.0)...
2.0: Pulling from library/eclipse-mosquitto
9506b835437a: Pull complete
ebe7313ef259: Pull complete
27d01f295070: Pull complete
Digest: sha256:bbc6c63b6b46eababcc45a026c94c6ae293d3b45ff42b7e28b8bddfc415d06ee
Status: Downloaded newer image for eclipse-mosquitto:2.0
Pulling zigbee2mqtt (koenkk/zigbee2mqtt:)...
latest: Pulling from koenkk/zigbee2mqtt
293b708aa6fb: Pull complete
85ad4c93c5d2: Pull complete
1141bd354f21: Pull complete
2e7afd7197cd: Pull complete
8caa7473d19d: Pull complete
2dbb9ab61620: Pull complete
4f34be760b27: Pull complete
ae06619e896a: Pull complete
7d49cefdcfd8: Pull complete
91f6b92fa6af: Pull complete
433a28162035: Pull complete
95689546fb5d: Pull complete
9c01ed49dd68: Pull complete
Digest: sha256:06ac67050b115c2f469d507ee84cebd58d2d4423ea9e9ae536bc1d3603213563
Status: Downloaded newer image for koenkk/zigbee2mqtt:latest
Creating zigbee2mqtt ...
Creating zigbee2mqtt ... error
WARNING: Host is already in use by another container
ERROR: for zigbee2mqtt Cannot start service zigbee2mqtt: driver failed programming external connectivity on endpoint zigbee2mqtt (bb78a9c2b3aa819d3c08c70522817cdea3bc2e88b4b47620d331118c87753818): Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use
Creating compose_files_mqtt_1 ... error
ERROR: for compose_files_mqtt_1 Cannot start service mqtt: driver failed programming external connectivity on endpoint compose_files_mqtt_1 (5a81b1527e300f17b5fd73cef0f3b24898581657345d02735e3b6b3aec86e681): Error starting userland proxy: listen tcp4 0.0.0.0
bind: address already in use
ERROR: for zigbee2mqtt Cannot start service zigbee2mqtt: driver failed programming external connectivity on endpoint zigbee2mqtt (bb78a9c2b3aa819d3c08c70522817cdea3bc2e88b4b47620d331118c87753818): Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use
ERROR: for mqtt Cannot start service mqtt: driver failed programming external connectivity on endpoint compose_files_mqtt_1 (5a81b1527e300f17b5fd73cef0f3b24898581657345d02735e3b6b3aec86e681): Error starting userland proxy: listen tcp4 0.0.0.0
bind: address already in use
ERROR: Encountered errors while bringing up the project.
I'm really at a loss as I have followed the directions from https://www.zigbee2mqtt.io/guide/gettin ... requisites and am still unable to get this properly installed, should I be following a different install guide?
Thank you for your help,
installed compose with "sudo apt install docker-compose" and now have version 2.10.2 installed
Removed the python plugin
first run of docker-compose up -d resulted in the error:
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
compose.yml had version 3.8 I used nano to change the version # to 2.2 and re-ran docker-compose up -d
this resulted in the error:
Creating network "compose_files_default" with the default driver
Pulling mqtt (eclipse-mosquitto:2.0)...
2.0: Pulling from library/eclipse-mosquitto
9506b835437a: Pull complete
ebe7313ef259: Pull complete
27d01f295070: Pull complete
Digest: sha256:bbc6c63b6b46eababcc45a026c94c6ae293d3b45ff42b7e28b8bddfc415d06ee
Status: Downloaded newer image for eclipse-mosquitto:2.0
Pulling zigbee2mqtt (koenkk/zigbee2mqtt:)...
latest: Pulling from koenkk/zigbee2mqtt
293b708aa6fb: Pull complete
85ad4c93c5d2: Pull complete
1141bd354f21: Pull complete
2e7afd7197cd: Pull complete
8caa7473d19d: Pull complete
2dbb9ab61620: Pull complete
4f34be760b27: Pull complete
ae06619e896a: Pull complete
7d49cefdcfd8: Pull complete
91f6b92fa6af: Pull complete
433a28162035: Pull complete
95689546fb5d: Pull complete
9c01ed49dd68: Pull complete
Digest: sha256:06ac67050b115c2f469d507ee84cebd58d2d4423ea9e9ae536bc1d3603213563
Status: Downloaded newer image for koenkk/zigbee2mqtt:latest
Creating zigbee2mqtt ...
Creating zigbee2mqtt ... error
WARNING: Host is already in use by another container
ERROR: for zigbee2mqtt Cannot start service zigbee2mqtt: driver failed programming external connectivity on endpoint zigbee2mqtt (bb78a9c2b3aa819d3c08c70522817cdea3bc2e88b4b47620d331118c87753818): Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use
Creating compose_files_mqtt_1 ... error
ERROR: for compose_files_mqtt_1 Cannot start service mqtt: driver failed programming external connectivity on endpoint compose_files_mqtt_1 (5a81b1527e300f17b5fd73cef0f3b24898581657345d02735e3b6b3aec86e681): Error starting userland proxy: listen tcp4 0.0.0.0
ERROR: for zigbee2mqtt Cannot start service zigbee2mqtt: driver failed programming external connectivity on endpoint zigbee2mqtt (bb78a9c2b3aa819d3c08c70522817cdea3bc2e88b4b47620d331118c87753818): Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use
ERROR: for mqtt Cannot start service mqtt: driver failed programming external connectivity on endpoint compose_files_mqtt_1 (5a81b1527e300f17b5fd73cef0f3b24898581657345d02735e3b6b3aec86e681): Error starting userland proxy: listen tcp4 0.0.0.0
ERROR: Encountered errors while bringing up the project.
I'm really at a loss as I have followed the directions from https://www.zigbee2mqtt.io/guide/gettin ... requisites and am still unable to get this properly installed, should I be following a different install guide?
Thank you for your help,
-
- Posts: 44
- Joined: Saturday 26 August 2017 20:13
- Target OS: Linux
- Domoticz version: 2023.2
- Contact:
Re: zigbee install
Hello,
According to your initial post, you installed mosquitto (mqtt) service by following the tutorial (installed as a package by apt). It is running on port 1883. Then you are trying to start another mqtt service in docker because it is defined in docker-compose.yml (provided by Zigbee2MQTT project). That's why docker failed to bind another mqtt service to port 1883.
--> You should remove mqtt service definition from docker-compose.yml (OR keep/configure it in docker but then stop/remove mosquitto service and package)
Another issue is that you are running already some other service on port 8080 while in docker you are trying to bind Zigbee2MQTT fronted service on port 8080 too.
--> You should reconfigure Zigbee2MQTT to use other port i.e. 8081 (OR reconfigure service currently using port 8080 to another port)
According to your initial post, you installed mosquitto (mqtt) service by following the tutorial (installed as a package by apt). It is running on port 1883. Then you are trying to start another mqtt service in docker because it is defined in docker-compose.yml (provided by Zigbee2MQTT project). That's why docker failed to bind another mqtt service to port 1883.
--> You should remove mqtt service definition from docker-compose.yml (OR keep/configure it in docker but then stop/remove mosquitto service and package)
Another issue is that you are running already some other service on port 8080 while in docker you are trying to bind Zigbee2MQTT fronted service on port 8080 too.
--> You should reconfigure Zigbee2MQTT to use other port i.e. 8081 (OR reconfigure service currently using port 8080 to another port)
Domoticz 2023.2 on Odroid M1 and Armbian
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
MySensors (RFM69 Serial GW): bunch of DIY sensors/devices
Zwave (Z-Wave.me RaZberry board): Danfoss devices
Zigbee (Sonoff Dongle Plus): IKEA, Tesla devices
Who is online
Users browsing this forum: No registered users and 1 guest