[Custom component] Economical priced & good CO2 sensor integration via MQTT

Hi,

there are good CO2 sensors available from TFA Dostmann which can be easily integrated by e.g. using a Raspberry Pi Zero with USB interface.

Please see my project at GitHub.

It is running already very stable here

Display screenshot
CO2_HA_1

Measurement screenshot

It’s very good idea to integrate this sensor to HA interface, but unfortunately it’s not easy at all for those, who are new with HA and haven’t any experience. I’ve tried using instructions from your github link, but i wasn’t able to set it up because completing these few commands in terminal in HAOS on my Pi with HA has made absolutely nothing and i’ve got absolutely no results.

I’m not using HA OS version , but AFAIK HA OS is not designed for that you are able to install any custom integrations: additional installations are restricted and depend on the available addon repros.

What you can do is:

  1. when using HA OS install mosquitto addon + setup (=your MQTT broker)
  2. setup CO2 custom integration (=MQTT client) as described on a 2nd RPI machine running standard Raspberry Pi OS (and the CO2 sensor location does not depend on your HA OS server location )

If you want to run both on one machine, I do not recommend HA OS but use docker installation as described here.