A custom home-assistant component for the TFA Dostmann: CO2 Monitor AIRCO2NTROL MINI. A low cost usb CO2 and Temperature sensor.
Idea based on "Reverse-Engineering a low-cost USB CO₂ monitor" and "office weather". Thx Henryk Plötz. Code for this HA integration originally taken from jansauer. But because the "Decryption" part isn't necessary anymore with the current generation of devices I removed that.
Add to your configuration.yaml following plattform:
# Example configuration.yaml entry
sensor:
- platform: airco2ntrol
In the sensor.py following variable can be changed if you have multiple hidraw devices connected:
- device Hidraw device node. (default = '/dev/hidraw0')
When running Home Assistant in a docker container you can use the --device=/dev/hidraw0:/dev/hidraw0
parameter to allow access to the device without having to run in privileged mode.
The pdf in this repository describes the usb protocol. There exists more than just co2 and temperature readings. Some devices appear to have a humidity reading but mine does only display "0" for humidity (opcode: 0x41).