For those who also have a BK-G4AT gas meter and would like to process and log the meter readings in Home Assistant, I have ported BennoB666’s project to ESPHome.
The values are read directly via the meter’s UART interface and made available in Home Assistant. I also use this same ESP32 to read my electricity meter (via SML) and my heat pump (via Modbus RTU), which means I don’t have to maintain three separate ESP32 devices. That is what motivated me to create this port.
This is a new implementation for ESPHome based on BennoB666/BK-G4AT2MQTT (which uses ESP32-C3, PlatformIO, and MQTT).