Voltcraft CO-20 USB air quality sensor with Docker

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
TheHelma
Posts: 3
Joined: Tuesday 27 February 2024 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Germany
Contact:

Voltcraft CO-20 USB air quality sensor with Docker

Post 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
User avatar
waltervl
Posts: 5398
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
TheHelma
Posts: 3
Joined: Tuesday 27 February 2024 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Germany
Contact:

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

Post 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. ;)
User avatar
waltervl
Posts: 5398
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
TheHelma
Posts: 3
Joined: Tuesday 27 February 2024 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Germany
Contact:

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

Post 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
User avatar
waltervl
Posts: 5398
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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??
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest