gracingpro/blauberg-homeassistant — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Python service that connects my Blauberg ventilation unit to Home Assistant. It should work with a Blauberg system that uses the Modbus S21 controller, especially the KOMFORT series.

I want it to read the ventilation data from the controller over Modbus on a regular interval, then publish the values to my MQTT broker so Home Assistant can discover them automatically with proper names, icons, units, and topics. I also want basic controls in Home Assistant using switches and selection fields where the controller supports it.

Please make it easy to run with Docker and Docker Compose. Use a simple config file where I can set the ventilation unit IP address, MQTT username, password, host, port, main topic, Home Assistant discovery topic, scrape interval, API token, and API port.

Also include a small read only API that lets me check current alarms, coils, discrete inputs, input registers, and holding registers. Keep the setup simple and include clear usage instructions.

Want more depth? Deep Reverse