Set variable THRESHOLD_CO2 to specific value

Hey,

I’m sorry to ask a question directly as “the new one”, unfortunately I can’t find anything else about it.

I have integrated a CO2 sensor on an ESP32 via esphome in HA and export it to Homekit. If I see it correctly, the variable THRESHOLD_CO2 in the file homeassistant/components/homekit/const.py (core/const.py at 661101df08e36ab33f4f4418faf4f3395b07be5b · home-assistant/core · GitHub) is set to the value of 1000. I would like to set it to 1800 without changing the file myself (I use HA via Docker).

Does anyone know of a way to change this variable at runtime?

Cheers, Tobias

1 Like