Page 1 of 1

Voltcraft CO-20 USB air quality sensor with Docker

Posted: Tuesday 27 February 2024 21:29
by TheHelma
Hello everyone,

I´ve successfully managed to install Domoticz as a Docker container. Everything is running smoothly, except for the Voltcraft Air Quality stick.
I don´t know how to mount it in the docker-compose.yml file.
The device doesn´t show up under /dev/serial/by-id.

Under lsusb it appears as:
Bus 001 Device 013: ID 03eb:2013 Atmel Corp. iAQ Stick

dmesg shows:

Code: Select all

[1300569.728835] usb 1-1.1: USB disconnect, device number 10
[1301160.366803] usb 1-1.1: new full-speed USB device number 13 using xhci_hcd
[1301160.475002] usb 1-1.1: New USB device found, idVendor=03eb, idProduct=2013, bcdDevice=10.00
[1301160.475021] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[1301160.475027] usb 1-1.1: Product: iAQ Stick
[1301160.475032] usb 1-1.1: Manufacturer: AppliedSensor
[1301160.484585] hid-generic 0003:03EB:2013.0004: hiddev96,hidraw0: USB HID v1.11 Device [AppliedSensor iAQ Stick] on usb-0000:01:00.0-1.1/input0
I´ve tried

- /dev/bus/usb/001/013:/dev/ttyACM0
and
- /dev/usb-0000:01:00.0-1.1/input0:/dev/ttyACM0

under devices in the docker-compose.yml, without really knowing what I´m doing, but that wasn´t very successful.

Has anyone managed to get the Air Quality Stick running with Domoticz in Docker?

Thanks in advance!

Helma

Re: Voltcraft CO-20 USB air quality sensor with Docker

Posted: Tuesday 27 February 2024 21:53
by waltervl
Did you use this instruction in the past? https://www.domoticz.com/wiki/Voltcraft_CO-20

Perhaps you have to change the udev rules to have them visible in /dev/serial/by-id

Re: Voltcraft CO-20 USB air quality sensor with Docker

Posted: Tuesday 27 February 2024 22:48
by TheHelma
Hey Walter,

thank you for your quick reply!

I have 2 other Pi´s with Non-Docker Domoticz 2024.4 running with the same Air Quality sensors and it wasn´t necessary to use the instructions for the installation. I didn´t change the udev rules either, it just worked magically. ;)

Re: Voltcraft CO-20 USB air quality sensor with Docker

Posted: Tuesday 27 February 2024 23:44
by waltervl
On your other environments are these devices also not seen in /dev/serial/by-id ?
Or perhaps in /dev as ttyUSBx or ACMx?

Re: Voltcraft CO-20 USB air quality sensor with Docker

Posted: Wednesday 28 February 2024 18:30
by TheHelma
No, there are no serial devices at all. Also nothing in ttyUSBx or ACMx.

dmesg shows the same as on the problematic environment:

Code: Select all

usb 1-1.2: New USB device found, idVendor=03eb, idProduct=2013, bcdDevice=10.00
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.2: Product: iAQ Stick
usb 1-1.2: Manufacturer: AppliedSensor
hid-generic 0003:03EB:2013.0001: hiddev96,hidraw0: USB HID v1.11 Device [AppliedSensor iAQ Stick] on usb-3f980000.usb-1.2/input0

Re: Voltcraft CO-20 USB air quality sensor with Docker

Posted: Wednesday 28 February 2024 19:25
by waltervl
It seems Domoticz is accessing the USB stick directly and not by a normal serial device. So that will be difficult to link into a docker container...

But perhaps somebody else has an idea??